function form($instance) { $defaults = array('text' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('categories'); ?> "> <?php _e("Enter portfolio categories you want to exclude(comma separated) - Leave blank to show all. Ex: 47,32", 'oblivion'); ?> <?php echo field_input('categories', $block_id, $categories, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('projnum'); ?> "> <?php _e("Number of projects to show", 'oblivion'); ?> <?php echo field_input('projnum', $block_id, $projnum, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> <?php _e("Title (optional)", 'oblivion'); ?> <?php echo field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('alltab'); ?> "> <?php _e("Name of first tab (optional and for tabbed display only)", 'oblivion'); ?>
$block_options = array('name' => __('Clear', 'oblivion'), 'size' => __('span12', 'oblivion'), 'marg' => ''); //create the block parent::__construct('clear_block', $block_options); } function form($instance) { $defaults = array('horizontal_line' => 'none', 'line_color' => '#cccccc', 'pattern' => '1', 'height' => '1', 'marg' => ''); $line_options = array('none' => __('None', 'oblivion'), 'single' => __('Single', 'oblivion'), 'double' => __('Double', 'oblivion')); $instance = wp_parse_args($instance, $defaults); extract($instance); $line_color = isset($line_color) ? $line_color : '#cccccc'; ?> <p class="description note"> <?php _e('Use this block to clear the floats between two or more separate blocks vertically.', 'oblivion'); ?> </p> <p class="description fourth"> <label for="<?php echo $this->get_field_id('line_color'); ?> "> <?php _e('Pick a horizontal line', 'oblivion'); ?> <br/> <?php echo 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'); ?> "> <?php _e('Height (optional)', 'oblivion'); ?> <br/> <?php echo 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');
function form($instance) { $defaults = array('text' => '', 'marg' => '', 'boxed' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('title'); ?> "> <?php _e("Title (optional)", 'oblivion'); ?> <?php echo field_input('title', $block_id, $title, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('text'); ?> "> <?php _e("Content", 'oblivion'); ?> <?php echo field_textarea('text', $block_id, $text, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('boxed'); ?> "> <?php _e("Boxed ", 'oblivion'); ?> <?php echo field_checkbox('boxed', $block_id, $boxed, $check = 'true'); ?> </label>
function form($instance) { $defaults = array('text' => ''); $instance = wp_parse_args($instance, $defaults); extract($instance); ?> <p class="description"> <label for="<?php echo $this->get_field_id('htext'); ?> "> <?php _e("Highlight text", 'oblivion'); ?> <?php echo field_input('htext', $block_id, $htext, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('hbutton'); ?> "> <?php _e("Highlight button text", 'oblivion'); ?> <?php echo field_input('hbutton', $block_id, $hbutton, $size = 'full'); ?> </label> </p> <p class="description"> <label for="<?php echo $this->get_field_id('hlink'); ?> "> <?php _e("Highlight button link", 'oblivion'); ?> <?php echo field_input('hlink', $block_id, $hlink, $size = 'full'); ?> </label>