function form($instance) { $defaults = array('pppage' => '10', 'filter' => 'all'); $instance = wp_parse_args($instance, $defaults); extract($instance); $args = array('orderby' => 'name', 'hide_empty' => 0, 'hierarchical' => 1, 'taxonomy' => 'client-category'); $filter_options = get_categories($args); ?> <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 Clients from a specific category?<br /> <?php echo ebor_portfolio_field_select('filter', $block_id, $filter_options, $filter); ?> </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('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('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('filter' => 'all'); $instance = wp_parse_args($instance, $defaults); extract($instance); $args = array('orderby' => 'name', 'hide_empty' => 0, 'hierarchical' => 1, 'taxonomy' => 'testimonial-category'); $filter_options = get_categories($args); ?> <p class="description"> <label for="<?php echo $this->get_field_id('filter'); ?> "> Show Testimonials from a specific category?<br /> <?php echo ebor_portfolio_field_select('filter', $block_id, $filter_options, $filter); ?> </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('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 = array('wpautop' => '', 'type' => 'full-portfolio', 'pppage' => '999', '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); $portfolio_types = array('full-portfolio' => 'Fullscreen Portfolio', 'fix-portfolio' => 'Classic Portfolio', 'fix-portfolio-alt' => 'Classic Portfolio (3 Columns)'); ?> <p class="description"> <label for="<?php echo $this->get_field_id('wpautop'); ?> "> Center Filters? <?php echo aq_field_checkbox('wpautop', $block_id, $wpautop); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('lightbox'); ?> "> Disable Single Posts and use Image Lightbox instead? <?php echo aq_field_checkbox('lightbox', $block_id, $lightbox); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('type'); ?> "> Portfolio Style <?php echo aq_field_select('type', $block_id, $portfolio_types, $type); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('pppage'); ?> "> Load how many items? 999 for all. <code>Note: The Portfolio is not Paged</code> <?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 portfolio category? <?php echo ebor_portfolio_field_select('filter', $block_id, $filter_options, $filter); ?> </label> </p> <?php }