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 | |
/** | |
* @class Export_Import_Install_Control | |
*/ | |
final class Export_Import_Install_Control extends WP_Customize_Control { | |
/** | |
* @method render_content | |
* @protected |
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( $ ) { | |
$( function() { | |
FLBuilderGalleryGrid.prototype.resize = function() | |
{ | |
var winWidth = $(window).width(), | |
wrap = $(this.wrapSelector), | |
wrapWidth = wrap.width(), | |
numCols = winWidth > 480 ? 3 : 1, |
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 my_theme_register_part_hooks( $parts ) { | |
$parts[] = array( | |
'label' => 'Custom Hooks', | |
'hooks' => array( | |
'genesis_after_before-footer_widget_area' => 'Before Footer Widgets', | |
) | |
); | |
return $parts; | |
} | |
add_filter( 'fl_theme_builder_part_hooks', 'my_theme_register_part_hooks', 11 ); |
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( 'fl_builder_render_module_content', function( $content, $module ) { | |
if ( 'html' === $module->settings->type && FLBuilderModel::is_builder_active() ) { | |
$content = 'HTML rendering disabled in the builder.'; | |
} | |
return $content; | |
}, 10, 2 ); |
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 | |
function px_field_distance() { | |
$field = array( | |
'type' => 'select', | |
'label' => __( 'My Label', 'fl-builder' ), | |
'default' => '0', | |
'options' => array( | |
'0' => __( 'Option 1', 'fl-builder' ), | |
'1' => __( 'Option 2', 'fl-builder' ) |
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
<!-- Repeater with a nested repeater. --> | |
[wpbb-acf-repeater name='my_repeater'] | |
<p>[wpbb post:acf type='text' name='sub_field_text']</p> | |
[wpbb-acf-nested-repeater name='nested_repeater'] | |
<p>[wpbb post:acf type='text' name='nested_sub_field_text']</p> |
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( 'fl_builder_before_render_shortcodes', function( $content ) { | |
$shortcodes = array( 'field' ); // add other shortcodes here if needed | |
$pattern = get_shortcode_regex( $shortcodes ); | |
$content = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $content ); | |
return $content; | |
} ); |
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 | |
add_filter( 'fl_builder_register_settings_form', 'add_back_bb_row_bg_opacity', 10, 2 ); | |
add_filter( 'fl_builder_node_settings', 'apply_opacity_to_bb_row_bg_color', 10, 2 ); | |
function add_back_bb_row_bg_opacity( $form, $slug ) { | |
if ( 'row' === $slug ) { | |
$form['tabs']['style']['sections']['bg_color']['fields']['bg_opacity'] = array( | |
'type' => 'unit', | |
'label' => __( 'Opacity', 'fl-builder' ), |
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 | |
function filter_bb_layout_data( $nodes ) { | |
// Loop through the nodes. | |
foreach ( $nodes as $node_id => $node ) { | |
// Update row settings. | |
if ( 'row' === $node->type ) { |
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 | |
add_filter( 'fl_builder_render_settings_field', function( $field, $name, $setting ) { | |
if ( 'data_source' === $name ) { | |
$field['options']['my_option'] = __( 'My Option' ); | |
} | |
return $field; | |
}, 10, 3 ); |
OlderNewer