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
// In Canvas admin-interface.php | |
// executed on main theme options page | |
if ( $pagenow == 'admin.php' && isset( $_GET['page'] ) && $_GET['page'] == 'woothemes' ) { | |
if ( get_option( 'framework_woo_theme_version_checker' ) == 'true' ) { add_action( 'admin_notices', 'woo_theme_update_notice', 10 ); } | |
// Which calls theme update notice (if it's not disabled) | |
if ( ! function_exists( 'woo_theme_update_notice' ) ) { | |
function woo_theme_update_notice () { | |
$theme_data = get_theme_data( get_template_directory() . '/style.css' ); |
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_filter('option_active_plugins', 'p2_filter_active_plugins'); | |
function p2_filter_active_plugins($active_plugins) { | |
if(get_template()!='p2') return $active_plugins; | |
$required_plugins = array( | |
'inform-about-content/inform-about-content.php' | |
); | |
foreach ($required_plugins as $key => $plugin) { | |
if(!(in_array($plugin, $active_plugins))) $active_plugins[] = $plugin; |
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_filter('gform_pre_render', 'tdgf_favorite_food'); | |
function tdgf_favorite_food($form) { | |
if(empty($form['fields'])) return; | |
foreach ($form['fields'] as $key => &$field) { | |
if($field['cssClass']!='favorite_food' || empty($field['choices'])) continue; | |
$field['choices'] = array('apples' => 'Apples', 'oranges' => 'Oranges'); | |
} | |
return $form; |
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 id="testfield" class="span16"> | |
<div class="flyout-wrap"> | |
<a class="flyout-btn" href="#" title="Toggle"><span>Flyout Menu Toggle</span></a> | |
<ul class="flyout flyout-init"> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> |
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 id="testfield" class="span16"> | |
<div class="flyout-wrap"> | |
<a class="flyout-btn" href="#" title="Toggle"><span>Flyout Menu Toggle</span></a> | |
<ul class="flyout flyout-init"> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> |
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 id="testfield" class="span16"> | |
<div class="flyout-wrap"> | |
<a class="flyout-btn" href="#" title="Toggle"><span>Flyout Menu Toggle</span></a> | |
<ul class="flyout flyout-init"> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> |
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 id="testfield" class="span16"> | |
<div class="flyout-wrap"> | |
<a class="flyout-btn" href="#" title="Toggle"><span>Flyout Menu Toggle</span></a> | |
<ul class="flyout flyout-init"> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> | |
<li><a href="#"><span>Item</span></a></li> |
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 | |
// Exit if accessed directly | |
if ( !defined( 'ABSPATH' ) ) exit; | |
/**** | |
You should paste this into a file (in the example below : bp-customize-registration.php ) | |
in your active theme's folder, then depending if your theme is a child theme or not you should | |
use this code in your functions.php to include the trick |
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 | |
// Fetch vars | |
$event = array( | |
'id' => $_GET['id'], | |
'title' => $_GET['title'], | |
'address' => $_GET['address'], | |
'description' => $_GET['description'], | |
'datestart' => $_GET['datestart'], | |
'dateend' => $_GET['dateend'], | |
'address' => $_GET['stage'] |
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: Post By Email Customizations | |
Plugin URI: http://tylerdigital.com | |
Description: Handle Jetpack Post By Email – featured images, post formats, post content | |
Version: 1.0 | |
Author: Tyler Digital | |
Author URI: http://tylerdigital.com | |
*/ |
OlderNewer