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
/** | |
* Register Community Custom Post Type | |
*/ | |
function community_post_type() { | |
$labels = array( | |
'name' => 'Communities', | |
'singular_name' => 'Community', | |
'menu_name' => 'Communities', | |
'name_admin_bar' => 'Communities', |
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
[tabgroup] | |
[tab title="Tab 1" id="t1"]Tab 1 content[/tab] | |
[tab title="Tab 2" id="t2"]Tab 2 content[/tab] | |
[tab title="Tab 3" id="t3"]Tab 3 content[/tab] | |
[/tabgroup] |
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 brand color palette to acf color picker | |
function kronos_acf_input_admin_footer() { | |
?><script type="text/javascript"> | |
(function($) { | |
acf.add_filter('color_picker_args', function( args, $field ){ | |
args.palettes = ["#000000","#CCCCCC","#EEEEEE","#FFFFFF","#b9ad33","#4c92af","#79c0a6"] | |
return args; | |
}); | |
})(jQuery); | |
</script> |
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
/* Table of Contents | |
================================================== | |
#Base 960 Grid | |
#Tablet (Portrait) | |
#Mobile (Portrait) | |
#Mobile (Landscape) | |
#Clearing */ | |
.full-width {width:960px; height:auto; overflow:hidden} | |
#teaser.normal {width: 960px;} |
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
/*-----------------------------------------------------------------------------------*/ | |
// Register and Minify Core Stylesheets | |
/*-----------------------------------------------------------------------------------*/ | |
function st_registerstyles() { | |
// minify folder name (must be in your wp root). | |
$minpath = '/min'; | |
// define directories | |
$child_theme = str_replace(site_url().'/wp-content/themes/', '', get_bloginfo('stylesheet_directory')); |
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 | |
$url = array ( | |
'http://youtu.be/dQw4w9WgXcA', | |
'http://www.youtube.com/embed/dQw4w9WgXcB', | |
'http://www.youtube.com/watch?v=dQw4w9WgXcC', | |
'http://www.youtube.com/?v=dQw4w9WgXcD', | |
'http://www.youtube.com/v/dQw4w9WgXcE', | |
'http://www.youtube.com/e/dQw4w9WgXcF', | |
'http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcG', |
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
/*! | |
* Margin Offsets | |
*/ | |
.mv0 { | |
margin-top: 0 !important; | |
margin-bottom: 0 !important; | |
} | |
.mh0 { | |
margin-left: 0 !important; |
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
<!DOCTYPE html> | |
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> | |
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> | |
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> | |
<head> | |
<!-- Basic Page Needs | |
================================================== --> | |
<meta charset="utf-8"> | |
<title>Video Control Example</title> |
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 data = [ | |
{ | |
id: 1, | |
text: 'Adams' | |
}, | |
{ | |
id: 2, | |
text: 'Ashland' | |
}, | |
{ |
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
/* | |
Plugin Name: Set Shop Cookie | |
Description: Adds a cookie for most recently viewed products | |
Version: 0.1 | |
Author: Casey Lee | |
Author URL: https://simplethemes.com | |
*/ | |
class SetWpShopCookie { |
NewerOlder