Exemple #1
0
 function __construct()
 {
     $settings['id'] = 'hoot-cta-widget';
     $settings['name'] = __('Hoot > Call To Action', 'chromatic');
     $settings['widget_options'] = array('description' => __('Display Call To Action block.', 'chromatic'), 'class' => 'hoot-cta-widget');
     $settings['control_options'] = array();
     $settings['form_options'] = array(array('name' => __('Headline', 'chromatic'), 'id' => 'headline', 'type' => 'text'), array('name' => __('Description', 'chromatic'), 'id' => 'description', 'type' => 'textarea'), array('name' => __('Button Text', 'chromatic'), 'desc' => __('Leave empty if you dont want to show button', 'chromatic'), 'id' => 'button_text', 'type' => 'text', 'std' => __('-- LEARN MORE --', 'chromatic')), array('name' => __('URL', 'chromatic'), 'desc' => __('Leave empty if you dont want to show button', 'chromatic'), 'id' => 'url', 'type' => 'text', 'sanitize' => 'url'), array('name' => __('Border', 'chromatic'), 'desc' => __('Top and bottom borders.', 'chromatic'), 'id' => 'border', 'type' => 'select', 'std' => 'none none', 'options' => array('line line' => __('Top - Line || Bottom - Line', 'chromatic'), 'line shadow' => __('Top - Line || Bottom - Shadow', 'chromatic'), 'line none' => __('Top - Line || Bottom - None', 'chromatic'), 'shadow line' => __('Top - Shadow || Bottom - Line', 'chromatic'), 'shadow shadow' => __('Top - Shadow || Bottom - Shadow', 'chromatic'), 'shadow none' => __('Top - Shadow || Bottom - None', 'chromatic'), 'none line' => __('Top - None || Bottom - Line', 'chromatic'), 'none shadow' => __('Top - None || Bottom - Shadow', 'chromatic'), 'none none' => __('Top - None || Bottom - None', 'chromatic'))));
     $settings = apply_filters('hoot_cta_widget_settings', $settings);
     parent::__construct($settings['id'], $settings['name'], $settings['widget_options'], $settings['control_options'], $settings['form_options']);
 }
 function __construct()
 {
     $settings['id'] = 'hoot-content-blocks-widget';
     $settings['name'] = __('Hoot > Content Blocks', 'chromatic');
     $settings['widget_options'] = array('description' => __('Display Styled Content Blocks.', 'chromatic'), 'class' => 'hoot-content-blocks-widget');
     $settings['control_options'] = array();
     $settings['form_options'] = array(array('name' => __('Blocks Style', 'chromatic'), 'id' => 'style', 'type' => 'images', 'std' => 'style1', 'options' => array('style1' => trailingslashit(HOOT_THEMEURI) . 'admin/images/content-block-style-1.png', 'style2' => trailingslashit(HOOT_THEMEURI) . 'admin/images/content-block-style-2.png', 'style3' => trailingslashit(HOOT_THEMEURI) . 'admin/images/content-block-style-3.png', 'style4' => trailingslashit(HOOT_THEMEURI) . 'admin/images/content-block-style-4.png')), array('name' => __('No. Of Columns', 'chromatic'), 'id' => 'columns', 'type' => 'select', 'std' => '3', 'options' => array('1' => __('1', 'chromatic'), '2' => __('2', 'chromatic'), '3' => __('3', 'chromatic'), '4' => __('4', 'chromatic'), '5' => __('5', 'chromatic'))), array('name' => __('Icon Style', 'chromatic'), 'desc' => __("Not applicable if 'Featured Image' is seected below.", 'chromatic'), 'id' => 'icon_style', 'type' => 'select', 'std' => 'circle', 'options' => array('none' => __('None', 'chromatic'), 'circle' => __('Circle', 'chromatic'), 'square' => __('Square', 'chromatic'))), array('name' => __('Border', 'chromatic'), 'desc' => __('Top and bottom borders.', 'chromatic'), 'id' => 'border', 'type' => 'select', 'std' => 'none none', 'options' => array('line line' => __('Top - Line || Bottom - Line', 'chromatic'), 'line shadow' => __('Top - Line || Bottom - Shadow', 'chromatic'), 'line none' => __('Top - Line || Bottom - None', 'chromatic'), 'shadow line' => __('Top - Shadow || Bottom - Line', 'chromatic'), 'shadow shadow' => __('Top - Shadow || Bottom - Shadow', 'chromatic'), 'shadow none' => __('Top - Shadow || Bottom - None', 'chromatic'), 'none line' => __('Top - None || Bottom - Line', 'chromatic'), 'none shadow' => __('Top - None || Bottom - Shadow', 'chromatic'), 'none none' => __('Top - None || Bottom - None', 'chromatic'))), array('name' => __("Use 'Featured Image' of page instead of icons.", 'chromatic'), 'id' => 'image', 'type' => 'checkbox'), array('name' => __("Display excerpt instead of full content (Read More link will be automatically inserted if no Custom Link URL is provided below)", 'chromatic'), 'id' => 'excerpt', 'type' => 'checkbox'), array('name' => __('Content Boxes', 'chromatic'), 'id' => 'boxes', 'type' => 'group', 'options' => array('item_name' => __('Content Box', 'chromatic')), 'fields' => array(array('name' => __('Icon', 'chromatic'), 'desc' => __("Not applicable if 'Featured Image' is selected above.", 'chromatic'), 'id' => 'icon', 'type' => 'icon'), array('name' => __('Page', 'chromatic'), 'id' => 'page', 'type' => 'select', 'options' => Hoot_WP_Widget::get_wp_list('page')), array('name' => __('Link Text (optional)', 'chromatic'), 'id' => 'link', 'type' => 'text'), array('name' => __('Link URL (optional)', 'chromatic'), 'id' => 'url', 'std' => 'http://', 'type' => 'text', 'sanitize' => 'url'))));
     $settings = apply_filters('hoot_content_blocks_widget_settings', $settings);
     parent::__construct($settings['id'], $settings['name'], $settings['widget_options'], $settings['control_options'], $settings['form_options']);
 }
 function __construct()
 {
     $settings['id'] = 'hoot-social-icons-widget';
     $settings['name'] = __('Hoot > Social Icons', 'responsive-brix');
     $settings['widget_options'] = array('description' => __('Display Social Icons', 'responsive-brix'), 'class' => 'hoot-social-icons-widget');
     $settings['control_options'] = array();
     $settings['form_options'] = array(array('name' => __('Icon Size', 'responsive-brix'), 'id' => 'size', 'type' => 'select', 'std' => 'medium', 'options' => array('small' => __('Small', 'responsive-brix'), 'medium' => __('Medium', 'responsive-brix'), 'large' => __('Large', 'responsive-brix'), 'huge' => __('Huge', 'responsive-brix'))), array('name' => __('Social Icons', 'responsive-brix'), 'id' => 'icons', 'type' => 'group', 'options' => array('item_name' => __('Icon', 'responsive-brix')), 'fields' => array(array('name' => __('Social Icon', 'responsive-brix'), 'id' => 'icon', 'type' => 'select', 'options' => hoot_enum_social_profiles()), array('name' => __('URL', 'responsive-brix'), 'id' => 'url', 'type' => 'text', 'sanitize' => 'social_icons_sanitize_url'))));
     $settings = apply_filters('hoot_social_icons_widget_settings', $settings);
     parent::__construct($settings['id'], $settings['name'], $settings['widget_options'], $settings['control_options'], $settings['form_options']);
 }
Exemple #4
0
 function __construct()
 {
     parent::__construct('hoot-cta-widget', __('Hoot > Call To Action', 'hoot'), array('description' => __('Display Call To Action block.', 'hoot'), 'class' => 'hoot-cta-widget'), array(), array(array('name' => __('Headline', 'hoot'), 'id' => 'headline', 'type' => 'text'), array('name' => __('Description', 'hoot'), 'id' => 'description', 'type' => 'textarea'), array('name' => __('Button Text', 'hoot'), 'desc' => __('Leave empty if you dont want to show button', 'hoot'), 'id' => 'button_text', 'type' => 'text', 'std' => __('KNOW MORE', 'hoot')), array('name' => __('URL', 'hoot'), 'desc' => __('Leave empty if you dont want to show button', 'hoot'), 'id' => 'url', 'type' => 'text', 'sanitize' => 'url'), array('name' => __('Border', 'hoot'), 'desc' => __('Top and bottom borders.', 'hoot'), 'id' => 'border', 'type' => 'select', 'std' => 'none none', 'options' => array('line line' => __('Top - Line || Bottom - Line', 'hoot'), 'line shadow' => __('Top - Line || Bottom - DoubleLine', 'hoot'), 'line none' => __('Top - Line || Bottom - None', 'hoot'), 'shadow line' => __('Top - DoubleLine || Bottom - Line', 'hoot'), 'shadow shadow' => __('Top - DoubleLine || Bottom - DoubleLine', 'hoot'), 'shadow none' => __('Top - DoubleLine || Bottom - None', 'hoot'), 'none line' => __('Top - None || Bottom - Line', 'hoot'), 'none shadow' => __('Top - None || Bottom - DoubleLine', 'hoot'), 'none none' => __('Top - None || Bottom - None', 'hoot')))));
 }
 function __construct()
 {
     parent::__construct('hoot-social-icons-widget', __('Hoot > Social Icons', 'hoot'), array('description' => __('Display Social Icons', 'hoot'), 'class' => 'hoot-social-icons-widget'), array(), array(array('name' => __('Icon Size', 'hoot'), 'id' => 'size', 'type' => 'select', 'std' => 'medium', 'options' => array('small' => __('Small', 'hoot'), 'medium' => __('Medium', 'hoot'), 'large' => __('Large', 'hoot'), 'huge' => __('Huge', 'hoot'))), array('name' => __('Social Icons', 'hoot'), 'id' => 'icons', 'type' => 'group', 'options' => array('item_name' => __('Icon', 'hoot')), 'fields' => array(array('name' => __('Social Icon', 'hoot'), 'id' => 'icon', 'type' => 'select', 'options' => array('fa-behance' => __('Behance', 'hoot'), 'fa-bitbucket' => __('Bitbucket', 'hoot'), 'fa-btc' => __('BTC', 'hoot'), 'fa-codepen' => __('Codepen', 'hoot'), 'fa-delicious' => __('Delicious', 'hoot'), 'fa-deviantart' => __('Deviantart', 'hoot'), 'fa-digg' => __('Digg', 'hoot'), 'fa-dribbble' => __('Dribbble', 'hoot'), 'fa-dropbox' => __('Dropbox', 'hoot'), 'fa-envelope' => __('Email', 'hoot'), 'fa-facebook' => __('Facebook', 'hoot'), 'fa-flickr' => __('Flickr', 'hoot'), 'fa-foursquare' => __('Foursquare', 'hoot'), 'fa-github' => __('Github', 'hoot'), 'fa-google-plus' => __('Google Plus', 'hoot'), 'fa-instagram' => __('Instagram', 'hoot'), 'fa-lastfm' => __('Last FM', 'hoot'), 'fa-linkedin' => __('Linkedin', 'hoot'), 'fa-pinterest' => __('Pinterest', 'hoot'), 'fa-reddit' => __('Reddit', 'hoot'), 'fa-rss' => __('RSS', 'hoot'), 'fa-skype' => __('Skype', 'hoot'), 'fa-slack' => __('Slack', 'hoot'), 'fa-slideshare' => __('Slideshare', 'hoot'), 'fa-soundcloud' => __('Soundcloud', 'hoot'), 'fa-stack-exchange' => __('Stack Exchange', 'hoot'), 'fa-stack-overflow' => __('Stack Overflow', 'hoot'), 'fa-steam' => __('Steam', 'hoot'), 'fa-stumbleupon' => __('Stumbleupon', 'hoot'), 'fa-tumblr' => __('Tumblr', 'hoot'), 'fa-twitch' => __('Twitch', 'hoot'), 'fa-twitter' => __('Twitter', 'hoot'), 'fa-vimeo-square' => __('Vimeo', 'hoot'), 'fa-wordpress' => __('Wordpress', 'hoot'), 'fa-yelp' => __('Yelp', 'hoot'), 'fa-youtube' => __('Youtube', 'hoot'))), array('name' => __('URL', 'hoot'), 'id' => 'url', 'type' => 'text', 'sanitize' => 'url')))));
 }
Exemple #6
0
 function __construct()
 {
     parent::__construct('hoot-cta-widget', __('Hoot > Call To Action', 'dispatch'), array('description' => __('Display Call To Action block.', 'dispatch'), 'class' => 'hoot-cta-widget'), array(), array(array('name' => __('Headline/Description', 'dispatch'), 'id' => 'page_id', 'type' => 'select', 'options' => Hoot_WP_Widget::get_wp_list('page')), array('name' => __('Button Text', 'dispatch'), 'desc' => __('Leave empty if you dont want to show button', 'dispatch'), 'id' => 'button_text', 'type' => 'text', 'std' => __('-- LEARN MORE --', 'dispatch')), array('name' => __('URL', 'dispatch'), 'desc' => __('Leave empty if you dont want to show button', 'dispatch'), 'id' => 'url', 'type' => 'text', 'sanitize' => 'url'), array('name' => __('Border', 'dispatch'), 'desc' => __('Top and bottom borders.', 'dispatch'), 'id' => 'border', 'type' => 'select', 'std' => 'none none', 'options' => array('line line' => __('Top - Line || Bottom - Line', 'dispatch'), 'line shadow' => __('Top - Line || Bottom - StrongDash', 'dispatch'), 'line none' => __('Top - Line || Bottom - None', 'dispatch'), 'shadow line' => __('Top - StrongDash || Bottom - Line', 'dispatch'), 'shadow shadow' => __('Top - StrongDash || Bottom - StrongDash', 'dispatch'), 'shadow none' => __('Top - StrongDash || Bottom - None', 'dispatch'), 'none line' => __('Top - None || Bottom - Line', 'dispatch'), 'none shadow' => __('Top - None || Bottom - StrongDash', 'dispatch'), 'none none' => __('Top - None || Bottom - None', 'dispatch')))));
 }