function form($instance) { //get all registered sidebars global $wp_registered_sidebars; $sidebar_options = array(); $default_sidebar = ''; foreach ($wp_registered_sidebars as $registered_sidebar) { $default_sidebar = empty($default_sidebar) ? $registered_sidebar['id'] : $default_sidebar; $sidebar_options[$registered_sidebar['id']] = $registered_sidebar['name']; } $defaults = array('sidebar' => $default_sidebar); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description half"> <label for="<?php echo $block_id; ?> _title"> Title (optional)<br/> <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="description half last"> <label for=""> Choose widget area<br/> <?php echo aq_field_select('sidebar', $block_id, $sidebar_options, $sidebar); ?> </label> </p> <?php }
function form($instance) { $defaults = array('show_row' => 'true'); $instance = wp_parse_args($instance, $defaults); extract($instance); $row = array('true' => 'Yes', 'false' => 'No'); ?> <p class="description"> <?php _e('There is no setting here. Just make sure to add this block if you use container (open).', 'oneengine'); ?> </p> <p class="description"> <label for="<?php echo $this->get_field_id('show_row'); ?> "> <?php _e('Show/hide section "row" (if you add block item fullwidth here, please choose "No" for 2 block "Container (open)" and "Container (close)")', 'oneengine'); ?> <?php echo aq_field_select('show_row', $block_id, $row, $show_row); ?> </label> </p> <?php }
function form($instance) { $defaults = array('type' => 'fullwidth', 'pppage' => '999', 'filter' => 'all', 'show_filter' => 1); $instance = wp_parse_args($instance, $defaults); extract($instance); $args = array('orderby' => 'name', 'hide_empty' => 0, 'hierarchical' => 1, 'taxonomy' => 'portfolio_category'); $filter_options = get_categories($args); $portfolio_types = array('half' => 'Fullwidth Portfolio (2 Columns)', 'fullwidth' => 'Fullwidth Portfolio', 'quarter' => 'Fullwidth Portfolio (4 Columns)', 'contained' => 'Contained Portfolio'); ?> <p class="description">Portfolio Style</p> <?php echo aq_field_select('type', $block_id, $portfolio_types, $type); ?> <p class="description">Load how many items? 999 for all. <code>Note: The Portfolio is not Paged</code></p> <?php echo aq_field_input('pppage', $block_id, $pppage, $size = 'full', $type = 'number'); ?> <p class="description">Show a specific portfolio category?</p> <?php echo ebor_portfolio_field_select('filter', $block_id, $filter_options, $filter); ?> <p class="description">Show Portfolio Filters?</p> <?php echo aq_field_checkbox('show_filter', $block_id, $show_filter); ?> <?php }
function form($instance) { $defaults = array('content' => '', 'type' => '', 'format' => 'dismiss'); $instance = wp_parse_args($instance, $defaults); extract($instance); $type_options = array('alert-warning' => 'Standard', 'alert-danger' => 'Error', 'alert-success' => 'Success', 'alert-info' => 'Info'); $format_options = array('standard' => 'Standard Alert', 'dismiss' => 'Alert with Dismiss'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title (optional)<br/> <?php echo aq_field_input('title', $block_id, $title); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('content'); ?> "> Alert Text (required)<br/> <?php echo aq_field_textarea('content', $block_id, $content); ?> </label> </p> <p class="description half"> <label for="<?php echo $this->get_field_id('type'); ?> "> Alert Type<br/> <?php echo aq_field_select('type', $block_id, $type_options, $type); ?> </label> </p> <p class="description half"> <label for="<?php echo $this->get_field_id('format'); ?> "> Alert Format<br/> <?php echo aq_field_select('format', $block_id, $format_options, $format); ?> </label> </p> <?php }
function form($instance) { $defaults = array('tabs' => array(1 => array('title' => 'My New Tab', 'content' => 'My tab contents')), 'type' => 'tab', 'text' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); $tab_types = array('tab' => 'Tabs', 'toggle' => 'Toggles'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> Block Title (optional) <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('type'); ?> "> Tabs style<br/> <?php echo aq_field_select('type', $block_id, $tab_types, $type); ?> </label> </p> <div class="description cf"> <ul id="aq-sortable-list-<?php echo $block_id; ?> " class="aq-sortable-list" rel="<?php echo $block_id; ?> "> <?php $tabs = is_array($tabs) ? $tabs : $defaults['tabs']; $count = 1; foreach ($tabs as $tab) { $this->tab($tab, $count); $count++; } ?> </ul> <p></p> <a href="#" rel="tab" class="aq-sortable-add-new button">Add New</a> <p></p> </div> <?php }
function form($instance) { $defaults = array('content' => '', 'type' => 'note', 'style' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); $type_options = array('default' => 'Standard', 'info' => 'Info', 'note' => 'Notification', 'warn' => 'Warning', 'tips' => 'Tips'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title (optional)<br/> <?php echo aq_field_input('title', $block_id, $title); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('content'); ?> "> Alert Text (required)<br/> <?php echo aq_field_textarea('content', $block_id, $content); ?> </label> </p> <p class="description half"> <label for="<?php echo $this->get_field_id('type'); ?> "> Alert Type<br/> <?php echo aq_field_select('type', $block_id, $type_options, $type); ?> </label> </p> <p class="description half last"> <label for="<?php echo $this->get_field_id('style'); ?> "> Additional inline css styling (optional)<br/> <?php echo aq_field_input('style', $block_id, $style); ?> </label> </p> <?php }
function form($instance) { $defaults = array('content' => '', 'type' => 'note', 'style' => '', 'wp_autop' => 1); $instance = wp_parse_args($instance, $defaults); extract($instance); $type_options = array('notice' => 'Notice', 'error' => 'Error', 'warning' => 'Warning', 'success' => 'Success'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('content'); ?> "> Alert Text (required)<br/> <?php echo aq_field_textarea('content', $block_id, $content); ?> </label> <label for="<?php echo $this->get_field_id('wp_autop'); ?> "> <?php echo aq_field_checkbox('wp_autop', $block_id, $wp_autop); ?> Do not create the paragraphs automatically. <code>"wpautop"</code> disable. </label> </p> <p class="description half"> <label for="<?php echo $this->get_field_id('type'); ?> "> Alert Type<br/> <?php echo aq_field_select('type', $block_id, $type_options, $type); ?> </label> </p> <p class="description half last"> <label for="<?php echo $this->get_field_id('style'); ?> "> Additional inline css styling (optional)<br/> <?php echo aq_field_input('style', $block_id, $style); ?> </label> </p> <?php }
function form($instance) { $defaults = array('horizontal_line' => 'none', 'line_color' => '#e5e5e5', 'pattern' => '1', 'height' => '5'); $line_options = array('none' => 'None', 'solid' => 'Solid', 'dashed' => 'Dashed', 'dotted' => 'Dotted'); $instance = wp_parse_args($instance, $defaults); extract($instance); $line_color = isset($line_color) ? $line_color : '#353535'; ?> <div class="description note"> <?php _e('Use this block to clear the floats between two or more separate blocks vertically.', 'framework'); ?> </div> <div class="description fourth"> <label for="<?php echo $this->get_field_id('horizontal_line'); ?> "> Pick a horizontal line<br/> <?php echo aq_field_select('horizontal_line', $block_id, $line_options, $horizontal_line); ?> </label> </div> <div class="description fourth"> <label for="<?php echo $this->get_field_id('height'); ?> "> Height<br/> <?php echo aq_field_input('height', $block_id, $height, 'min', 'number'); ?> px </label> </div> <div class="description half last"> <label for="<?php echo $this->get_field_id('line_color'); ?> "> Pick a line color<br/> <?php echo aq_field_color_picker('line_color', $block_id, $line_color, $defaults['line_color']); ?> </label> </div> <?php }
function form($instance) { $defaults = array('limit' => '4', 'title' => 'Team', 'members' => ''); $limit_options = array(); for ($i = 0; $i < 25; $i++) { $limit_options[$i] = $i; } $wp_query = new WP_Query(array('post_type' => array('team'), 'showposts' => 99)); $team_members = array(); while ($wp_query->have_posts()) { $wp_query->the_post(); $team_members[$wp_query->post->ID] = get_the_title(); } $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description half"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title (required)<br/> <?php echo aq_field_input('title', $block_id, $title); ?> </label> </p> <p class="description half last"> <label for="<?php echo $this->get_field_id('limit'); ?> "> Limit (required)<br/> <?php echo aq_field_select('limit', $block_id, $limit_options, $limit); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('filters'); ?> "> Select members (for all leave blank)<br/> <?php echo aq_field_multiselect('members', $block_id, $team_members, $members); ?> </label> </p> <?php }
/** * Form fields, this is where we'll put every option we'll use for this block */ function form_fields($instance) { $defaults = array('title' => 'The Page Section Title', 'type' => 'standard', 'image' => '', 'thin_column' => 0); $instance = wp_parse_args($instance, $defaults); extract($instance); if ($title == '') { $title = 'The Page Section Title'; } $type_options = array('light-wrapper' => 'Light Background', 'dark-wrapper' => 'Dark Background', 'bg-primary' => 'Primary Highlight Colour Background', 'bg-secondary-1' => 'Secondary Highlight Colour Background', 'bg-secondary-2 ' => 'Secondary Highlight 2 Colour Background', 'image' => 'Parallax Background Image (Full Width)', 'image-left' => 'Image Left, Content on Right', 'image-right' => 'Image Right, Content on Left'); ?> <div class="two_thirds"> <p class="description">Label this page section</p> <?php echo aq_field_input('title', $this->block_id, $title, $size = 'full'); ?> <hr /> <p class="description">Menu Link for this section: <code>#<?php echo ebor_sanitize_title($title); ?> </code><br />(Used for one-page version only)</p> <hr /> <p class="description">Use thin column content width for this section?</p> <?php echo aq_field_checkbox('thin_column', $this->block_id, $thin_column); ?> </div> <div class="one_third last"> <p class="description">Background Type</p> <?php echo aq_field_select('type', $this->block_id, $type_options, $type); ?> <hr /> <p class="description">Image for Parallax Background</p> <?php echo aq_field_upload('image', $this->block_id, $image, $media_type = 'image'); ?> </div> <div class="clear"></div> <?php }
function form($instance) { $defaults = array('horizontal_line' => 'none', 'line_color' => '#FFFFFF', 'pattern' => '1', 'height' => ''); $line_options = array('transparent' => 'Trasparent', 'colored' => 'Colored', 'colored_alt' => 'Colored (No Margins)'); $instance = wp_parse_args($instance, $defaults); extract($instance); $line_color = isset($line_color) ? $line_color : '#ededed'; ?> <p class="description note"> <?php _e('Use this block to clear the floats between two or more separate blocks vertically.', 'themnific'); ?> </p> <p class="description fourth"> <label for="<?php echo $this->get_field_id('line_color'); ?> "> Pick a horizontal line<br/> <?php echo aq_field_select('horizontal_line', $block_id, $line_options, $horizontal_line, $block_id); ?> </label> </p> <div class="description fourth"> <label for="<?php echo $this->get_field_id('height'); ?> "> Height (optional)<br/> <?php echo aq_field_input('height', $block_id, $height, 'min', 'number'); ?> px </label> </div> <div class="description half last"> <label for="<?php echo $this->get_field_id('line_color'); ?> "> Pick a line color<br/> <?php echo aq_field_color_picker('line_color', $block_id, $line_color, $defaults['line_color']); ?> </label> </div> <?php }
function form($instance) { $defaults = array('horizontal_line' => 'none', 'line_color' => '#353535', 'pattern' => '1', 'height' => ''); $line_options = array('none' => 'None', 'single' => 'Single', 'double' => 'Double', 'image' => 'Use Image'); $instance = wp_parse_args($instance, $defaults); extract($instance); $line_color = isset($line_color) ? $line_color : '#353535'; ?> <p class="description note"> <?php _e('Use this block to clear the floats between two or more separate blocks vertically.', 'framework'); ?> </p> <p class="description third"> <label for="<?php echo $this->get_field_id('line_color'); ?> "> Pick a horizontal line<br/> <?php echo aq_field_select('horizontal_line', $block_id, $line_options, $horizontal_line, $block_id); ?> </label> </p> <div class="description third"> <label for="<?php echo $this->get_field_id('line_color'); ?> "> Pick a line color<br/> <?php echo aq_field_color_picker('line_color', $block_id, $line_color); ?> </label> </div> <div class="description third last"> <label for="<?php echo $this->get_field_id('height'); ?> "> Height (optional)<br/> <?php echo aq_field_input('height', $block_id, $height, 'min', 'number'); ?> </label> </div> <?php }
function form($instance) { $defaults = array('layout' => '4col', 'entries' => '4', 'excerpt' => '100'); $instance = wp_parse_args($instance, $defaults); extract($instance); $layout_options = array('2col' => '2 Columns', '3col' => '3 Columns', '4col' => '4 Columns'); $entries_options = array('2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '11' => '11', '12' => '12', '13' => '13', '14' => '14', '15' => '15', '16' => '16', '17' => '17', '18' => '18', '19' => '19', '20' => '20'); ?> <div class="description half"> <label for="<?php echo $this->get_field_id('layout'); ?> "> Layout<br/> <?php echo aq_field_select('layout', $block_id, $layout_options, $layout); ?> </label> </div> <div class="description half last"> <label for="<?php echo $this->get_field_id('entries'); ?> "> Number of Entries<br/> <?php echo aq_field_select('entries', $block_id, $entries_options, $entries); ?> </label> </div> <div class="description half"> <label for="<?php echo $this->get_field_id('excerpt'); ?> "> Maximum Character in Excerpt<br/> <?php echo aq_field_input('excerpt', $block_id, $excerpt, $size = 'full'); ?> <em style="padding-left: 5px; font-size: 0.75em;">Leave it blank or enter "0" to disable excerpt.</em> </label> </div> <?php }
function form($instance) { $defaults = array('pppage' => '6', 'filter' => 'all', 'type' => 'blogsidebar'); $instance = wp_parse_args($instance, $defaults); extract($instance); $args = array('orderby' => 'name', 'hide_empty' => 0, 'hierarchical' => 1, 'taxonomy' => 'category'); $filter_options = get_categories($args); $blog_types = array('blogsidebar' => 'Sidebar Blog', 'blognosidebar' => 'No Sidebar Blog', 'blogshowcase' => 'Showcase (full screen grid) blog'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('type'); ?> "> Blog Style <?php echo aq_field_select('type', $block_id, $blog_types, $type); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('pppage'); ?> "> Posts Per Page <?php echo aq_field_input('pppage', $block_id, $pppage, $size = 'full', $type = 'number'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('filter'); ?> "> Show posts from a specific category? (Leave as "All" if using the showcase layout)<br /> <?php echo ebor_portfolio_field_select('filter', $block_id, $filter_options, $filter); ?> </label> </p> <?php }
function form($instance) { $defaults = array('pppage' => '6', 'filter' => 'all', 'layout' => 'feed'); $instance = wp_parse_args($instance, $defaults); extract($instance); $args = array('orderby' => 'name', 'hide_empty' => 0, 'hierarchical' => 1, 'taxonomy' => 'team-category'); $filter_options = get_categories($args); $layout_options = array('feed' => 'Team Feed', 'grid' => 'Team Grid'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('layout'); ?> "> Team Style <?php echo aq_field_select('layout', $block_id, $layout_options, $layout); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('pppage'); ?> "> Posts Per Page <?php echo aq_field_input('pppage', $block_id, $pppage, $size = 'full', $type = 'number'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('filter'); ?> "> Show a specific Team Category? <?php echo ebor_portfolio_field_select('filter', $block_id, $filter_options, $filter); ?> </label> </p> <?php }
function form($instance) { $defaults = array('mega_menu' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); $menus = get_terms('nav_menu'); $menu_options = array(); foreach ($menus as $menu) { $menu_options[$menu->term_id] = $menu->name; } if ($menu_options) { ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title <code>Optional</code> <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('mega_menu'); ?> "> Choose a Menu to Display<br/> <?php echo aq_field_select('mega_menu', $block_id, $menu_options, $mega_menu); ?> </label> </p> <?php } else { ?> <p class="description">Please Add Some Menus</p> <?php } }
function form($instance) { $defaults = array('slider' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); // Get Rev Sliders global $wpdb; $table_name = $wpdb->prefix . 'revslider_sliders'; $sliders = $wpdb->get_results("SELECT id, title, alias FROM {$table_name}"); $amount = count($sliders); $slider_choices = array(); if (is_array($sliders)) { for ($i = 0; $i < $amount; $i++) { $slider_choices[$sliders[$i]->alias] = $sliders[$i]->title; } } if ($sliders) { ?> <p class="description"> <label for="<?php echo $this->get_field_id('slider'); ?> "> Choose Revolution Slider to Display<br/> <?php echo aq_field_select('slider', $block_id, $slider_choices, $slider); ?> </label> </p> <?php } else { ?> <p class="description">Please Add Some Revolution Sliders</p> <?php } }
function form($instance) { $defaults = array('title' => 'Title Portfolio', 'show' => '6', 'orderby' => 'title', 'orderpost' => 'ASC', 'text' => 'All', 'id' => 'portfolio'); $instance = wp_parse_args($instance, $defaults); extract($instance); $orderpost_options = array('ASC' => 'ASC : lowest to highest', 'DESC' => 'DESC : highest to lowest'); $orderby_options = array('title' => 'Title', 'date' => 'Date', 'rand' => 'Random'); ?> <h3 style="text-align: center;">Portfolio</h3> <div class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title<br/><em style="font-size: 0.8em;">(Please enter title portfolio)</em><br/> <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </div> <div class="cf"></div> <div class="description fourth"> <label for="<?php echo $this->get_field_id('text'); ?> "> Text All<br/><em style="font-size: 0.8em;">(Ex: All)</em><br/> <?php echo aq_field_input('text', $block_id, $text, $size = 'full'); ?> </label> </div> <div class="description fourth"> <label for="<?php echo $this->get_field_id('show'); ?> "> Show portfolio<br/><em style="font-size: 0.8em;">(Chosen number portfolio. Ex: 6)</em><br/> <?php echo aq_field_input('show', $block_id, $show, $size = 'full', $type = 'number'); ?> </label> </div> <div class="description fourth"> <label for="<?php echo $this->get_field_id('orderpost'); ?> "> Sort Order<br/><em style="font-size: 0.8em;">Sort from lowest to highest (Default)</em><br/> <?php echo aq_field_select('orderpost', $block_id, $orderpost_options, $orderpost, $size = 'full'); ?> </label> </div> <div class="description fourth last"> <label for="<?php echo $this->get_field_id('orderby'); ?> "> Order by<br/><em style="font-size: 0.8em;">Title (Default)</em><br/> <?php echo aq_field_select('orderby', $block_id, $orderby_options, $orderby, $size = 'full'); ?> </label> </div> <div class="description half"> <label for="<?php echo $this->get_field_id('id'); ?> "> Id Section do you want <code>Ex: portfolio</code> <br /> <?php echo aq_field_input('id', $block_id, $id, $size = 'full'); ?> </label> </div> <div class="cf"></div> <?php }
function form($instance) { $defaults = array('bg_color' => '#fafafa', 'position' => 'top left', 'image' => '', 'repeat' => 'repeat', 'text_color' => 'normal', 'parallax' => '', 'padding_top' => '0', 'padding_bottom' => '0', 'show_row' => 'true', 'video_bg' => 'true', 'menu_id' => '', 'video_link' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); $text_colors = array('white' => 'Color White', 'normal' => 'Color Default'); $bg_repeat = array('repeat' => 'repeat', 'no-repeat' => 'no-repeat'); $row = array('true' => 'Yes', 'false' => 'No'); $menus_arr = array('' => '-- Select --'); if (($locations = get_nav_menu_locations()) && isset($locations['main_nav'])) { $menu = wp_get_nav_menu_object($locations['main_nav']); $menu_items = wp_get_nav_menu_items($menu->term_id); if (!empty($menu_items)) { foreach ($menu_items as $menu_item) { $menus_arr[sanitize_title($menu_item->title)] = $menu_item->title; } } } ?> <p class="description"> <label for="<?php echo $this->get_field_id('padding_top'); ?> "> <?php _e('Padding top', 'oneengine'); ?> <?php echo aq_field_input('padding_top', $block_id, $padding_top, $size = 'min', $type = 'number'); ?> px </label> - <label for="<?php echo $this->get_field_id('padding_bottom'); ?> "> <?php _e('Padding Bottom', 'oneengine'); ?> <?php echo aq_field_input('padding_bottom', $block_id, $padding_bottom, $size = 'min', $type = 'number'); ?> px </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('text_color'); ?> "> <?php _e('Text color', 'oneengine'); ?> <?php echo aq_field_select('text_color', $block_id, $text_colors, $text_color); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('image'); ?> "> <?php _e('Background Image', 'oneengine'); ?> <?php echo aq_field_upload('image', $block_id, $image, $media_type = 'image'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('bg_color'); ?> "> <?php _e('Background Color (Ex : #fafafa;)', 'oneengine'); ?> <?php echo aq_field_color_picker('bg_color', $block_id, $bg_color); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('position'); ?> "> <?php _e('Background position', 'oneengine'); ?> <?php echo aq_field_input('position', $block_id, $position, $size = 'small'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('repeat'); ?> "> <?php _e('Background repeat ?', 'oneengine'); ?> <?php echo aq_field_select('repeat', $block_id, $bg_repeat, $repeat); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('parallax'); ?> "> <?php _e('Background parallax ?', 'oneengine'); ?> <?php echo aq_field_checkbox('parallax', $block_id, $parallax); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('show_row'); ?> "> <?php _e('Show/hide section "row" (if you add block item fullwidth here, please choose "No" for 2 block "Container (open)" and "Container (close)")', 'oneengine'); ?> <?php echo aq_field_select('show_row', $block_id, $row, $show_row); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('menu_id'); ?> "> <?php _e('Select the block’s ID to link with the Menu header.', 'oneengine'); ?> <?php echo aq_field_select('menu_id', $block_id, $menus_arr, $menu_id); ?> </label> </p> <?php }
function form($instance) { $defaults = array('text' => '', 'font_size' => '18', 'margin_top' => '10', 'margin_bottom' => '10', 'duration' => '900', 'delay' => '0', 'animation' => '', 'align' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); global $include_animation; $text_align = array('center' => 'Center', 'left' => 'Left', 'right' => 'Right'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('margin_top'); ?> "> <?php _e('Margin top', 'oneengine'); ?> <?php echo aq_field_input('margin_top', $block_id, $margin_top, 'min', 'number'); ?> px </label> - <label for="<?php echo $this->get_field_id('margin_bottom'); ?> "> <?php _e('Margin bottom', 'oneengine'); ?> <?php echo aq_field_input('margin_bottom', $block_id, $margin_bottom, 'min', 'number'); ?> px </label> - <label for="<?php echo $this->get_field_id('font_size'); ?> "> <?php _e('Font-size (Ex : 18px)', 'oneengine'); ?> <?php echo aq_field_input('font_size', $block_id, $font_size, 'min', 'number'); ?> px </label> - </p> <p class="description"> <label for="<?php echo $this->get_field_id('align'); ?> "> <?php _e('Text align', 'oneengine'); ?> <br/> <?php echo aq_field_select('align', $block_id, $text_align, $align); ?> </label> </p> <div class="sortable-body"> <p class="description"> <label for="<?php echo $this->get_field_id('animation'); ?> "> <?php _e('Animation style', 'oneengine'); ?> <br/> <?php echo aq_field_select('animation', $block_id, $include_animation, $animation); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('duration'); ?> "> <?php _e('Duration for Animation (Ex : 900ms)', 'oneengine'); ?> <?php echo aq_field_input('duration', $block_id, $duration, 'min', 'number'); ?> ms </label> - <label for="<?php echo $this->get_field_id('delay'); ?> "> <?php _e('Time Delay (Ex : 900ms)', 'oneengine'); ?> <?php echo aq_field_input('delay', $block_id, $delay, 'min', 'number'); ?> ms </label> </p> </div> <p class="description"> <label for="<?php echo $this->get_field_id('text'); ?> "> <?php _e('Content', 'oneengine'); ?> <?php echo aq_field_textarea('text', $block_id, $text, $size = 'full'); ?> </label> </p> <?php }
function form($instance) { $defaults = array('title' => '', 'sub_title' => '', 'duration' => '900', 'delay' => '0', 'animation' => '', 'margin_top' => '10', 'margin_bottom' => '10', 'bg_color' => '#fafafa'); $instance = wp_parse_args($instance, $defaults); extract($instance); global $include_animation; ?> <div class="sortable-body"> <p class="description"> <label for="<?php echo $this->get_field_id('margin_top'); ?> "> <?php _e('Margin top', 'oneengine'); ?> <?php echo aq_field_input('margin_top', $block_id, $margin_top, 'min', 'number'); ?> px </label> - <label for="<?php echo $this->get_field_id('margin_bottom'); ?> "> <?php _e('Margin bottom', 'oneengine'); ?> <?php echo aq_field_input('margin_bottom', $block_id, $margin_bottom, 'min', 'number'); ?> px </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> <?php _e('Title', 'oneengine'); ?> <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('sub_title'); ?> "> <?php _e('SubTitle', 'oneengine'); ?> <?php echo aq_field_textarea('sub_title', $block_id, $sub_title, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('bg_color'); ?> "> <?php _e('Color of line(Ex : #fafafa;)', 'oneengine'); ?> <?php echo aq_field_color_picker('bg_color', $block_id, $bg_color); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('animation'); ?> "> <?php _e('Animation style', 'oneengine'); ?> <br/> <?php echo aq_field_select('animation', $block_id, $include_animation, $animation); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('duration'); ?> "> <?php _e('Animation Duration(Ex : 900ms)', 'oneengine'); ?> <?php echo aq_field_input('duration', $block_id, $duration, 'min', 'number'); ?> ms </label> - <label for="<?php echo $this->get_field_id('delay'); ?> "> <?php _e('Time Delay (Ex : 900ms)', 'oneengine'); ?> <?php echo aq_field_input('delay', $block_id, $delay, 'min', 'number'); ?> ms </label> </p> </div> <?php }
function form($instance) { $defaults = array('type' => 'grid', 'filters' => 0, 'isotope_filters' => 1, 'disable_ajax' => 0, 'disable_ajax_isotope' => 1, 'lightbox' => 0, 'filter' => 'all'); $instance = wp_parse_args($instance, $defaults); extract($instance); $args = array('orderby' => 'name', 'hide_empty' => 0, 'hierarchical' => 1, 'taxonomy' => 'portfolio-category'); $filter_options = get_categories($args); $type_options = array('grid' => 'Full Width Grid', 'isotope' => 'Portfolio w/Filters'); ?> <p class="description note"> <?php _e('Use this block to add a portfolio to your page. Note: The "Full-Width Grid" option is best used in pages which support full width content.', 'marble'); ?> </p> <p class="description half"> <label for="<?php echo $this->get_field_id('type'); ?> "> Portfolio Display Type<br/> <?php echo aq_field_select('type', $block_id, $type_options, $type); ?> </label> </p> <div class="cf"></div> <p class="description"> <label for="<?php echo $this->get_field_id('filters'); ?> "> <?php _e('Show Filters on Full Width Grid?', 'marble'); ?> <br/> <?php echo aq_field_checkbox('filters', $block_id, $filters); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('isotope_filters'); ?> "> <?php _e('Show Filters on Portfolio w/Filters?', 'marble'); ?> <br/> <?php echo aq_field_checkbox('isotope_filters', $block_id, $isotope_filters); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('disable_ajax'); ?> "> <?php _e('Disable AJAX Post Loading in Full With Grid (Showcase)?', 'marble'); ?> <br/> <?php echo aq_field_checkbox('disable_ajax', $block_id, $disable_ajax); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('disable_ajax_isotope'); ?> "> <?php _e('Disable AJAX Post Loading in Portfolio W/Filters?', 'marble'); ?> <br/> <?php echo aq_field_checkbox('disable_ajax_isotope', $block_id, $disable_ajax_isotope); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('lightbox'); ?> "> <?php _e('Use a lightbox for all posts? This option will load a larger, uncropped version of "The Featured Image" into a lightbox when clicking on the posts instead of loading the post itself. This option will also disable the "Load More" button and force load all portfolio posts.', 'marble'); ?> <br/> <?php echo aq_field_checkbox('lightbox', $block_id, $lightbox); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('filter'); ?> "> <?php _e('Show a specific portfolio category?', 'marble'); ?> <br/> <?php echo ebor_portfolio_field_select('filter', $block_id, $filter_options, $filter); ?> </label> </p> <?php }
function form($instance) { $defaults = array('services' => array(1 => array('title' => __('Add New Service', 'oneengine'), 'icon_font' => '', 'content' => '', 'duration' => '900', 'delay' => '0', 'animation' => 'None')), 'column' => 'three', 'margin_top' => 10, 'margin_bottom' => 10); $instance = wp_parse_args($instance, $defaults); extract($instance); $service_columns = array('one' => 'One Columns', 'two' => 'Two Columns', 'three' => 'Three Columns', 'four' => 'Four Columns'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('column'); ?> "> <?php _e('Column size', 'oneengine'); ?> <?php echo aq_field_select('column', $block_id, $service_columns, $column); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('margin_top'); ?> "> <?php _e('Margin top', 'oneengine'); ?> <?php echo aq_field_input('margin_top', $block_id, $margin_top, 'min', 'number'); ?> px </label> - <label for="<?php echo $this->get_field_id('margin_bottom'); ?> "> <?php _e('Margin bottom', 'oneengine'); ?> <?php echo aq_field_input('margin_bottom', $block_id, $margin_bottom, 'min', 'number'); ?> px </label> </p> <div class="description cf"> <ul id="aq-sortable-list-<?php echo $block_id; ?> " class="aq-sortable-list" rel="<?php echo $block_id; ?> "> <?php $services = is_array($services) ? $services : $defaults['services']; $count = 1; foreach ($services as $service) { $this->service($service, $count); $count++; } ?> </ul> <p></p> <a href="#" rel="service" class="aq-sortable-add-new button">Add New</a> <p></p> </div> <?php }
function form($instance) { $defaults = array('title' => '', 'heading' => 'h3', 'address' => '', 'width' => '560', 'height' => '280', 'id' => '', 'class' => '', 'style' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); $heading_style = array('h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6'); ?> <div class="description two-third"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title (optional)<br/> <?php echo aq_field_input('title', $block_id, $title); ?> </label> </div> <div class="description third last"> <label for="<?php echo $this->get_field_id('heading'); ?> "> Heading Type<br/> <?php echo aq_field_select('heading', $block_id, $heading_style, $heading); ?> </label> </div> <div class="description"> <label for="<?php echo $this->get_field_id('address'); ?> "> Address<br/> <?php echo aq_field_textarea('address', $block_id, $address, $size = 'full'); ?> </label> </div> <div class="description half"> <label for="<?php echo $this->get_field_id('width'); ?> "> Map Width<br/> <?php echo aq_field_input('width', $block_id, $width); ?> </label> </div> <div class="description half last"> <label for="<?php echo $this->get_field_id('height'); ?> "> Map Height<br/> <?php echo aq_field_input('height', $block_id, $height); ?> </label> </div> <div class="description half"> <label for="<?php echo $this->get_field_id('id'); ?> "> id (optional)<br/> <?php echo aq_field_input('id', $block_id, $id, $size = 'full'); ?> </label> </div> <div class="description half last"> <label for="<?php echo $this->get_field_id('class'); ?> "> class (optional)<br/> <?php echo aq_field_input('class', $block_id, $class, $size = 'full'); ?> </label> </div> <div class="cf"></div> <div class="description"> <label for="<?php echo $this->get_field_id('style'); ?> "> Additional inline css styling (optional)<br/> <?php echo aq_field_input('style', $block_id, $style); ?> </label> </div> <?php }
function form($instance) { $defaults = $this->defaults; // check for slides groups taxonomy terms $categories_tax = get_categories('hide_empty=1&hierarchical=0&parent=0'); $categories_arr = array('none' => __('None', 'lsvr-toolkit')); if (count($categories_tax) > 0) { foreach ($categories_tax as $value) { $categories_arr[$value->slug] = $value->name; } } global $lsvr_inview_animations; $inview_anim_arr = $lsvr_inview_animations; $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <div class="lsvr-form-container"> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('category'); ?> "><?php _e('Category', 'lsvr-toolkit'); ?> </label> <p class="lsvr-form-description"> <?php _e('Category to load posts from. Choose <strong>None</strong> to load posts regardless of category.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <?php echo aq_field_select('category', $block_id, $categories_arr, $category); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('number_of_items'); ?> "><?php _e('Number of Items', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_select('number_of_items', $block_id, array('1' => 1, '2' => 2, '3' => 3, '4' => 4), $number_of_items); ?> </div> </div> <div class="lsvr-form-row"> <div class="lsvr-form-field"> <?php echo aq_field_checkbox('show_post_date', $block_id, $show_post_date); ?> <label class="lsvr-checkbox-label" for="<?php echo $this->get_field_id('show_post_date'); ?> "><?php _e('Show Post Date', 'lsvr-toolkit'); ?> </label> </div> </div> <div class="lsvr-form-row"> <div class="lsvr-form-field"> <?php echo aq_field_checkbox('show_post_media', $block_id, $show_post_media); ?> <label class="lsvr-checkbox-label" for="<?php echo $this->get_field_id('show_post_media'); ?> "><?php _e('Show Post Media', 'lsvr-toolkit'); ?> </label> </div> </div> <div class="lsvr-form-row"> <div class="lsvr-form-field"> <?php echo aq_field_checkbox('show_post_excerpt', $block_id, $show_post_excerpt); ?> <label class="lsvr-checkbox-label" for="<?php echo $this->get_field_id('show_post_excerpt'); ?> "><?php _e('Show Post Excerpt', 'lsvr-toolkit'); ?> </label> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('excerpt_length'); ?> "><?php _e('Excerpt Length', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_input('excerpt_length', $block_id, $excerpt_length); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('block_offset'); ?> "><?php _e('Block Offset', 'lsvr-toolkit'); ?> </label> <p class="lsvr-form-description"> <?php _e('Left offset of this block.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <?php echo aq_field_select('block_offset', $block_id, array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11), $block_offset); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('inview_anim'); ?> "><?php _e('InView Animation', 'lsvr-toolkit'); ?> </label> <p class="lsvr-form-description"> <?php _e('Animation fired when element appears in the user\'s viewport.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <?php echo aq_field_select('inview_anim', $block_id, $inview_anim_arr, $inview_anim); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('custom_class'); ?> "><?php _e('Custom Class', 'lsvr-toolkit'); ?> </label> <p class="lsvr-form-description"> <?php _e('It can be used for applying custom CSS.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <?php echo aq_field_input('custom_class', $block_id, $custom_class); ?> </div> </div> </div> <?php }
function form($instance) { $defaults = array('title' => '', 'slides' => array(1 => array('title' => '1st Slide', 'content' => '', 'button' => 'yes', 'btntext' => 'Learn More', 'btncolor' => 'yellow', 'linkopen' => 'same', 'link' => '', 'image' => '')), 'speed' => '4000', 'pause' => 'yes', 'class' => '', 'style' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); $pause_options = array('yes' => 'Yes', 'no' => 'No'); ?> <div class="description cf"> <ul id="aq-sortable-list-<?php echo $block_id; ?> " class="aq-sortable-list" rel="<?php echo $block_id; ?> "> <?php $slides = is_array($slides) ? $slides : $defaults['slides']; $count = 1; foreach ($slides as $slide) { $this->slide($slide, $count); $count++; } ?> </ul> <p></p> <a href="#" rel="slide" class="aq-sortable-add-new button">Add New</a> <p></p> </div> <div class="description half"> <label for="<?php echo $this->get_field_id('speed'); ?> "> interval (in millisecond)<br/> <?php echo aq_field_input('speed', $block_id, $speed, $size = 'full'); ?> </label> </div> <div class="description half last"> <label for="<?php echo $this->get_field_id('pause'); ?> "> Pause on hover?<br/> <?php echo aq_field_select('pause', $block_id, $pause_options, $pause); ?> </label> </div> <div class="cf"></div> <div class="description"> <label for="<?php echo $this->get_field_id('class'); ?> "> class (optional)<br/> <?php echo aq_field_input('class', $block_id, $class, $size = 'full'); ?> </label> </div> <div class="description"> <label for="<?php echo $this->get_field_id('style'); ?> "> Additional inline css styling (optional)<br/> <?php echo aq_field_input('style', $block_id, $style); ?> </label> </div> <?php }
function form($instance) { $defaults = $this->defaults; global $lsvr_inview_animations; $inview_anim_arr = $lsvr_inview_animations; $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <div class="lsvr-form-container"> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_input('title', $block_id, $title); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('price'); ?> "><?php _e('Price', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_input('price', $block_id, $price); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('price_description'); ?> "><?php _e('Price Description', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_input('price_description', $block_id, $price_description); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('html_content'); ?> "><?php _e('Content', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo lsvr_field_editor('html_content', $block_id, $html_content); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('button_label'); ?> "><?php _e('Button Label', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_input('button_label', $block_id, $button_label); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('button_link'); ?> "><?php _e('Button Link', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_input('button_link', $block_id, $button_link); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('block_offset'); ?> "><?php _e('Block Offset', 'lsvr-toolkit'); ?> </label> <p class="lsvr-form-description"> <?php _e('Left offset of this block.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <?php echo aq_field_select('block_offset', $block_id, array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11), $block_offset); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('inview_anim'); ?> "><?php _e('InView Animation', 'lsvr-toolkit'); ?> </label> <p class="lsvr-form-description"> <?php _e('Animation fired when element appears in the user\'s viewport.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <?php echo aq_field_select('inview_anim', $block_id, $inview_anim_arr, $inview_anim); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('custom_class'); ?> "><?php _e('Custom Class', 'lsvr-toolkit'); ?> </label> <p class="lsvr-form-description"> <?php _e('It can be used for applying custom CSS.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <?php echo aq_field_input('custom_class', $block_id, $custom_class); ?> </div> </div> </div> <?php }
function form($instance) { $defaults = array('title' => '', 'heading' => 'h3', 'text' => '', 'align' => 'center', 'bgcolor' => '#fff', 'textcolor' => '#676767', 'media' => '', 'imagesize' => 'full', 'imagetype' => 'none', 'enablebtn' => '1', 'btntext' => 'Learn More', 'btnlink' => '', 'btncolor' => 'black', 'btnsize' => 'default', 'btnlinkopen' => 'same', 'id' => '', 'class' => '', 'style' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); $heading_style = array('h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6'); $align_options = array('left' => 'Left', 'center' => 'Center', 'right' => 'Right'); $imagetype_options = array('none' => 'None', 'rounded' => 'Rounded', 'circle' => 'Circle', 'polaroid' => 'Polaroid'); $imagesize_options = array('thumbnail' => 'Thumbnail', 'medium' => 'Medium', 'large' => 'Large', 'full' => 'Full'); $btncolor_options = array('grey' => 'Grey', 'blue' => 'Blue', 'lightblue' => 'Light Blue', 'green' => 'Green', 'red' => 'Red', 'yellow' => 'Yellow', 'black' => 'Black'); $btnsize_options = array('default' => 'Default', 'mini' => 'Mini', 'small' => 'Small', 'large' => 'Large', 'block' => 'Block'); $btnlinkopen_options = array('same' => 'Same Window', 'new' => 'New Window'); ?> <div class="description two-third"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </div> <div class="description third last"> <label for="<?php echo $this->get_field_id('heading'); ?> "> Heading Style<br/> <?php echo aq_field_select('heading', $block_id, $heading_style, $heading); ?> </label> </div> <div class="cf" style="height: 20px"></div> <div class="description"> <label for="<?php echo $this->get_field_id('media'); ?> "> Upload an Image <?php echo aq_field_upload('media', $block_id, $media, 'image'); ?> </label> </div> <div class="description half"> <label for="<?php echo $this->get_field_id('imagesize'); ?> "> Image Size<br/> <?php echo aq_field_select('imagesize', $block_id, $imagesize_options, $imagesize); ?> </label> </div> <div class="description half last"> <label for="<?php echo $this->get_field_id('imagetype'); ?> "> Image Type<br/> <?php echo aq_field_select('imagetype', $block_id, $imagetype_options, $imagetype); ?> </label> </div> <div class="cf" style="height: 20px"></div> <div class="description"> <label for="<?php echo $this->get_field_id('text'); ?> "> Content <?php echo aq_field_textarea('text', $block_id, $text, $size = 'full'); ?> </label> </div> <div class="cf" style="height: 20px"></div> <div class="description"> <label for="<?php echo $this->get_field_id('enablebtn'); ?> "> Enable Button <?php echo aq_field_checkbox('enablebtn', $block_id, $enablebtn); ?> </label> </div> <div class="description half"> <label for="<?php echo $this->get_field_id('btntext'); ?> "> Button Text <?php echo aq_field_input('btntext', $block_id, $btntext, $size = 'full'); ?> </label> </div> <div class="description fourth"> <label for="<?php echo $this->get_field_id('btncolor'); ?> "> Button Color<br/> <?php echo aq_field_select('btncolor', $block_id, $btncolor_options, $btncolor); ?> </label> </div> <div class="description fourth last"> <label for="<?php echo $this->get_field_id('btnsize'); ?> "> Button Size<br/> <?php echo aq_field_select('btnsize', $block_id, $btnsize_options, $btnsize); ?> </label> </div> <div class="description two-third"> <label for="<?php echo $this->get_field_id('btnlink'); ?> "> Button Link <?php echo aq_field_input('btnlink', $block_id, $btnlink, $size = 'full'); ?> </label> </div> <div class="description third last"> <label for="<?php echo $this->get_field_id('btnlinkopen'); ?> "> Link Open In<br/> <?php echo aq_field_select('btnlinkopen', $block_id, $btnlinkopen_options, $btnlinkopen); ?> </label> </div> <div class="cf" style="height: 20px"></div> <div class="description third"> <label for="<?php echo $this->get_field_id('align'); ?> "> Align<br/> <?php echo aq_field_select('align', $block_id, $align_options, $align); ?> </label> </div> <div class="description third"> <label for="<?php echo $this->get_field_id('bgcolor'); ?> "> Pick a background color<br/> <?php echo aq_field_color_picker('bgcolor', $block_id, $bgcolor); ?> </label> </div> <div class="description third last"> <label for="<?php echo $this->get_field_id('textcolor'); ?> "> Pick a text color<br/> <?php echo aq_field_color_picker('textcolor', $block_id, $textcolor); ?> </label> </div> <div class="cf" style="height: 20px"></div> <div class="description half"> <label for="<?php echo $this->get_field_id('id'); ?> "> id (optional)<br/> <?php echo aq_field_input('id', $block_id, $id, $size = 'full'); ?> </label> </div> <div class="description half last"> <label for="<?php echo $this->get_field_id('class'); ?> "> class (optional)<br/> <?php echo aq_field_input('class', $block_id, $class, $size = 'full'); ?> </label> </div> <div class="cf"></div> <div class="description"> <label for="<?php echo $this->get_field_id('style'); ?> "> Additional inline css styling (optional)<br/> <?php echo aq_field_input('style', $block_id, $style); ?> </label> </div> <?php }
function form($instance) { $defaults = array('list_items' => array(1 => array('title' => 'Add Name', 'src_img' => '', 'duration' => '900', 'delay' => '0', 'animation' => 'None')), 'column' => 'six', 'margin_top' => 10, 'margin_bottom' => 10); $client_columns = array('six' => 'Six Columns', 'four' => 'Four Columns', 'three' => 'Three Columns'); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('margin_top'); ?> "> Margin top <?php echo aq_field_input('margin_top', $block_id, $margin_top, 'min', 'number'); ?> px </label> - <label for="<?php echo $this->get_field_id('margin_bottom'); ?> "> Margin bottom <?php echo aq_field_input('margin_bottom', $block_id, $margin_bottom, 'min', 'number'); ?> px </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('column'); ?> "> <?php _e('Column size', 'oneengine'); ?> <?php echo aq_field_select('column', $block_id, $client_columns, $column); ?> </label> </p> <div class="description cf"> <ul id="aq-sortable-list-<?php echo $block_id; ?> " class="aq-sortable-list" rel="<?php echo $block_id; ?> "> <?php $list_items = is_array($list_items) ? $list_items : $defaults['list_items']; $count = 1; foreach ($list_items as $list_item) { $this->list_item($list_item, $count); $count++; } ?> </ul> <p></p> <a href="#" rel="list_item" class="aq-sortable-add-new button">Add New</a> <p></p> </div> <?php }
function form($instance) { $defaults = array('align' => 1, 'facebook_check' => 1, 'facebook_url' => '#', 'twitter_check' => 1, 'twitter_url' => '#', 'dribbble_check' => 1, 'dribbble_url' => '#', 'google_check' => 1, 'google_url' => '#', 'pinterest_check' => 1, 'pinterest_url' => '#', 'flickr_check' => 1, 'flickr_url' => '#', 'linkedin_check' => 1, 'linkedin_url' => '#', 'skype_check' => 1, 'skype_url' => '#'); $instance = wp_parse_args($instance, $defaults); extract($instance); $text_align = array('left' => 'Align left', 'right' => 'Align right', 'center' => 'Align center'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('align'); ?> "> Text align<br/> <?php echo aq_field_select('align', $block_id, $text_align, $align); ?> </label> </p> <div class="sortable-body"> <p class="description"> <label for="<?php echo $this->get_field_id('facebook_check'); ?> "> Display facebook icon ? <?php echo aq_field_checkbox('facebook_check', $block_id, $facebook_check); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('facebook_url'); ?> "> Your facebook URL <?php echo aq_field_input('facebook_url', $block_id, $facebook_url, $size = 'full'); ?> </label> </p> </div> <div class="sortable-body"> <p class="description"> <label for="<?php echo $this->get_field_id('twitter_check'); ?> "> Display twitter icon ? <?php echo aq_field_checkbox('twitter_check', $block_id, $twitter_check); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('twitter_url'); ?> "> Your twitter URL <?php echo aq_field_input('twitter_url', $block_id, $twitter_url, $size = 'full'); ?> </label> </p> </div> <div class="sortable-body"> <p class="description"> <label for="<?php echo $this->get_field_id('google_check'); ?> "> Display google+ icon ? <?php echo aq_field_checkbox('google_check', $block_id, $google_check); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('google_url'); ?> "> Your google URL <?php echo aq_field_input('google_url', $block_id, $google_url, $size = 'full'); ?> </label> </p> </div> <div class="sortable-body"> <p class="description"> <label for="<?php echo $this->get_field_id('pinterest_check'); ?> "> Display pinterest icon ? <?php echo aq_field_checkbox('pinterest_check', $block_id, $pinterest_check); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('pinterest_url'); ?> "> Your pinterest URL <?php echo aq_field_input('pinterest_url', $block_id, $pinterest_url, $size = 'full'); ?> </label> </p> </div> <div class="sortable-body"> <p class="description"> <label for="<?php echo $this->get_field_id('dribbble_check'); ?> "> Display dribbble icon ? <?php echo aq_field_checkbox('dribbble_check', $block_id, $dribbble_check); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('dribbble_url'); ?> "> Your dribbble URL <?php echo aq_field_input('dribbble_url', $block_id, $dribbble_url, $size = 'full'); ?> </label> </p> </div> <div class="sortable-body"> <p class="description"> <label for="<?php echo $this->get_field_id('flickr_check'); ?> "> Display flickr icon ? <?php echo aq_field_checkbox('flickr_check', $block_id, $flickr_check); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('flickr_url'); ?> "> Your flickr URL <?php echo aq_field_input('flickr_url', $block_id, $flickr_url, $size = 'full'); ?> </label> </p> </div> <div class="sortable-body"> <p class="description"> <label for="<?php echo $this->get_field_id('linkedin_check'); ?> "> Display linkedin icon ? <?php echo aq_field_checkbox('linkedin_check', $block_id, $linkedin_check); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('linkedin_url'); ?> "> Your linkedin URL <?php echo aq_field_input('linkedin_url', $block_id, $linkedin_url, $size = 'full'); ?> </label> </p> </div> <?php }