PATH:
home
/
thebhoeo
/
.trash
/
woodmart
/
inc
/
widgets
<?php if ( ! defined('WOODMART_THEME_DIR')) exit('No direct script access allowed'); /** * Register widget that displays HTML static block * */ if ( ! class_exists( 'WOODMART_Static_Block_Widget' ) ) { class WOODMART_Static_Block_Widget extends WPH_Widget { function __construct() { // Configure widget array $args = array( // Widget Backend label 'label' => esc_html__( 'WOODMART HTML Block', 'woodmart' ), // Widget Backend Description 'description' => esc_html__( 'Display HTML block', 'woodmart' ), 'slug' => 'woodmart-html-block', ); // fields array $args['fields'] = array( array( 'id' => 'id', 'type' => 'dropdown', 'heading' => esc_html__( 'Select block', 'woodmart' ), 'callback_global' => 'woodmart_get_static_blocks_array', 'description' => function_exists( 'woodmart_get_html_block_links' ) ? woodmart_get_html_block_links() : '', ), ); // fields array // create widget $this->create_widget( $args ); } // Output function function widget( $args, $instance ) { if ( $this->is_widget_preview() ) { return; } echo wp_kses_post( $args['before_widget'] ); echo woodmart_get_html_block( $instance['id'] ); echo wp_kses_post( $args['after_widget'] ); } } // class }
[-] wph-widget-class.php
[edit]
[-] class-banner-widget.php
[edit]
[-] class-widget-recent-posts.php
[edit]
[-] widgets.php
[edit]
[-] class-widget-layered-nav.php
[edit]
[-] class-widget-stock-status.php
[edit]
[-] class-instagram-widget.php
[edit]
[-] class-product-category-filter.php
[edit]
[-] class-widget-price-filter.php
[edit]
[-] class-widget-twitter.php
[edit]
[-] class-widget-search.php
[edit]
[-] class-static-block-widget.php
[edit]
[-] class-author-area-widget.php
[edit]
[-] class-wp-nav-menu-widget.php
[edit]
[+]
..
[-] class-user-panel-widget.php
[edit]
[-] class-widget-mailchimp.php
[edit]
[-] class-widget-sorting.php
[edit]