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 |
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() { | |
/** |
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 { |
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]); |
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; |
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 ); | |
} |
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 |
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
{ | |
"fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-archive","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-audio-description","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars", |
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
/** | |
* @type {Object} JavaScript namespace for our application. | |
*/ | |
var Custom_Modal = {}; | |
(function($, Custom_Modal) { | |
var $ = jQuery; | |
_.extend( Custom_Modal, { view: {}, controller: {} } ); |
OlderNewer