Example #1
0
 public function __construct($args = array())
 {
     $images_url = isset($args['defaults']) && isset($args['defaults']['images_url']) ? $args['defaults']['images_url'] : get_template_directory_uri() . '/includes/widgets/images/';
     $default_args = array('id_base' => 'appthemes_125_ads', 'name' => __('AppThemes 125x125 Ads', APP_TD), 'defaults' => array('title' => __('Sponsored Ads', APP_TD), 'newin' => false, 'ads' => "http://www.appthemes.com|" . $images_url . "ad125a.gif|Ad 1|nofollow\n" . "http://www.appthemes.com|" . $images_url . "ad125b.gif|Ad 2|follow\n" . "http://www.appthemes.com|" . $images_url . "ad125a.gif|Ad 3|nofollow\n" . "http://www.appthemes.com|" . $images_url . "ad125b.gif|Ad 4|follow", 'style_url' => get_template_directory_uri() . '/includes/widgets/styles/widget-125-ads.css', 'images_url' => $images_url), 'widget_ops' => array('description' => __('Places an ad space in the sidebar for 125x125 ads', APP_TD), 'classname' => 'widget-125-ads'), 'control_options' => array('width' => 500, 'height' => 350));
     extract($this->_array_merge_recursive($default_args, $args));
     parent::__construct($id_base, $name, $widget_ops, $control_options, $defaults);
 }
Example #2
0
 public function __construct($args = array())
 {
     $default_args = array('id_base' => 'appthemes_recent_posts', 'name' => __('AppThemes Recent Posts', APP_TD), 'defaults' => array('title' => __('Recent Posts', APP_TD), 'post_type' => 'post', 'number' => 3, 'post__in' => '', 'sticky' => false, 'show_rating' => false, 'show_date' => false, 'show_thumbnail' => false, 'show_readmore' => false, 'template' => '', 'style_url' => get_template_directory_uri() . '/includes/widgets/styles/widget-recent-posts.css', 'images_url' => get_template_directory_uri() . '/includes/widgets/images/'), 'widget_ops' => array('description' => __('Show recent posts any public types.', APP_TD), 'classname' => 'widget-recent-posts'), 'control_options' => array());
     extract($this->_array_merge_recursive($default_args, $args));
     $this->classname = $widget_ops['classname'];
     parent::__construct($id_base, $name, $widget_ops, $control_options, $defaults);
     add_action('save_post', array($this, 'flush_widget_cache'));
     add_action('deleted_post', array($this, 'flush_widget_cache'));
     add_action('switch_theme', array($this, 'flush_widget_cache'));
 }
Example #3
0
 public function __construct($args = array())
 {
     $default_args = array('id_base' => 'appthemes_taxonomy_list', 'name' => __('AppThemes Taxonomy List', APP_TD), 'defaults' => array('title' => __('Taxonomy Terms', APP_TD), 'menu_cols' => 2, 'menu_depth' => 3, 'menu_sub_num' => 3, 'cat_parent_count' => false, 'cat_child_count' => false, 'cat_hide_empty' => false, 'cat_nocatstext' => false, 'taxonomy' => 'category', 'archive_responsive' => false, 'style_url' => get_template_directory_uri() . '/includes/widgets/styles/widget-taxonomy-list.css'), 'widget_ops' => array('description' => __('Displays the list of selected taxonomy terms', APP_TD), 'classname' => 'widget-taxonomy-list'), 'control_options' => array());
     extract($this->_array_merge_recursive($default_args, $args));
     parent::__construct($id_base, $name, $widget_ops, $control_options, $defaults);
 }
Example #4
0
 public function __construct($args = array())
 {
     $default_args = array('id_base' => 'appthemes_breadcrumbs', 'name' => __('AppThemes Breadcrumbs', APP_TD), 'defaults' => array('separator' => '/', 'network' => false, 'show_title' => false, 'show_browse' => false), 'widget_ops' => array('description' => __('Displays the Breadcrumbs', APP_TD), 'classname' => 'widget-breadcrumbs'), 'control_options' => array());
     extract($this->_array_merge_recursive($default_args, $args));
     parent::__construct($id_base, $name, $widget_ops, $control_options, $defaults);
 }
Example #5
0
 public function __construct($args = array())
 {
     $default_args = array('id_base' => 'appthemes_facebook', 'name' => __('AppThemes Facebook Like Box', APP_TD), 'defaults' => array('title' => __('Facebook Friends', APP_TD), 'pid' => 'appthemes', 'width' => '310', 'height' => '290', 'hide_cover' => false, 'show_facepile' => true, 'show_posts' => false, 'hide_cta' => false, 'small_header' => false, 'adapt_container_width' => true), 'widget_ops' => array('description' => __('This places a Facebook page Like Box in your sidebar to attract and gain Likes from visitors.', APP_TD), 'classname' => 'widget-facebook'), 'control_options' => array());
     extract($this->_array_merge_recursive($default_args, $args));
     parent::__construct($id_base, $name, $widget_ops, $control_options, $defaults);
 }
Example #6
0
 public function __construct($args = array())
 {
     $default_args = array('id_base' => 'appthemes_social_connect', 'name' => __('AppThemes Social Connect', APP_TD), 'defaults' => array('title' => __('Social Connect', APP_TD), 'template' => 'teste', 'images_url' => '', 'social_networks' => '', 'exclude_mode' => false), 'widget_ops' => array('description' => __('A set of icons to link to many social networks.', APP_TD)), 'control_options' => array());
     extract($this->_array_merge_recursive($default_args, $args));
     parent::__construct($id_base, $name, $widget_ops, $control_options, $defaults);
 }
Example #7
0
 public function __construct($args = array())
 {
     $default_args = array('id_base' => 'widget-sold-ads', 'name' => __('ClassiPress Sold Ads', APP_TD), 'defaults' => array('title' => __('Sold Ads', APP_TD), 'number' => 10), 'widget_ops' => array('description' => __('Display the ads marked as sold.', APP_TD), 'classname' => 'widget-sold-ads'), 'control_options' => array());
     extract($this->_array_merge_recursive($default_args, $args));
     parent::__construct($id_base, $name, $widget_ops, $control_options, $defaults);
 }