Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Yii Bootstrap 3
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Common
Yii Bootstrap 3
Commits
dfc2c8b2
Commit
dfc2c8b2
authored
Feb 12, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the og:image URLs in the demo.
parent
b3d19e93
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
index.php
demo/protected/views/site/index.php
+1
-1
setup.php
demo/protected/views/site/setup.php
+1
-0
BootMenu.php
widgets/BootMenu.php
+2
-1
No files found.
demo/protected/views/site/index.php
View file @
dfc2c8b2
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
$this
->
pageTitle
=
Yii
::
app
()
->
params
[
'appTitle'
];
$this
->
pageTitle
=
Yii
::
app
()
->
params
[
'appTitle'
];
$this
->
addMetaProperty
(
'og:title'
,
Yii
::
app
()
->
params
[
'appTitle'
]);
$this
->
addMetaProperty
(
'og:title'
,
Yii
::
app
()
->
params
[
'appTitle'
]);
$this
->
addMetaProperty
(
'og:type'
,
'website'
);
$this
->
addMetaProperty
(
'og:type'
,
'website'
);
$this
->
addMetaProperty
(
'og:image'
,
Yii
::
app
()
->
request
->
baseUrl
.
'/images/bootstrap-avatar_normal.png'
);
$this
->
addMetaProperty
(
'og:url'
,
$this
->
createUrl
(
'index'
));
$this
->
addMetaProperty
(
'og:url'
,
$this
->
createUrl
(
'index'
));
$this
->
addMetaProperty
(
'og:image'
,
Yii
::
app
()
->
request
->
getBaseUrl
(
true
)
.
'/images/bootstrap-avatar_normal.png'
);
$this
->
addMetaProperty
(
'og:site_name'
,
Yii
::
app
()
->
name
);
$this
->
addMetaProperty
(
'og:site_name'
,
Yii
::
app
()
->
name
);
$this
->
addMetaProperty
(
'og:locale'
,
Yii
::
app
()
->
fb
->
locale
);
$this
->
addMetaProperty
(
'og:locale'
,
Yii
::
app
()
->
fb
->
locale
);
$this
->
addMetaProperty
(
'fb:app_id'
,
Yii
::
app
()
->
fb
->
appID
);
$this
->
addMetaProperty
(
'fb:app_id'
,
Yii
::
app
()
->
fb
->
appID
);
...
...
demo/protected/views/site/setup.php
View file @
dfc2c8b2
...
@@ -3,6 +3,7 @@ $this->pageTitle = array('Setup', Yii::app()->params['appTitle']);
...
@@ -3,6 +3,7 @@ $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'
,
$this
->
createUrl
(
'setup'
));
$this
->
addMetaProperty
(
'og:url'
,
$this
->
createUrl
(
'setup'
));
$this
->
addMetaProperty
(
'og:image'
,
Yii
::
app
()
->
request
->
getBaseUrl
(
true
)
.
'/images/bootstrap-avatar_normal.png'
);
$this
->
addMetaProperty
(
'og:site_name'
,
Yii
::
app
()
->
name
);
$this
->
addMetaProperty
(
'og:site_name'
,
Yii
::
app
()
->
name
);
$this
->
addMetaProperty
(
'og:locale'
,
Yii
::
app
()
->
fb
->
locale
);
$this
->
addMetaProperty
(
'og:locale'
,
Yii
::
app
()
->
fb
->
locale
);
$this
->
addMetaProperty
(
'fb:app_id'
,
Yii
::
app
()
->
fb
->
appID
);
$this
->
addMetaProperty
(
'fb:app_id'
,
Yii
::
app
()
->
fb
->
appID
);
...
...
widgets/BootMenu.php
View file @
dfc2c8b2
...
@@ -181,7 +181,8 @@ class BootMenu extends BootWidget
...
@@ -181,7 +181,8 @@ class BootMenu extends BootWidget
if
(
isset
(
$item
[
'items'
]))
if
(
isset
(
$item
[
'items'
]))
{
{
$item
[
'url'
]
=
'#'
;
if
(
!
isset
(
$item
[
'url'
]))
$item
[
'url'
]
=
'#'
;
if
(
isset
(
$item
[
'linkOptions'
][
'class'
]))
if
(
isset
(
$item
[
'linkOptions'
][
'class'
]))
$item
[
'linkOptions'
][
'class'
]
.=
' dropdown-toggle'
;
$item
[
'linkOptions'
][
'class'
]
.=
' dropdown-toggle'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment