Created
October 10, 2012 13:11
-
-
Save seyDoggy/3865565 to your computer and use it in GitHub Desktop.
Frehmwerk rw-blog-n and rw-filesharing-n FontAwesome additions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Pages Functions | |
================================================== */ | |
var div_blog_entry = jq.add('div.blog-entry'), | |
div_plugin_sidebar = jq.add('div#plugin_sidebar'), | |
group_plugin_sidebar = div_plugin_sidebar.find('div#blog-categories, div#blog-archives, ul.blog-tag-cloud, div#blog-rss-feeds'), | |
div_filesharing_item = jq.add('div.filesharing-item'); | |
var pages_fn = (function () { | |
// when blog page (main content) | |
if (div_blog_entry.length) { | |
// add entry icons with font-awesome | |
div_blog_entry | |
.find('h1.blog-entry-title a').prepend('<i class="icon-pencil"/> ') | |
.end().find('div.blog-entry-date').prepend('<i class="icon-calendar"/> '); | |
// add blog sidebar icons with font-awesome | |
group_plugin_sidebar.prepend('<div class="before"><i/></div>'); | |
div_plugin_sidebar | |
.find('div#blog-categories div.before') | |
.find('i').addClass('icon-folder-close') | |
.end().append(' Categories:') | |
.end().find('div#blog-archives div.before') | |
.find('i').addClass('icon-calendar') | |
.end().append(' Archives:') | |
.end().find('ul.blog-tag-cloud div.before') | |
.find('i').addClass('icon-tags') | |
.end().append(' Tags:') | |
.end().find('div#blog-rss-feeds div.before') | |
.find('i').addClass('icon-rss') | |
.end().append(' Feeds:'); | |
} | |
// when file sharing page | |
if (div_filesharing_item.length) { | |
// add file sharing icons with font-awesome | |
div_filesharing_item.find('div.filesharing-item-title a').prepend('<i class="icon-download-alt"/> '); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment