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
'frames' => array( | |
'type' => 'repeater', | |
'label' => __( 'Example', 'so-widgets-bundle' ), | |
'item_name' => __( 'item', 'so-widgets-bundle' ), | |
'item_label' => array( | |
'table' => true, | |
'selectorArray' => array( | |
array( | |
'selectorArray' => array( | |
array( |
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
jQuery( function( $ ) { | |
const activeItems = []; | |
const $accordions = $( '.sow-accordion-panel-header' ); | |
$accordions.on( 'click', function() { | |
const $$ = $( this ); | |
// Is this script closing an accordion? | |
if ( $$.hasClass( 'sow-accordion-force-close' ) ) { | |
$$.removeClass( 'sow-accordion-force-close' ); |
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_filter( 'siteorigin_widgets_blog_filter_categories_output', function( $categories ) { | |
if ( empty( $categories ) ) { | |
return $categories; | |
} | |
return array_filter( $categories, function( $category ) { | |
return $category->parent === 0; | |
} ); | |
}, 10, 1 ); |
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
'frames' => array( | |
'type' => 'repeater', | |
'label' => __( 'Example', 'so-widgets-bundle' ), | |
'item_name' => __( 'item', 'so-widgets-bundle' ), | |
'item_label' => array( | |
'table' => true, | |
'selectorArray' => array( | |
array( | |
'selector' => '.siteorigin-widget-field-title .siteorigin-widget-input', | |
'valueMethod' => 'val', |
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
add_filter( 'siteorigin_widgets_instance_sow-image', function( $instance, $widget ) { | |
if ( ! empty( $instance['size_width'] ) && $instance['size_width'] === 9999 ) { | |
unset( $instance['size_width'] ); | |
} | |
if ( ! empty( $instance['size_height'] ) && $instance['size_height'] === 9999 ) { | |
unset( $instance['size_height'] ); | |
} | |
if ( ! empty( $instance['size_external_width'] ) && $instance['size_external_width'] === 9999 ) { |
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
add_action( 'wp_enqueue_scripts', function() { | |
wp_deregister_script( 'wp-mediaelement' ); | |
wp_deregister_style( 'wp-mediaelement' ); | |
} ); | |
add_filter( 'sow_video_add_controls', '__return_true' ); | |
add_filter( 'sow_video_add_controls', '__return_true' ); |
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
add_filter( 'siteorigin_panels_row_classes', function( $row_classes, $row ) { | |
if ( ! empty( $row['cells'] ) && count( $row['cells'] ) > 1) { | |
$row_classes[] = 'panel-row-cells-' . count( $row['cells'] ); | |
} | |
return $row_classes; | |
}, 10, 2 ); |
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
add_filter( 'the_content', function( $content ) { | |
wp_dequeue_style( 'siteorigin-widget-icon-font-icomoon' ); | |
return $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
.so-hero-kenburns .sow-slider-image.cycle-slide-active { | |
animation: 60s kenburns linear infinite alternate; | |
} | |
@keyframes kenburns{ | |
0% { | |
background-size: 75%; | |
background-position: right 25%; | |
} | |
25% { |
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
add_action( 'init', function() { | |
add_post_type_support( 'tribe_events', 'so-page-settings' ); | |
} ); |
NewerOlder