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
95c23a99
Commit
95c23a99
authored
Feb 11, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added social networking elements to the demo.
parent
d125198c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
styles.less
demo/less/styles.less
+9
-0
main.php
demo/protected/views/layouts/main.php
+36
-0
No files found.
demo/less/styles.less
View file @
95c23a99
...
...
@@ -30,6 +30,15 @@ p {
}
}
.navbar {
.add-this {
background: #EEE;
margin: 6px 0;
padding: 6px 12px;
.border-radius(16px);
}
}
.subnav {
border: 1px solid #E5E5E5;
font-size: 12px;
...
...
demo/protected/views/layouts/main.php
View file @
95c23a99
...
...
@@ -28,6 +28,17 @@
<body
id=
"top"
>
<div
id=
"fb-root"
></div>
<script
type=
"text/javascript"
>
(
function
(
d
,
s
,
id
)
{
var
js
,
fjs
=
d
.
getElementsByTagName
(
s
)[
0
];
if
(
d
.
getElementById
(
id
))
return
;
js
=
d
.
createElement
(
s
);
js
.
id
=
id
;
js
.
src
=
"//connect.facebook.net/en_US/all.js#xfbml=1"
;
fjs
.
parentNode
.
insertBefore
(
js
,
fjs
);
}(
document
,
'script'
,
'facebook-jssdk'
));
</script>
<?php
$this
->
widget
(
'BootNavbar'
,
array
(
'brand'
=>
CHtml
::
encode
(
Yii
::
app
()
->
name
),
'collapse'
=>
true
,
...
...
@@ -39,6 +50,19 @@
array
(
'label'
=>
'Setup'
,
'url'
=>
array
(
'site/setup'
)),
),
),
'
<div class="add-this pull-right">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_google"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<!-- AddThis Button END -->
</div>'
),
));
?>
...
...
@@ -65,6 +89,16 @@
<?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
↑
</a>
</section>
<hr
/>
<footer>
...
...
@@ -85,5 +119,7 @@
</div>
<script
type=
"text/javascript"
src=
"http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f362fc83fc39768"
></script>
</body>
</html>
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