View colors.scss
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
// Common social media colors | |
// More at http://brandcolors.net/ | |
$dribbble-color:#ea4c89; | |
$facebook-color:#3b5998; | |
$github-color:#007bb6; | |
$google-color:#dd4b39; | |
$linkedin-color:#171515; | |
$rss-color:#ee802f; | |
$twitter-color:#00aced; |
View cart-cache-breaker.php
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
/** Break html5 cart caching */ | |
add_action('wp_enqueue_scripts', 'cartcache_enqueue_scripts', 100); | |
function cartcache_enqueue_scripts() | |
{ | |
wp_deregister_script('wc-cart-fragments'); | |
wp_enqueue_script( 'wc-cart-fragments', get_template_directory_uri() . '/cart-fragments.js', array( 'jquery', 'jquery-cookie' ), '1.0', true ); | |
} |
View ts-make-pot.php
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 | |
require_once dirname( __FILE__ ) . '/makepot.php'; | |
if ( !defined( 'STDERR' ) ) { | |
define( 'STDERR', fopen( 'php://stderr', 'w' ) ); | |
} | |
/** | |
* Extend to add text domain check |
View test
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 is the tagline box --> | |
[tagline_box link="http://themeforest.net/user/ThemeFusion" button="Purchase Now" title="Avada is incredibly responsive, with a refreshingly clean design" description="And it has some awesome features, premium sliders, unlimited colors, advanced theme options and so much more!"] | |
[/tagline_box] | |
<!-- these are the content boxes --> | |
[content_boxes] | |
[content_box title="Responsive Design" image="" icon="tablet" link="http://themeforest.net/user/ThemeFusionhttp://themeforest.net/user/ThemeFusion" linktext="Learn More"]Avada is fully responsive and can adapt to any screen size. Try resizing your browser window to see it happen.[/content_box] |
View gist:6968473
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
$locations = get_theme_mod( 'nav_menu_locations' ); // registered menu locations in theme | |
$menus = wp_get_nav_menus(); // registered menus | |
if($menus) { | |
foreach($menus as $menu) { // assign menus to theme locations | |
if( $menu->name == 'Main' ) { | |
$locations['main_navigation'] = $menu->term_id; | |
} else if( $menu->name == '404' ) { | |
$locations['404_pages'] = $menu->term_id; | |
} else if( $menu->name == 'Top' ) { |
View TGM plugin modified for Kallyas
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 installation and activation for WordPress themes. | |
* | |
* @package TGM-Plugin-Activation | |
* @version 2.3.6 | |
* @author Thomas Griffin <thomas@thomasgriffinmedia.com> | |
* @author Gary Jones <gamajo@gamajo.com> | |
* @copyright Copyright (c) 2012, Thomas Griffin | |
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later |
View TGM config modified for Kallyas
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 | |
define( 'THEMENAME', 'Kallyas' ); | |
require_once dirname( __FILE__ ) . '/framework/class-tgm-plugin-activation.php'; | |
add_action( 'tgmpa_register', 'kallyas_register_required_plugins' ); | |
function kallyas_register_required_plugins() { | |
/** |
View generate_options_css.php
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
function generate_options_css($newdata) { | |
/** Define some vars **/ | |
$data = $newdata; | |
$uploads = wp_upload_dir(); | |
$css_dir = get_template_directory() . '/css/'; // Shorten code, save 1 call | |
/** Save on different directory if on multisite **/ | |
if(is_multisite()) { | |
$aq_uploads_dir = trailingslashit($uploads['basedir']); | |
} else { |
View SMOF2Redux.php
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
function SMOFtoRedux() { | |
global $of_options; | |
$options = $of_options; | |
$sections = array(); | |
$section = array(); | |
$fields = array(); | |
foreach($options as $key=>$value) { | |
foreach ($value as $k=>$v) { | |
if (empty($v)) { | |
unset($value[$k]); |
View wp.php
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 | |
if( is_page( 'Home' ) ) { | |
echo 'This is a homepage'; | |
} else if( is_page( 'About' ) ) { | |
echo 'About Me'; | |
} |
OlderNewer