This file contains hidden or 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 | |
// We need to add a new option to the form elements select | |
add_filter( 'buddyforms_add_form_element_to_select', 'my_form_element_to_select', 1, 2 ); | |
function my_form_element_to_select( $elements_select_options ) { | |
global $post; | |
if ( $post->post_type != 'buddyforms' ) { | |
return; | |
} |
This file contains hidden or 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 | |
$taxonomies = buddyforms_taxonomies($form_slug); | |
$taxonomy = false; | |
if(isset($buddyforms_options['buddyforms'][$form_slug]['form_fields'][$field_id]['taxonomy'])) | |
$taxonomy = $buddyforms_options['buddyforms'][$form_slug]['form_fields'][$field_id]['taxonomy']; | |
$form_fields['left']['taxonomy'] = new Element_Select('<b>' . __('Taxonomy', 'buddyforms') . '</b>', "buddyforms_options[buddyforms][".$form_slug."][form_fields][".$field_id."][taxonomy]", $taxonomies, array('value' => $taxonomy)); | |
$taxonomy_order = 'false'; | |
if(isset($buddyforms_options['buddyforms'][$form_slug]['form_fields'][$field_id]['taxonomy_order'])) |
This file contains hidden or 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 | |
function cc_switch_css(){ | |
global $cap; | |
$switch_css = array( | |
'body_bg_color' => 'ffffff', | |
'container_bg_color' => 'ffffff', | |
'container_alt_bg_color' => 'ededed', | |
'details_bg_color' => 'ededed', | |
'details_hover_bg_color' => 'f9f9f9', |
This file contains hidden or 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
{"theme_mods":{"header_textcolor":"003044","background_color":"","background_image":"","background_repeat":"repeat","background_position_x":"left","background_attachment":"fixed","site_title_font_family":"\"Ubuntu Condensed\", \"Droid Sans\", \"Helvetica Neue\", Tahoma, Arial, sans-serif","google_fonts_note_site_title":"","site_title_position":"left","display_header_heading":"","display_header_home":true,"display_header_posts":true,"display_header_pages":true,"display_header_archive":true,"display_header_search":true,"display_header_404":true,"header_height":"auto","header_height_note":"","header_height_home":"auto","header_height_home_note":"","header_width":"fullwidth","header_width_note":"","fixed_top_nav":true,"use_dark_colors":"","dark_bottom_nav":"","add_nav_brand":"","top_nav_brand":true,"bottom_nav_brand":"","layouts_note":"","default_layout":"right","default_page_layout":"right","default_post_layout":"right","default_archive_layout":"right","title_font_family":"\"Ubuntu Condensed\", \"Droid Sans\", \ |
This file contains hidden or 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
{"theme_mods":{"color_scheme":"default","header_textcolor":"728fa8","background_color":"050505","font_color":"cecece","link_color":"6e9aad","hover_color":"31526b","top_nav_hover_background_color":"d6d6d6","top_nav_active_background_color":"d6d6d6","top_nav_active_text_color":"b7b7b7","top_nav_dropdown_background_color":"d6d6d6","top_nav_dropdown_text_color":"8c8c8c","top_nav_dropdown_hover_background_color":"31526b","secondary_nav_hover_background_color":"d6d6d6","secondary_nav_active_background_color":"d6d6d6","secondary_nav_active_text_color":"b7b7b7","secondary_nav_dropdown_background_color":"d6d6d6","secondary_nav_dropdown_text_color":"8c8c8c","secondary_nav_dropdown_hover_background_color":"31526b","footer_column_border_bottom_color":"c4c4c4","tagline_text_color":"cecece","title_font_color":"015670","header_background_color":"050505","top_nav_background_color":"31526b","top_nav_text_color":"8c8c8c","top_nav_hover_text_color":"353231","secondary_nav_background_color":"31526b","secondary_nav_text_color":"8 |
This file contains hidden or 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
{"theme_mods":{"color_scheme":"default","nav_menu_locations":{"top":180},"cc_slideshow_template":"tine","cc_slider_display":"home","cc2_slideshow_style":"bubble-preview","cc_slider_position":"cc_first_inside_main_content","header_textcolor":"005b04","background_color":"fff9db","font_color":"515151","link_color":"8f9e68","hover_color":"336629","top_nav_font_size":"20px","top_nav_hover_background_color":"eddeaf","top_nav_active_background_color":"f2daa4","top_nav_active_text_color":"701919","top_nav_dropdown_background_color":"f4f3dc","top_nav_dropdown_text_color":"701919","top_nav_background_color":"005b04","top_nav_text_color":"eddeaf","top_nav_hover_text_color":"701919","top_nav_font_family":"Georgia, \"Times New Roman\", Times, serif","top_nav_dropdown_hover_background_color":"005b04","top_nav_dropdown_hover_text_color":"eddeaf","secondary_nav_hover_background_color":"eddeaf","secondary_nav_active_background_color":"eddeaf","secondary_nav_active_text_color":"701919","secondary_nav_dropdown_background_color" |
This file contains hidden or 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
array ( | |
'theme_mods' => | |
array ( | |
'color_scheme' => 'default', | |
'default_page_layout' => 'right', | |
'default_post_layout' => 'right', | |
'default_archive_layout' => 'right', | |
'default_layout' => 'right', | |
'header_textcolor' => '005b04', | |
'background_color' => 'fff9db', |
This file contains hidden or 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
array ( | |
'theme_mods' => | |
array ( | |
'color_scheme' => 'default', | |
'default_page_layout' => 'right', | |
'default_post_layout' => 'right', | |
'default_archive_layout' => 'right', | |
'default_layout' => 'right', | |
'header_textcolor' => '728fa8', | |
'background_color' => '050505', |
This file contains hidden or 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 | |
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); | |
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); | |
add_action('woocommerce_before_main_content', 'cc2_theme_wrapper_start', 10); | |
add_action('woocommerce_after_main_content', 'cc2_theme_wrapper_end', 10); | |
function cc2_theme_wrapper_start() {?> | |
<div class="main-content"> |
This file contains hidden or 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 | |
//Add a content filter to attache your Gallery. | |
add_filter('the_content', 'my_custom_gallery', 10, 1); | |
function my_custom_gallery($content){ | |
global $post, $buddyforms; | |
if(is_admin()) | |
return $content; |