예제 #1
0
 function __construct()
 {
     parent::__construct('the-wp-cta-widget', __('• The WP > Call To Action', 'the-wp'), array('description' => __('Display Call To Action block.', 'the-wp'), 'class' => 'the-wp-cta-widget'), array(), array(array('name' => __('Headline', 'the-wp'), 'id' => 'headline', 'type' => 'text'), array('name' => __('Description', 'the-wp'), 'id' => 'description', 'type' => 'textarea'), array('name' => __('Button Text', 'the-wp'), 'desc' => __('Leave empty if you dont want to show button', 'the-wp'), 'id' => 'button_text', 'type' => 'text', 'std' => __('KNOW MORE', 'the-wp')), array('name' => __('URL', 'the-wp'), 'desc' => __('Leave empty if you dont want to show button', 'the-wp'), 'id' => 'url', 'type' => 'text', 'sanitize' => 'url'), array('name' => __('Border', 'the-wp'), 'desc' => __('Top and bottom borders.', 'the-wp'), 'id' => 'border', 'type' => 'select', 'std' => 'none none', 'options' => array('line line' => __('Top - Line || Bottom - Line', 'the-wp'), 'line shadow' => __('Top - Line || Bottom - DoubleLine', 'the-wp'), 'line none' => __('Top - Line || Bottom - None', 'the-wp'), 'shadow line' => __('Top - DoubleLine || Bottom - Line', 'the-wp'), 'shadow shadow' => __('Top - DoubleLine || Bottom - DoubleLine', 'the-wp'), 'shadow none' => __('Top - DoubleLine || Bottom - None', 'the-wp'), 'none line' => __('Top - None || Bottom - Line', 'the-wp'), 'none shadow' => __('Top - None || Bottom - DoubleLine', 'the-wp'), 'none none' => __('Top - None || Bottom - None', 'the-wp')))));
 }
예제 #2
0
 function __construct()
 {
     parent::__construct('the-wp-content-blocks-widget', __('• The WP > Content Blocks', 'the-wp'), array('description' => __('Display Styled Content Blocks.', 'the-wp'), 'class' => 'the-wp-content-blocks-widget'), array(), array(array('name' => __('Blocks Style', 'the-wp'), 'id' => 'style', 'type' => 'images', 'std' => 'style1', 'options' => array('style1' => trailingslashit(CEEWP_THEMEURI) . 'inc/admin/images/content-block-style-1.png', 'style2' => trailingslashit(CEEWP_THEMEURI) . 'inc/admin/images/content-block-style-2.png', 'style3' => trailingslashit(CEEWP_THEMEURI) . 'inc/admin/images/content-block-style-3.png', 'style4' => trailingslashit(CEEWP_THEMEURI) . 'inc/admin/images/content-block-style-4.png')), array('name' => __("Title", 'the-wp'), 'id' => 'title', 'type' => 'text', 'std' => __('Just write.', 'the-wp')), array('name' => __("Description", 'the-wp'), 'id' => 'desc', 'type' => 'text', 'std' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit sit amet interdum vestibulum, aliquam non ante.', 'the-wp')), array('name' => __('Number of Columns:', 'the-wp'), 'id' => 'columns', 'type' => 'select', 'std' => '3', 'options' => array('1' => __('One Column', 'the-wp'), '2' => __('Two Columns', 'the-wp'), '3' => __('Three Columns', 'the-wp'), '4' => __('Four Columns', 'the-wp'), '5' => __('Five Columns', 'the-wp'))), array('name' => __('Icon Style', 'the-wp'), 'desc' => __("Not applicable if 'Featured Image' is seected below.", 'the-wp'), 'id' => 'icon_style', 'type' => 'select', 'std' => 'circle', 'options' => array('none' => __('None', 'the-wp'), 'circle' => __('Circle', 'the-wp'), 'square' => __('Square', 'the-wp'))), array('name' => __('Border', 'the-wp'), 'desc' => __('Top and bottom borders.', 'the-wp'), 'id' => 'border', 'type' => 'select', 'std' => 'none none', 'options' => array('line line' => __('Top - Line || Bottom - Line', 'the-wp'), 'line shadow' => __('Top - Line || Bottom - DoubleLine', 'the-wp'), 'line none' => __('Top - Line || Bottom - None', 'the-wp'), 'shadow line' => __('Top - DoubleLine || Bottom - Line', 'the-wp'), 'shadow shadow' => __('Top - DoubleLine || Bottom - DoubleLine', 'the-wp'), 'shadow none' => __('Top - DoubleLine || Bottom - None', 'the-wp'), 'none line' => __('Top - None || Bottom - Line', 'the-wp'), 'none shadow' => __('Top - None || Bottom - DoubleLine', 'the-wp'), 'none none' => __('Top - None || Bottom - None', 'the-wp'))), array('name' => __("Use 'Featured Image' of page instead of icons.", 'the-wp'), 'id' => 'image', 'type' => 'checkbox'), array('name' => __("Display excerpt instead of full content (Read More link will be automatically used instead of Custom URLs below)", 'the-wp'), 'id' => 'excerpt', 'type' => 'checkbox'), array('name' => __('Content Boxes', 'the-wp'), 'id' => 'boxes', 'type' => 'group', 'options' => array('item_name' => __('Content Box', 'the-wp')), 'fields' => array(array('name' => __('Icon', 'the-wp'), 'desc' => __("Not applicable if 'Featured Image' is selected above.", 'the-wp'), 'id' => 'icon', 'type' => 'icon'), array('name' => __('Page', 'the-wp'), 'id' => 'page', 'type' => 'select', 'options' => The_WP_WP_Widget::get_wp_list('page')), array('name' => __('Link Text (optional)', 'the-wp'), 'id' => 'link', 'type' => 'text'), array('name' => __('Link URL', 'the-wp'), 'id' => 'url', 'std' => 'http://', 'type' => 'text', 'sanitize' => 'url')))));
 }
예제 #3
0
 function __construct()
 {
     parent::__construct('the-wp-social-icons-widget', __('• The WP > Social Icons', 'the-wp'), array('description' => __('Display Social Icons', 'the-wp'), 'class' => 'the-wp-social-icons-widget'), array(), array(array('name' => __('Icon Size', 'the-wp'), 'id' => 'size', 'type' => 'select', 'std' => 'medium', 'options' => array('small' => __('Small', 'the-wp'), 'medium' => __('Medium', 'the-wp'), 'large' => __('Large', 'the-wp'), 'huge' => __('Huge', 'the-wp'))), array('name' => __('Social Icons', 'the-wp'), 'id' => 'icons', 'type' => 'group', 'options' => array('item_name' => __('Icon', 'the-wp')), 'fields' => array(array('name' => __('Social Icon', 'the-wp'), 'id' => 'icon', 'type' => 'select', 'options' => array('fa-behance' => __('Behance', 'the-wp'), 'fa-bitbucket' => __('Bitbucket', 'the-wp'), 'fa-btc' => __('BTC', 'the-wp'), 'fa-codepen' => __('Codepen', 'the-wp'), 'fa-delicious' => __('Delicious', 'the-wp'), 'fa-deviantart' => __('Deviantart', 'the-wp'), 'fa-digg' => __('Digg', 'the-wp'), 'fa-dribbble' => __('Dribbble', 'the-wp'), 'fa-dropbox' => __('Dropbox', 'the-wp'), 'fa-envelope' => __('Email', 'the-wp'), 'fa-facebook' => __('Facebook', 'the-wp'), 'fa-flickr' => __('Flickr', 'the-wp'), 'fa-foursquare' => __('Foursquare', 'the-wp'), 'fa-github' => __('Github', 'the-wp'), 'fa-google-plus' => __('Google Plus', 'the-wp'), 'fa-instagram' => __('Instagram', 'the-wp'), 'fa-lastfm' => __('Last FM', 'the-wp'), 'fa-linkedin' => __('Linkedin', 'the-wp'), 'fa-pinterest' => __('Pinterest', 'the-wp'), 'fa-reddit' => __('Reddit', 'the-wp'), 'fa-rss' => __('RSS', 'the-wp'), 'fa-skype' => __('Skype', 'the-wp'), 'fa-slack' => __('Slack', 'the-wp'), 'fa-slideshare' => __('Slideshare', 'the-wp'), 'fa-soundcloud' => __('Soundcloud', 'the-wp'), 'fa-stack-exchange' => __('Stack Exchange', 'the-wp'), 'fa-stack-overflow' => __('Stack Overflow', 'the-wp'), 'fa-steam' => __('Steam', 'the-wp'), 'fa-stumbleupon' => __('Stumbleupon', 'the-wp'), 'fa-tumblr' => __('Tumblr', 'the-wp'), 'fa-twitch' => __('Twitch', 'the-wp'), 'fa-twitter' => __('Twitter', 'the-wp'), 'fa-vimeo-square' => __('Vimeo', 'the-wp'), 'fa-wordpress' => __('Wordpress', 'the-wp'), 'fa-yelp' => __('Yelp', 'the-wp'), 'fa-youtube' => __('Youtube', 'the-wp'))), array('name' => __('URL', 'the-wp'), 'id' => 'url', 'type' => 'text', 'sanitize' => 'url')))));
 }