function form($instance) { $defaults = array('title' => '70', 'line' => 0); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> Spacer Height <?php echo aq_field_input('title', $block_id, $title, $size = 'full', $type = 'number'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('line'); ?> "> Show Horizontal Line?<br/> <?php echo aq_field_checkbox('line', $block_id, $line); ?> </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('text' => '', 'closetag' => '', 'taghtml' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance, EXTR_OVERWRITE); $block_id = 'aq_block_' . $number; $block_saving_id = 'aq_blocks[aq_block_' . $number . ']'; ?> <!--<p class="description third"> <label for="<?php echo $this->get_field_id('taghtml'); ?> "> add tag: <code> div, aside, article </code> <?php echo aq_field_input('taghtml', $block_id, $taghtml, $size = 'full'); ?> </label> </p> <p class="description third"> <label for="<?php echo $this->get_field_id('closetag'); ?> "> default tag is outside the container<br> <?php echo aq_field_checkbox('closetag', $block_id, $closetag); ?> <code>* enable for inside tag container</code> </label> </p>--> <?php }
function form($instance) { $defaults = array('pppage' => '6', 'filter' => 'all', 'post_content' => 0, 'links' => 0); $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); ?> <p class="description"> <label for="<?php echo $this->get_field_id('pppage'); ?> "> Load how many posts? <?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> <p class="description"> <label for="<?php echo $this->get_field_id('post_content'); ?> "> Use post content rather than excerpt? <?php echo aq_field_checkbox('post_content', $block_id, $post_content); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('links'); ?> "> Disable links to the single post? <?php echo aq_field_checkbox('links', $block_id, $links); ?> </label> </p> <?php }
function form($instance) { $defaults = array('text' => '', 'wpautop' => 0, 'code_display' => 0); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> 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('text'); ?> "> Content <?php echo aq_field_textarea('text', $block_id, $text, $size = 'full', true); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('wpautop'); ?> "> Disable Auto Paragraphs? <code>wpautop</code><br/> <?php echo aq_field_checkbox('wpautop', $block_id, $wpautop); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('code_display'); ?> "> Display as preformatted code?<br/> <?php echo aq_field_checkbox('code_display', $block_id, $code_display); ?> </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 }
/** * 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('text' => '', 'line' => 1); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('text'); ?> "> Content <?php echo aq_field_textarea('text', $block_id, $text, $size = 'full', true); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('line'); ?> "> Use "thin" content width?<br/> <?php echo aq_field_checkbox('line', $block_id, $line); ?> </label> </p> <?php }
function form($instance) { $defaults = array('text' => '', 'wpautop' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> 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('text'); ?> "> Content <?php echo aq_field_textarea('text', $block_id, $text, $size = 'full', true); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('wpautop'); ?> "> Remove bottom margin? <?php echo aq_field_checkbox('wpautop', $block_id, $wpautop); ?> </label> </p> <?php }
function form($instance) { $defaults = array('text' => '', 'filter' => 0); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> 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('text'); ?> "> Content <?php echo aq_field_textarea('text', $block_id, $text, $size = 'full'); ?> </label> <label for="<?php echo $this->get_field_id('filter'); ?> "> <?php echo aq_field_checkbox('filter', $block_id, $filter); ?> <?php _e('Automatically add paragraphs', 'aqpb-l10n'); ?> </label> </p> <?php }
function form($instance) { $defaults = array('text' => '', 'wp_autop' => 0); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> 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('text'); ?> "> Content <?php echo aq_field_textarea('text', $block_id, $text, $size = 'full'); ?> </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> <?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 }
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('title' => '', 'icon' => '', 'content' => '', 'link' => '', 'wp_autop' => 1); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> Headline <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="tab-desc description"> <label for="<?php echo $this->get_field_id('boxes'); ?> -icon"> Box Icon <br/> <?php global $fontawesome; ?> <?php echo aq_field_select('icon', $block_id, $fontawesome, $icon); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('text'); ?> "> Content <?php echo aq_field_textarea('text', $block_id, $text, $size = 'full'); ?> </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"> <label for="<?php echo $this->get_field_id('link'); ?> "> URL <?php echo aq_field_input('link', $block_id, $link, $size = 'full'); ?> </label> </p> <?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('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 = $this->defaults; // check for slides groups taxonomy terms $slides_group_tax = get_terms('lsvrslider', 'hide_empty=0&hierarchical=0&parent=0'); $slides_groups_arr = array('none' => __('None', 'lsvr-toolkit')); if (count($slides_group_tax) > 0) { foreach ($slides_group_tax as $value) { $slides_groups_arr[$value->slug] = $value->name; } } $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('slider'); ?> "><?php _e('Slider', 'lsvr-toolkit'); ?> </label> <p class="lsvr-form-description"> <?php _e('Which slider will be used. You can manage sliders under <strong>Slider / Sliders</strong>. Choose <strong>None</strong> to load all slides.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <?php echo aq_field_select('slider', $block_id, $slides_groups_arr, $slider); ?> </div> </div> <div class="lsvr-form-row"> <div class="lsvr-form-field"> <?php echo aq_field_checkbox('fullsize', $block_id, $fullsize); ?> <label class="lsvr-checkbox-label" for="<?php echo $this->get_field_id('fullsize'); ?> "><?php _e('Fullsize', 'lsvr-toolkit'); ?> </label> </div> <p class="lsvr-form-description"> <?php _e('Enable if you are using this slider in Fullsize template.', 'lsvr-toolkit'); ?> <br> </p> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('interval'); ?> "><?php _e('Interval', 'lsvr-toolkit'); ?> </label> <p class="lsvr-form-description"> <?php _e('Duration between transitions in seconds. Add 0 to disable automatic slideshow.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <?php echo aq_field_select('interval', $block_id, array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20), $interval); ?> </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('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' => 'Recent Posts', 'moretitle' => '', 'urlmore' => '', 'post_type' => 'all', 'categories' => 'all', 'posts' => 4, 'right_lay' => 0, 'no_margin' => 0, 'media_type_sel' => 'Featured Image'); $media_type = array('image' => 'Featured Image', 'video' => 'Video'); $instance = wp_parse_args((array) $instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title (optional) <input id="<?php echo $this->get_field_id('title'); ?> " class="input-full" type="text" value="<?php echo esc_attr($title); ?> " name="<?php echo $this->get_field_name('title'); ?> "> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('categories'); ?> ">Filter by Category:</label> <select id="<?php echo $this->get_field_id('categories'); ?> " name="<?php echo $this->get_field_name('categories'); ?> " class="widefat categories" style="width:100%;"> <option value='all' <?php if ('all' == $instance['categories']) { echo 'selected="selected"'; } ?> >all categories</option> <?php $categories = get_categories('hide_empty=0&depth=1&type=post'); ?> <?php foreach ($categories as $category) { ?> <option value='<?php echo $category->term_id; ?> ' <?php if ($category->term_id == $instance['categories']) { echo 'selected="selected"'; } ?> ><?php echo $category->cat_name; ?> </option> <?php } ?> </select> </p> <p class="description"> <label for="<?php echo $this->get_field_id('posts'); ?> ">Number of posts:</label> <input class="widefat" style="width: 30px;" id="<?php echo $this->get_field_id('posts'); ?> " name="<?php echo $this->get_field_name('posts'); ?> " value="<?php echo esc_attr($instance['posts']); ?> " /> </p> <p class="description"> <label for="<?php echo $this->get_field_id('media_type_sel'); ?> "> Pick a media type to show (for big post)<br/> <?php echo aq_field_select('media_type_sel', $block_id, $media_type, $media_type_sel, $block_id); ?> </label> </p> <p class="description half"> <span style="clear:both; margin-bottom:15px;"></span> <label for="<?php echo $this->get_field_id('right_lay'); ?> "> <?php echo aq_field_checkbox('right_lay', $block_id, $right_lay); ?> Switch layout to right. </label> </p> <?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('subtitle'); ?> "><?php _e('Subtitle', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_input('subtitle', $block_id, $subtitle); ?> </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('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"> <p class="lsvr-form-description"> <?php _e('Enable if this section is used in fullsize template.', 'lsvr-toolkit'); ?> <br> </p> <div class="lsvr-form-field"> <?php echo aq_field_checkbox('fullsize', $block_id, $fullsize); ?> <label class="lsvr-checkbox-label" for="<?php echo $this->get_field_id('fullsize'); ?> "><?php _e('Fullsize', 'lsvr-toolkit'); ?> </label> </div> </div> <div class="lsvr-form-row"> <div class="lsvr-form-field"> <?php echo aq_field_checkbox('wrap_in_container', $block_id, $wrap_in_container); ?> <label class="lsvr-checkbox-label" for="<?php echo $this->get_field_id('wrap_in_container'); ?> "><?php _e('Wrap Content in Container', 'lsvr-toolkit'); ?> </label> </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 class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('custom_id'); ?> "><?php _e('Custom ID', '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_id', $block_id, $custom_id); ?> </div> </div> </div> <?php }
function form($instance) { $defaults = array('quantity' => '2', 'margin_top' => 10, 'margin_bottom' => 10, 'animation' => 'none', 'animation' => 'None', 'duration' => '900', 'delay' => '0', 'show' => '1', 'link' => '#'); $instance = wp_parse_args($instance, $defaults); extract($instance); global $include_animation; ?> <p class="description"> <?php _e('* Note: This block will display 2 latest posts every row', 'oneengine'); ?> </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> - <label for="<?php echo $this->get_field_id('quantity'); ?> "> <?php _e('Quantity of post', 'oneengine'); ?> <?php echo aq_field_input('quantity', $block_id, $quantity, 'min', 'number'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('show'); ?> "> <?php _e('Show button "View all Blog" ?', 'oneengine'); ?> <?php echo aq_field_checkbox('show', $block_id, $show); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('link'); ?> "> <?php _e('Link to blog of button "View all Blog"', 'oneengine'); ?> <?php echo aq_field_input('link', $block_id, $link, $size = 'large'); ?> </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('Duration for Animation (Ex : 300ms)', '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> <?php }
function form($instance) { $defaults = array('title' => 'Recent Posts', 'post_type' => 'all', 'categories' => 'all', 'flex_bg_color' => '#eee', 'offset' => 0, 'right_lay' => 0, 'flex_text_color' => '#000'); $instance = wp_parse_args((array) $instance, $defaults); extract($instance); ?> <p class="description half"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title (optional) <input id="<?php echo $this->get_field_id('title'); ?> " class="input-full" type="text" value="<?php echo $title; ?> " name="<?php echo $this->get_field_name('title'); ?> "> </label> </p> <p class="description half"> <label for="<?php echo $this->get_field_id('categories'); ?> ">Filter by Category:</label> <select id="<?php echo $this->get_field_id('categories'); ?> " name="<?php echo $this->get_field_name('categories'); ?> " class="widefat categories" style="width:100%;"> <option value='all' <?php if ('all' == $instance['categories']) { echo 'selected="selected"'; } ?> >all categories</option> <?php $categories = get_categories('hide_empty=0&depth=1&type=post'); ?> <?php foreach ($categories as $category) { ?> <option value='<?php echo $category->term_id; ?> ' <?php if ($category->term_id == $instance['categories']) { echo 'selected="selected"'; } ?> ><?php echo $category->cat_name; ?> </option> <?php } ?> </select> </p> <p style="clear:both; margin-bottom:30px;"></p> <hr> <p class="description"> <label for="<?php echo $this->get_field_id('offset'); ?> "> <?php echo aq_field_checkbox('offset', $block_id, $offset); ?> Enable navigation offset </label> </p> <p style="clear:both; margin-bottom:30px;"></p> <hr> <p class="description"> <label for="<?php echo $this->get_field_id('right_lay'); ?> "> <?php echo aq_field_checkbox('right_lay', $block_id, $right_lay); ?> Switch position (2nd vs 3rd column) </label> </p> <?php }
function form($instance) { $defaults = array('type' => 'grid', 'post_type' => 'portfolio', 'filter' => 'all', 'blog_filter' => 'all', 'lightbox' => 0); $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); $blog_args = array('orderby' => 'name', 'hide_empty' => 0, 'hierarchical' => 1, 'taxonomy' => 'category'); $blog_filter_options = get_categories($blog_args); $post_type_options = array('portfolio' => 'Portfolio', 'post' => 'Blog'); ?> <p class="description note"> <?php _e('Use this block to add a carousel of posts to your page.', 'marble'); ?> </p> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title (optional) <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="description fourth"> <label for="<?php echo $this->get_field_id('post_type'); ?> "> Choose a Post Type<br/> <?php echo aq_field_select('post_type', $block_id, $post_type_options, $post_type, $block_id); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('lightbox'); ?> "> Disable Lightbox? (Only used for Portfolio)<br/> <?php echo aq_field_checkbox('lightbox', $block_id, $lightbox); ?> </label> </p> <div class="cf"></div> <p class="description"> <label for="<?php echo $this->get_field_id('filter'); ?> "> <?php _e('Show a specific portfolio category? ONLY USED IF PORTFOLIO POST TYPE IS CHOSEN', 'marble'); ?> <br/> <?php echo ebor_portfolio_field_select('filter', $block_id, $filter_options, $filter); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('blog_filter'); ?> "> <?php _e('Show a specific blog category? ONLY USED IF BLOG POST TYPE IS CHOSEN', 'marble'); ?> <br/> <?php echo ebor_portfolio_field_select('blog_filter', $block_id, $blog_filter_options, $blog_filter); ?> </label> </p> <?php }
function form($instance) { $defaults = $this->defaults; $type_arr = array('warning' => __('Warning', 'lsvr-toolkit'), 'success' => __('Success', 'lsvr-toolkit'), 'info' => __('Info', 'lsvr-toolkit'), 'notification' => __('Notification', 'lsvr-toolkit')); 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('html_content'); ?> "><?php _e('Message', '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('type'); ?> "><?php _e('Type', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_select('type', $block_id, $type_arr, $type); ?> </div> </div> <div class="lsvr-form-row"> <div class="lsvr-form-field"> <?php echo aq_field_checkbox('closable', $block_id, $closable); ?> <label class="lsvr-checkbox-label" for="<?php echo $this->get_field_id('closable'); ?> "><?php _e('Closable', 'lsvr-toolkit'); ?> </label> </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('text' => 'Button', 'link' => '#', 'color' => 'grey', 'btnsize' => 'default', 'icontype' => 'none', 'whiteicon' => '0', 'align' => 'none', 'id' => '', 'class' => '', 'style' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); $color_options = array('grey' => 'Grey', 'blue' => 'Blue', 'lightblue' => 'Light Blue', 'green' => 'Green', 'red' => 'Red', 'yellow' => 'Yellow', 'black' => 'Black'); $size_options = array('default' => 'Default', 'mini' => 'Mini', 'small' => 'Small', 'large' => 'Large', 'huge' => 'Huge', 'block' => 'Block'); $align_options = array('none' => 'None', 'left' => 'Left', 'center' => 'Center', 'right' => 'Right'); $icontype_options = array('none' => 'none', 'icon-adjust' => 'icon-adjust', 'icon-align-center' => 'icon-align-center', 'icon-align-justify' => 'icon-align-justify', 'icon-align-left' => 'icon-align-left', 'icon-align-right' => 'icon-align-right', 'icon-arrow-down' => 'icon-arrow-down', 'icon-arrow-left' => 'icon-arrow-left', 'icon-arrow-right' => 'icon-arrow-right', 'icon-arrow-up' => 'icon-arrow-up', 'icon-asterisk' => 'icon-asterisk', 'icon-backward' => 'icon-backward', 'icon-ban-circle' => 'icon-ban-circle', 'icon-barcode' => 'icon-barcode', 'icon-bell' => 'icon-bell', 'icon-bold' => 'icon-bold', 'icon-book' => 'icon-book', 'icon-bookmark' => 'icon-bookmark', 'icon-briefcase' => 'icon-briefcase', 'icon-bullhorn' => 'icon-bullhorn', 'icon-calendar' => 'icon-calendar', 'icon-camera' => 'icon-camera', 'icon-certificate' => 'icon-certificate', 'icon-check' => 'icon-check', 'icon-chevron-down' => 'icon-chevron-down', 'icon-chevron-left' => 'icon-chevron-left', 'icon-chevron-right' => 'icon-chevron-right', 'icon-chevron-up' => 'icon-chevron-up', 'icon-circle-arrow-down' => 'icon-circle-arrow-down', 'icon-circle-arrow-left' => 'icon-circle-arrow-left', 'icon-circle-arrow-right' => 'icon-circle-arrow-right', 'icon-circle-arrow-up' => 'icon-circle-arrow-up', 'icon-cog' => 'icon-cog', 'icon-comment' => 'icon-comment', 'icon-download' => 'icon-download', 'icon-download-alt' => 'icon-download-alt', 'icon-edit' => 'icon-edit', 'icon-eject' => 'icon-eject', 'icon-envelope' => 'icon-envelope', 'icon-exclamation-sign' => 'icon-exclamation-sign', 'icon-eye-close' => 'icon-eye-close', 'icon-eye-open' => 'icon-eye-open', 'icon-facetime-video' => 'icon-facetime-video', 'icon-fast-backward' => 'icon-fast-backward', 'icon-fast-forward' => 'icon-fast-forward', 'icon-file' => 'icon-file', 'icon-film' => 'icon-film', 'icon-filter' => 'icon-filter', 'icon-fire' => 'icon-fire', 'icon-flag' => 'icon-flag', 'icon-folder-close' => 'icon-folder-close', 'icon-folder-open' => 'icon-folder-open', 'icon-font' => 'icon-font', 'icon-forward' => 'icon-forward', 'icon-fullscreen' => 'icon-fullscreen', 'icon-gift' => 'icon-gift', 'icon-globe' => 'icon-globe', 'icon-hand-down' => 'icon-hand-down', 'icon-hand-left' => 'icon-hand-left', 'icon-hand-right' => 'icon-hand-right', 'icon-hand-up' => 'icon-hand-up', 'icon-hdd' => 'icon-hdd', 'icon-headphones' => 'icon-headphones', 'icon-heart' => 'icon-heart', 'icon-home' => 'icon-home', 'icon-inbox' => 'icon-inbox', 'icon-indent-left' => 'icon-indent-left', 'icon-indent-right' => 'icon-indent-right', 'icon-info-sign' => 'icon-info-sign', 'icon-italic' => 'icon-italic', 'icon-leaf' => 'icon-leaf', 'icon-list' => 'icon-list', 'icon-list-alt' => 'icon-list-alt', 'icon-lock' => 'icon-lock', 'icon-magnet' => 'icon-magnet', 'icon-map-marker' => 'icon-map-marker', 'icon-minus' => 'icon-minus', 'icon-minus-sign' => 'icon-minus-sign', 'icon-move' => 'icon-move', 'icon-music' => 'icon-music', 'icon-off' => 'icon-off', 'icon-ok' => 'icon-ok', 'icon-ok-circle' => 'icon-ok-circle', 'icon-ok-sign' => 'icon-ok-sign', 'icon-pause' => 'icon-pause', 'icon-pencil' => 'icon-pencil', 'icon-picture' => 'icon-picture', 'icon-plane' => 'icon-plane', 'icon-play' => 'icon-play', 'icon-play-circle' => 'icon-play-circle', 'icon-plus' => 'icon-plus', 'icon-plus-sign' => 'icon-plus-sign', 'icon-print' => 'icon-print', 'icon-qrcode' => 'icon-qrcode', 'icon-question-sign' => 'icon-question-sign', 'icon-random' => 'icon-random', 'icon-refresh' => 'icon-refresh', 'icon-remove' => 'icon-remove', 'icon-remove-circle' => 'icon-remove-circle', 'icon-remove-sign' => 'icon-remove-sign', 'icon-repeat' => 'icon-repeat', 'icon-resize-full' => 'icon-resize-full', 'icon-resize-horizontal' => 'icon-resize-horizontal', 'icon-resize-small' => 'icon-resize-small', 'icon-resize-vertical' => 'icon-resize-vertical', 'icon-retweet' => 'icon-retweet', 'icon-road' => 'icon-road', 'icon-screenshot' => 'icon-screenshot', 'icon-search' => 'icon-search', 'icon-share' => 'icon-share', 'icon-share-alt' => 'icon-share-alt', 'icon-shopping-cart' => 'icon-shopping-cart', 'icon-signal' => 'icon-signal', 'icon-star' => 'icon-star', 'icon-star-empty' => 'icon-star-empty', 'icon-step-backward' => 'icon-step-backward', 'icon-step-forward' => 'icon-step-forward', 'icon-stop' => 'icon-stop', 'icon-tag' => 'icon-tag', 'icon-tags' => 'icon-tags', 'icon-tasks' => 'icon-tasks', 'icon-text-height' => 'icon-text-height', 'icon-text-width' => 'icon-text-width', 'icon-th' => 'icon-th', 'icon-th-large' => 'icon-th-large', 'icon-th-list' => 'icon-th-list', 'icon-thumbs-down' => 'icon-thumbs-down', 'icon-thumbs-up' => 'icon-thumbs-up', 'icon-time' => 'icon-time', 'icon-tint' => 'icon-tint', 'icon-trash' => 'icon-trash', 'icon-upload' => 'icon-upload', 'icon-user' => 'icon-user', 'icon-volume-down' => 'icon-volume-down', 'icon-volume-off' => 'icon-volume-off', 'icon-volume-up' => 'icon-volume-up', 'icon-warning-sign' => 'icon-warning-sign', 'icon-wrench' => 'icon-wrench', 'icon-zoom-in' => 'icon-zoom-in', 'icon-zoom-out' => 'icon-zoom-out'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('text'); ?> "> Button Text <?php echo aq_field_input('text', $block_id, $text, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('link'); ?> "> Button Link <?php echo aq_field_input('link', $block_id, $link, $size = 'full'); ?> </label> </p> <div class="description third"> <label for="<?php echo $this->get_field_id('color'); ?> "> Button Color<br/> <?php echo aq_field_select('color', $block_id, $color_options, $color); ?> </label> </div> <div class="description third"> <label for="<?php echo $this->get_field_id('btnsize'); ?> "> Button Size<br/> <?php echo aq_field_select('btnsize', $block_id, $size_options, $btnsize); ?> </label> </div> <div class="description third last"> <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 half"> <label for="<?php echo $this->get_field_id('icontype'); ?> "> Icon Type<br/> <?php echo aq_field_select('icontype', $block_id, $icontype_options, $icontype); ?> </label> </div> <div class="description half last"> <label for="<?php echo $this->get_field_id('whiteicon'); ?> "> White Icon? <?php echo aq_field_checkbox('whiteicon', $block_id, $whiteicon); ?> </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 = array('qty' => '', 'category' => array(), 'autoplay' => '5000', 'excerpt_length' => '30', 'random' => false); $instance = wp_parse_args($instance, $defaults); extract($instance); $terms = get_terms('category'); $all_terms = array(); foreach ($terms as $term) { $all_terms[$term->term_id] = $term->name; } ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> <?php _e('Title (optional)', 'engine'); ?> <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('qty'); ?> "> <?php _e('Number of Posts', 'engine'); ?> <?php echo aq_field_input('qty', $block_id, $qty, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('category'); ?> "> <?php _e('Categories', 'engine'); ?> <?php echo aq_field_multiselect('category', $block_id, $all_terms, $category); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('excerpt_length'); ?> "> <?php _e('Excerpt Length', 'engine'); ?> <?php echo aq_field_input('excerpt_length', $block_id, $excerpt_length, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('autoplay'); ?> "> <?php _e('Autoplay', 'engine'); ?> <?php echo aq_field_input('autoplay', $block_id, $autoplay, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('random'); ?> "> <?php _e('Randomize?', 'engine'); ?> <?php echo aq_field_checkbox('random', $block_id, $random); ?> </label> </p> <?php }
function form($instance) { $defaults = array("title" => '', "type" => '', "currency" => '$', "price" => '', "per" => '', "buttonstyle" => '', "buttonlink" => '', "buttontext" => 'Sign Up', "text" => '', 'wp_autop' => 0); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description half"> <label for="<?php echo $this->get_field_id('title'); ?> "> Title <?php echo aq_field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="description half last"> <label for="<?php echo $this->get_field_id('boxes'); ?> -type"> Type <br/> <?php $type_options = array('featured' => 'Featured', 'premium' => 'Premium', 'standard' => 'Standard'); echo aq_field_select('type', $block_id, $type_options, $type); ?> </label> </p> <p class="description half"> <label for="<?php echo $this->get_field_id('currency'); ?> "> Currency <?php echo aq_field_input('currency', $block_id, $currency, $size = 'full'); ?> </label> </p> <p class="description half last"> <label for="<?php echo $this->get_field_id('price'); ?> "> Price <?php echo aq_field_input('price', $block_id, $price, $size = 'full'); ?> </label> </p> <p class="description half"> <label for="<?php echo $this->get_field_id('per'); ?> "> "Per" <?php echo aq_field_input('per', $block_id, $per, $size = 'full'); ?> </label> </p> <p class="description half last "> <label for="<?php echo $this->get_field_id('buttonstyle'); ?> "> "Sing up" style <?php $style_options = array('light' => 'Light', 'color' => 'Color'); echo aq_field_select('buttonstyle', $block_id, $style_options, $buttonstyle); ?> </label> </p> <p class="description half "> <label for="<?php echo $this->get_field_id('buttonlink'); ?> "> "Sing up" button URL <?php echo aq_field_input('buttonlink', $block_id, $buttonlink, $size = 'full'); ?> </label> </p> <p class="description half last"> <label for="<?php echo $this->get_field_id('buttontext'); ?> "> "Sing up" text <?php echo aq_field_input('buttontext', $block_id, $buttontext, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('text'); ?> "> Content <?php echo aq_field_textarea('text', $block_id, $text, $size = 'full'); ?> </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> <?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('p_number' => '12', 'animation' => 'None', 'duration' => '300', 'delay' => '0', 'margin_top' => '10', 'margin_bottom' => '10', 'span_column' => 'span4', 'hide_filter' => '0'); $instance = wp_parse_args($instance, $defaults); extract($instance); global $include_animation; global $include_button_effect; ?> <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('p_number'); ?> "> <?php _e('Quantity of porfolio items. ( * Note : with the value \'-1\', all item will be displayed ! )', 'oneengine'); ?> <?php echo aq_field_input('p_number', $block_id, $p_number, 'min', 'number'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('hide_filter'); ?> "> <?php _e('Hide filter ?', 'oneengine'); ?> <?php echo aq_field_checkbox('hide_filter', $block_id, $hide_filter); ?> </label> </p> <?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"> <h3 class="lsvr-form-label"><?php _e('Items', 'lsvr-toolkit'); ?> </h3> <div class="description cf"> <ul id="aq-sortable-list-<?php echo $block_id; ?> " class="aq-sortable-list" rel="<?php echo $block_id; ?> "> <?php $caritems = is_array($caritems) ? $caritems : $defaults['caritems']; $count = 1; foreach ($caritems as $caritem) { $this->caritem($caritem, $count); $count++; } ?> </ul> <p></p> <a href="#" rel="caritem" class="lsvr-sortable-add-new button"><?php _e('Add New', 'lsvr-toolkit'); ?> </a> <p></p> </div> </div> <div class="lsvr-form-row"> <div class="lsvr-form-field"> <?php echo aq_field_checkbox('wrap_in_container', $block_id, $wrap_in_container); ?> <label class="lsvr-checkbox-label" for="<?php echo $this->get_field_id('wrap_in_container'); ?> "><?php _e('Wrap in Container', 'lsvr-toolkit'); ?> </label> </div> </div> <div class="lsvr-form-row"> <div class="lsvr-form-field"> <?php echo aq_field_checkbox('transparent_bg', $block_id, $transparent_bg); ?> <label class="lsvr-checkbox-label" for="<?php echo $this->get_field_id('transparent_bg'); ?> "><?php _e('Transparent Background', 'lsvr-toolkit'); ?> </label> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('bg_color'); ?> "><?php _e('Background Color', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_color_picker('bg_color', $block_id, $bg_color, '#FFFFFF'); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('items_per_slide'); ?> "><?php _e('Items Per Slide', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_select('items_per_slide', $block_id, array('1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6), $items_per_slide); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('items_per_slide_desktop'); ?> "><?php _e('Items Per Slide Under 1200px', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_select('items_per_slide_desktop', $block_id, array('1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6), $items_per_slide_desktop); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('items_per_slide_smalldesktop'); ?> "><?php _e('Items Per Slide Under 992px', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_select('items_per_slide_smalldesktop', $block_id, array('1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6), $items_per_slide_smalldesktop); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('items_per_slide_tablet'); ?> "><?php _e('Items Per Slide Under 768px', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_select('items_per_slide_tablet', $block_id, array('1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6), $items_per_slide_tablet); ?> </div> </div> <div class="lsvr-form-row"> <label for="<?php echo $this->get_field_id('items_per_slide_mobile'); ?> "><?php _e('Items Per Slide Under 481px', 'lsvr-toolkit'); ?> </label> <div class="lsvr-form-field"> <?php echo aq_field_select('items_per_slide_mobile', $block_id, array('1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6), $items_per_slide_mobile); ?> </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 after_form($instance) { $defaults = array('wp_autodiv' => 1); $instance = wp_parse_args($instance, $defaults); extract($instance); $block_saving_id = 'aq_blocks[aq_block_' . $number . ']'; echo '<div class="block-control-actions clearfix"><a href="#" class="delete">Delete</a> | <a href="#" class="close">Close</a> | <label>' . aq_field_checkbox('wp_autodiv', $block_id, $wp_autodiv) . ' Do not create the <div> </div> automatically. <code>"wpautodiv"</code> disable.</label> </div>'; echo '<input type="hidden" class="id_base" name="' . $this->get_field_name('id_base') . '" value="' . $id_base . '" />'; //echo '<input type="hidden" class="name" name="'.$this->get_field_name('name').'" value="'.$name.'" />'; echo '<input type="hidden" class="order" name="' . $this->get_field_name('order') . '" value="' . $order . '" />'; echo '<input type="hidden" class="size" name="' . $this->get_field_name('size') . '" value="' . $size . '" />'; echo '<input type="hidden" class="parent" name="' . $this->get_field_name('parent') . '" value="' . $parent . '" />'; echo '<input type="hidden" class="number" name="' . $this->get_field_name('number') . '" value="' . $number . '" />'; echo '</div>', '</li>'; }