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
// Import main susy stylesheet. Assumes Compass is being used on the project | |
@import 'susy'; | |
$column-count: 12; | |
// Main Configuration settings for the Susy Grid | |
// Docs: http://susy.readthedocs.org/en/latest/settings/ | |
$susy: ( | |
columns: $column-count, // Number of columns in the grid | |
global-box-sizing: border-box, // Tells Susy to use border-box |
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 | |
// Query arguments go here - for all query arguments see: http://goo.gl/GuIvSn | |
$args = array( | |
//'numberposts' => -1, | |
//'post_type' => 'event', | |
//'meta_key' => 'location', | |
//'meta_value' => 'Melbourne' | |
); | |
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
// Default susy sass map of configuration options. | |
// These are the defaults. More information can be found here: http://susy.readthedocs.org/en/latest/settings/ | |
$susy: ( | |
flow: ltr, | |
math: fluid, | |
output: float, | |
gutter-position: after, | |
container: auto, | |
container-position: center, | |
columns: 4, |
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
if( function_exists('acf_add_options_page') ) { | |
acf_add_options_page(array( | |
'page_title' => 'Options', | |
'menu_title' => 'Options', | |
'menu_slug' => 'options', | |
'capability' => 'edit_posts', | |
'icon_url' => 'dashicons-forms', | |
'redirect' => false | |
)); |
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 | |
// On the scheduled action hook, run a function. | |
function my_cron_job_function() { | |
// Put all your codez here | |
// Sample code fetches a json feed and caches it by saving it as a file | |
set_time_limit(0); | |
//File to save the contents to |
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
<div class="nav-trigger"> | |
<span></span> | |
<span></span> | |
<span></span> | |
</div> |
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
<!-- Sublime text snippet for calling an advanced custom fields image in a Wordpress theme file --> | |
<snippet> | |
<content><![CDATA[ | |
<?php \$image = get_field('${1:acf_field_id}'); | |
if( !empty(\$image) ): ?> | |
<img src="<?php echo \$image['sizes']['${2:thumbnail}']; ?>" alt="<?php echo \$image['title']; ?>" /> | |
<?php endif; ?> | |
$0 | |
]]></content> | |
<tabTrigger>image</tabTrigger> |
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
// Add some styles to the admin end | |
function admin_styles() { | |
echo '<style type="text/css"> | |
#menu-comments, #menu-links, #menu-media, #menu-dashboard { display:none; } | |
</style>'; | |
} | |
add_action('admin_head', 'admin_styles'); |
OlderNewer