Commit f038261e by Crisu83

Further SEO for the demo.

parent cb216feb
...@@ -69,5 +69,7 @@ return array( ...@@ -69,5 +69,7 @@ return array(
// Application-level parameters // Application-level parameters
'params'=>array( 'params'=>array(
'appTitle'=>'Yii-Bootstrap - Bringing together the Yii PHP framework and Twitter\'s Bootstrap.',
'appDescription'=>'Yii-Bootstrap is an extension for Yii that focuses on server-side that allows you to easily use Bootstrap in your Yii applications.',
), ),
); );
\ No newline at end of file
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
<html> <html>
<head> <head>
<?php Yii::app()->controller->widget('ext.seo.widgets.SeoHead', array( <?php Yii::app()->controller->widget('ext.seo.widgets.SeoHead', array(
'defaultDescription'=>'Yii-Bootstrap is an extension for Yii that focuses on server-side that allows you to easily use Bootstrap in your Yii applications.', 'defaultDescription'=>Yii::app()->params['appDescription'],
'httpEquivs'=>array('Content-Type'=>'text/html; charset=utf-8', 'Content-Language'=>'en-US'), '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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" /> <meta name="language" content="en" />
......
<?php <?php
$this->pageTitle = Yii::app()->name; $this->pageTitle = Yii::app()->params['appTitle'];
$this->addMetaProperty('og:title', Yii::app()->name); $this->addMetaProperty('og:title', Yii::app()->params['appTitle']);
$this->addMetaProperty('og:type', 'website'); $this->addMetaProperty('og:type', 'website');
$this->addMetaProperty('og:url', Yii::app()->request->requestUri); $this->addMetaProperty('og:url', Yii::app()->request->requestUri);
$this->addMetaProperty('og:site_name', Yii::app()->name); $this->addMetaProperty('og:site_name', Yii::app()->name);
......
<?php <?php
$this->pageTitle = array('Setup', Yii::app()->name); $this->pageTitle = array('Setup', Yii::app()->params['appTitle']);
$this->addMetaProperty('og:title', 'Setup - '.Yii::app()->name); $this->addMetaProperty('og:title', 'Setup - '.Yii::app()->name);
$this->addMetaProperty('og:type', 'website'); $this->addMetaProperty('og:type', 'website');
$this->addMetaProperty('og:url', Yii::app()->request->requestUri); $this->addMetaProperty('og:url', Yii::app()->request->requestUri);
......
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