Commit 62aa36fb by Crisu83

Fixed a few bugs in the demo.

parent f038261e
......@@ -58,7 +58,6 @@ return array(
'urlFormat'=>'path',
'urlSuffix'=>'.html',
'rules'=>array(
'demo'=>'site/index',
'setup'=>'site/setup',
),
),
......
......@@ -55,7 +55,7 @@ class SeoHead extends CWidget
if ($behavior !== null && $behavior->metaTitle !== null)
$this->_title = $behavior->metaTitle;
else if ($this->defaultDescription !== null)
else if ($this->defaultTitle !== null)
$this->_title = $this->defaultTitle;
if ($behavior !== null && $behavior->metaDescription !== null)
......@@ -95,7 +95,7 @@ class SeoHead extends CWidget
foreach ($this->httpEquivs as $name => $content)
echo '<meta http-equiv="'.$name.'" content="'.$content.'" />'.PHP_EOL;
if ($this->_description !== null)
if ($this->_title !== null)
echo CHtml::metaTag($this->_title, 'title').PHP_EOL;
if ($this->_description !== null)
......
<!doctype html>
<html>
<head>
<html xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">
<head prefix="og: http://ogp.me/ns# <?php echo Yii::app()->fb->appNamespace; ?>: http://ogp.me/ns/apps/<?php echo Yii::app()->fb->appNamespace; ?>#">
<?php Yii::app()->controller->widget('ext.seo.widgets.SeoHead', array(
'defaultDescription'=>Yii::app()->params['appDescription'],
'httpEquivs'=>array('Content-Type'=>'text/html; charset=utf-8', 'Content-Language'=>'en-US'),
'title'=>array('class'=>'ext.seo.widgets.SeoTitle', 'separator'=>' :: '),
)); ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<link rel="stylesheet/less" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/less/styles.less" />
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/less-1.2.1.min.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet/less" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/less/styles.less" />
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/less-1.2.1.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
......@@ -91,16 +89,6 @@
<?php echo $content; ?>
<section id="comments">
<h2>Comments</h2>
<div class="fb-comments" data-href="<?php echo Yii::app()->request->requestUri; ?>" data-num-posts="10" data-width="470"></div>
<a class="top" href="#top">Back to top &uarr;</a>
</section>
<hr />
<footer>
......
......@@ -792,6 +792,16 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
</section>
<section id="comments">
<h2>Comments</h2>
<div class="fb-comments" data-href="<?php echo Yii::app()->request->requestUri; ?>" data-num-posts="10" data-width="470"></div>
<a class="top" href="#top">Back to top &uarr;</a>
</section>
<div class="subnav subnav-fixed">
<?php $this->widget('BootMenu', array(
......
......@@ -166,6 +166,16 @@ Yii::app()->bootstrap->registerTypeahead('.typeahead', array(
</section>
<section id="comments">
<h2>Comments</h2>
<div class="fb-comments" data-href="<?php echo Yii::app()->request->requestUri; ?>" data-num-posts="10" data-width="470"></div>
<a class="top" href="#top">Back to top &uarr;</a>
</section>
<div class="subnav subnav-fixed">
<?php $this->widget('BootMenu', array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment