ding_fields = apply_filters( 'better-framework/shortcodes/heading-fields', array(), $this->id ); if ( $heading_fields ) { $fields = array_merge( $fields, $heading_fields ); } } /** * Retrieve design fields from outside (our themes are defining them) */ { $design_fields = apply_filters( 'better-framework/shortcodes/design-fields', array(), $this->id ); if ( $design_fields ) { $fields = array_merge( $fields, $design_fields ); } } bf_array_insert_after( 'bs-show-phone', $fields, 'bs-text-color-scheme', array( 'name' => __( 'Block Text Color Scheme', 'publisher' ), 'id' => 'bs-text-color-scheme', // 'type' => 'select', 'options' => array( '' => __( '-- Default --', 'publisher' ), 'light' => __( 'White Color Texts', 'publisher' ), ), // 'vc_admin_label' => false, ) ); return $fields; } /** * Registers Page Builder Add-on */ function page_builder_settings() { $settings = parent::page_builder_settings(); return array_merge( $settings, array( 'name' => __( 'News Ticker', 'publisher' ), "id" => $this->id, "weight" => 10, "wrapper_height" => 'full', 'icon_url' => PUBLISHER_THEME_URI . 'images/better-newsticker.png', "category" => publisher_white_label_get_option( 'publisher' ), ) ); } /** * Handle displaying of shortcode * * @param array $atts * @param string $content * * @return string */ function display( array $atts, $content = '' ) { ob_start(); publisher_set_prop( 'shortcode-better-newsticker', $atts ); publisher_get_view( 'shortcodes', 'better-newsticker' ); publisher_clear_props(); publisher_clear_query(); return ob_get_clean(); } function tinymce_settings() { return array( 'name' => __( 'News Ticker', 'publisher' ), 'scripts' => array( array( 'type' => 'registered', 'handles' => array( 'theme-libs' ) ), array( 'type' => 'inline', 'data' => 'jQuery(function($){$(\'.better-newsticker\').betterNewsticker({control_nav: true});})', ), ), ); } } EPV Dominique Savio Education de Koumassi - JusteInfos- Information générale

Browsing tag

EPV Dominique Savio Education de Koumassi