I've just started a new job at an agency and I've been looking around at different starter themes for WordPress. I need something that works for me and effectively allows me to cut down on my dev time and does things that I would normally do anyways.
This file contains 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
var GalleryRouter = Backbone.Router.extend ({ | |
routes: { | |
'*actions': function(action) { | |
id = '#' + action; | |
jQuery(document).ready(function($) { | |
$("html, body").animate({ scrollTop: $(id).offset().top -150 }, 1000); | |
}); | |
} | |
} | |
}); |
This file contains 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
class RegionPage extends Region | |
init : -> | |
# elements | |
@$playlistAside = @$el.find('#playlists-aside') | |
@$playlistAsideItem = @$playlistAside.find('p') | |
# events | |
@events.on 'page.toggleAside', => @toggleAside() |
This file contains 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
/* | |
This should be put in your mixins.less file. | |
*/ | |
.font-face(@fontname) | |
{ | |
font-family: "@{fontname}"; | |
src: url("/assets/fonts/@{fontfile}.eot"); | |
src: url("/assets/fonts/@{fontpath}/@{fontfile}.eot?#iefix") format("embedded-opentype"), | |
url("/assets/fonts/@{fontfile}.woff") format("woff"), |
This file contains 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
<?php | |
$year = date("Y"); | |
// if the curret time is after november 31 but before the 31st of march, eot = 31st of march | |
$decemberstart = strtotime("1 December " + $year); | |
$marchend = strtotime("31 March " + $year); | |
// if the current time is after 1 april but before 31 july, eot = 31 july | |
$aprilstart = strtotime("1 April " + $year); |
This file contains 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
<?php | |
// put this in your functions.php file. | |
add_filter('body_class', 'five15_body_classes'); | |
function five15_body_classes($classes) { | |
if( !is_front_page() ) | |
$classes[] = 'not-home'; |
This file contains 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
<?php | |
/* | |
Plugin Name: Maybelline | |
Author: Anthony Cole | |
Author URI: http://anthonycole.me/ | |
*/ | |
/** | |
* WP_Maybelline | |
* |
This file contains 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
<?php | |
/* | |
Plugin Name: Learning Seat Homepage Slider Custom Post Type | |
Plugin URI: http://www.sennza.com.au | |
Description: Custom Post Type to populate slider on the homepage | |
Version: 1.0 | |
Author: Bronson Quick | |
Author URI: http://www.sennza.com.au | |
License: GPL2 | |
*/ |
This file contains 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
<?php | |
/* | |
Plugin Name: GeoRSS ACF Extension | |
Author: Anthony Cole | |
Author URI: http://anthonycole.me/ | |
Description: Extends ACF Locations extension to allow plotting multiple locations on a map with GeoRSS | |
Version: 0.5 | |
*/ | |
class GeoRSS_Map { |
This file contains 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
<?php | |
/** | |
* Appends content to WordPress content | |
* | |
* @return var $new_content | |
* @author Anthony Cole | |
**/ | |
function wcgold_modify_content( $content ) { | |
$string = ' and WordCamp Gold Coast is Awesome!'; |
NewerOlder