コード例 #1
0
    function form($instance)
    {
        $defaults = array('title' => '', 'link' => '');
        $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('link');
        ?>
">
				Link Download (optional)
				<?php 
        echo aq_field_input('link', $block_id, $link, $size = 'full');
        ?>
			</label>
		</p>
		
		<?php 
    }
コード例 #2
0
ファイル: portfolio_block.php プロジェクト: WebTM/web
    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 
    }
コード例 #3
0
    function form($instance)
    {
        $defaults = array('title' => '', 'shortcode' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		<div 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>
		</div>
		
		<div class="description">
			<label for="<?php 
        echo $this->get_field_id('shortcode');
        ?>
">
				Shortcode
				<?php 
        echo aq_field_textarea('shortcode', $block_id, $shortcode, $size = 'full');
        ?>
			</label>
		</div>
		
		<?php 
    }
コード例 #4
0
    function form($instance)
    {
        $defaults = array('title' => '', 'text' => '', 'id' => 'resume', 'class' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance, EXTR_OVERWRITE);
        $block_id = 'aq_block_' . $number;
        $block_saving_id = 'aq_blocks[aq_block_' . $number . ']';
        ?>
		<div class="cf"></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>
	<?php 
    }
コード例 #5
0
    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('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 
        $args = array('tinymce' => true, 'quicktags' => true, 'textarea_name' => $this->get_field_name('text'));
        wp_editor(htmlspecialchars_decode($text), $this->get_field_id('text'), $args);
        ?>
			</label>
		</p>
		
		<?php 
    }
コード例 #6
0
ファイル: et-clear-block.php プロジェクト: dreadfra/superba
        function form($instance)
        {
            $defaults = array('height' => '0');
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            ?>
        <p class="description">
			<?php 
            _e('* Note: height of Clear Block is equal to 0 when viewing on smart phone.', 'oneengine');
            ?>
		</p>
		<p class="description">
			<label for="<?php 
            echo $this->get_field_id('height');
            ?>
">
				<?php 
            _e('Height', 'oneengine');
            ?>
				<?php 
            echo aq_field_input('height', $block_id, $height, 'min', 'number');
            ?>
 px
			</label>
		</p>
        				
		<?php 
        }
コード例 #7
0
ファイル: spacer_block.php プロジェクト: misfist/loom-theme
    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 
    }
コード例 #8
0
    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('title');
        ?>
">
				Link Text
				<?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');
        ?>
">
				Link URL
				<?php 
        echo aq_field_input('text', $block_id, $text, $size = 'full');
        ?>
			</label>
		</p>
		
	<?php 
    }
コード例 #9
0
ファイル: map_block.php プロジェクト: misfist/loom-theme
    function form($instance)
    {
        $defaults = array('image' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('image');
        ?>
">
				Upload a Marker Image
				<?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('title');
        ?>
">
				Address for map, use plain text, e.g: <code>Lord Mayors Walk, York, England</code>
				<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
			</label>
		</p>

	<?php 
    }
コード例 #10
0
ファイル: clients_block.php プロジェクト: misfist/loom-theme
    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 
    }
コード例 #11
0
    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 
    }
コード例 #12
0
    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 
    }
コード例 #13
0
ファイル: alert_block.php プロジェクト: misfist/loom-theme
    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 
    }
コード例 #14
0
    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 
    }
コード例 #15
0
ファイル: image_block.php プロジェクト: misfist/loom-theme
    function form($instance)
    {
        $defaults = array('link' => '', 'image' => '', 'image_title' => '', 'lightbox' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('image');
        ?>
">
				Upload Image (Required)
				<?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('image_title');
        ?>
">
				Image Alt Title.
				<?php 
        echo aq_field_input('image_title', $block_id, $image_title, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('link');
        ?>
">
				Link Image? Enter URL here.
				<?php 
        echo aq_field_input('link', $block_id, $link, $size = 'full');
        ?>
			</label>
		</p>
		
		<p class="description">
			<label for="<?php 
        echo $this->get_field_id('lightbox');
        ?>
">
				Upload Lightbox Image?<br /><code>Optional</code> - Note: Disables Link Option
				<?php 
        echo aq_field_upload('lightbox', $block_id, $lightbox, $media_type = 'image');
        ?>
			</label>
		</p>
		
	<?php 
    }
コード例 #16
0
ファイル: text_block.php プロジェクト: misfist/loom-theme
    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 
    }
コード例 #17
0
ファイル: tabs_block.php プロジェクト: misfist/loom-theme
    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 
    }
コード例 #18
0
ファイル: et-pricing.php プロジェクト: gosferano/wordpress
        function form($instance)
        {
            $defaults = array('pricings' => array(1 => array('title' => __('Basic <span>$9</span>/month', 'oneengine'), 'left' => '0', 'right' => '0', 'option_1' => '3G Space', 'option_2' => '4 Subdomain', 'option_3' => 'Unlimited Bandwidth', 'option_4' => 'Support 24/7', 'content_link' => 'sign up', 'type_pricing' => 'none', 'duration' => '900', 'delay' => '0', 'animation' => 'None')), 'margin_top' => 10, 'margin_bottom' => 10);
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            ?>
		<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>&nbsp;-&nbsp;
			<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 
            $pricings = is_array($pricings) ? $pricings : $defaults['pricings'];
            $count = 1;
            foreach ($pricings as $pricing) {
                $this->pricing($pricing, $count);
                $count++;
            }
            ?>
			</ul>
			<p></p>
			<a href="#" rel="pricing" class="aq-sortable-add-new button">Add New</a>
			<p></p>
		</div>
		<?php 
        }
コード例 #19
0
ファイル: skills_block.php プロジェクト: misfist/loom-theme
    function form($instance)
    {
        $defaults = array('tabs' => array(1 => array('title' => 'Skill Bar', 'content' => '90%')), 'text' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
		
		<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('text');
        ?>
">
				Content Above Tabs (optional)
				<?php 
        echo aq_field_textarea('text', $block_id, $text, $size = 'full', true);
        ?>
			</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="skill" class="aq-sortable-add-new button">Add New</a>
			<p></p>
		</div>
		
	<?php 
    }
コード例 #20
0
    function form($instance)
    {
        $defaults = array('title' => '', 'class' => 'employment', 'items' => array(1 => array('title' => 'New Title', 'icon' => 'icon-suitcase', 'year' => '', 'content' => '', 'company' => '')));
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
    
  	<div class="description">
		<label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
			Title <br/><em style="font-size: 0.8em;">(Please enter title Resume)</em><br/>
			<?php 
        echo aq_field_input('title', $block_id, $title, $size = 'full');
        ?>
		</label>
	</div>
    <div class="cf"></div>
    <div class="description cf">
	    <ul id="aq-sortable-list-<?php 
        echo $block_id;
        ?>
" class="aq-sortable-list" rel="<?php 
        echo $block_id;
        ?>
">
		    <?php 
        $items = is_array($items) ? $items : $defaults['items'];
        $count = 1;
        foreach ($items as $item) {
            $this->item($item, $count);
            $count++;
        }
        ?>
	    </ul>
	    <p></p>
	    	<a href="#" rel="resume" class="aq-sortable-add-new button">Add New</a>
	    <p></p>
    </div>
	<div class="cf"></div>
	<div class="description">
		<label for="<?php 
        echo $this->get_field_id('class');
        ?>
">
			Class (Option) <code>Ex: employment or education</code><br/>
			<?php 
        echo aq_field_input('class', $block_id, $class, $size = 'full');
        ?>
		</label>
	</div>
    <?php 
    }
コード例 #21
0
        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 
        }
コード例 #22
0
ファイル: pp-image-block.php プロジェクト: JeffreyBue/jb
    function form($instance)
    {
        $defaults = array('caption' => '', 'upload' => '', 'url' => '');
        $instance = wp_parse_args($instance, $defaults);
        extract($instance);
        ?>
        <div class="description half">
            <label for="<?php 
        echo $this->get_field_id('caption');
        ?>
">
                Caption (optional)<br/>
                <?php 
        echo aq_field_input('caption', $block_id, $caption);
        ?>
            </label>
        </div>
        <div class="description half last">
            <label for="<?php 
        echo $this->get_field_id('url');
        ?>
">
                URL (optional)<br/>
                <?php 
        echo aq_field_input('url', $block_id, $url);
        ?>
            </label>
        </div>
        <div class="description half ">
            <label for="<?php 
        echo $this->get_field_id('upload');
        ?>
">
                Upload an image<br/>
                <?php 
        echo aq_field_upload('upload', $block_id, $upload);
        ?>
            </label>
            <?php 
        if ($upload) {
            ?>
            <div class="screenshot">
                <img src="<?php 
            echo $upload;
            ?>
" />
            </div>
            <?php 
        }
        ?>
        </div>
        <?php 
    }
コード例 #23
0
ファイル: pp-alert-block.php プロジェクト: JeffreyBue/jb
        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 
        }
コード例 #24
0
    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 
    }
コード例 #25
0
ファイル: pp-team-block.php プロジェクト: JeffreyBue/jb
        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 
        }
コード例 #26
0
        function form($instance)
        {
            $defaults = array('title' => 'New Skills', 'des' => '', 'items' => array(1 => array('title' => 'New Skill')));
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            ?>
    <div class="description">
        <label for="<?php 
            echo $this->get_field_id('title');
            ?>
">
        Title (Option) <em style="font-size: 0.8em;">(Please enter title)</em><br/>
        <?php 
            echo aq_field_input('title', $block_id, $title, $size = 'full');
            ?>
        </label>
    </div>
	<div class="description">
        <label for="<?php 
            echo $this->get_field_id('des');
            ?>
">
        Description (Option) <br />
        <?php 
            echo aq_field_textarea('des', $block_id, $des, $size = 'full');
            ?>
		
        </label>
    </div>
    <div class="description cf">
	    <ul id="aq-sortable-list-<?php 
            echo $block_id;
            ?>
" class="aq-sortable-list" rel="<?php 
            echo $block_id;
            ?>
">
		    <?php 
            $items = is_array($items) ? $items : $defaults['items'];
            $count = 1;
            foreach ($items as $item) {
                $this->item($item, $count);
                $count++;
            }
            ?>
	    </ul>
	    <p></p>
	    	<a href="#" rel="personal" class="aq-sortable-add-new button">Add New</a>
	    <p></p>
    </div>
<?php 
        }
コード例 #27
0
        function form($instance)
        {
            $defaults = array('timelines' => array(1 => array('title' => 'Add New', 'src_img' => '', 'year' => '2013', 'content' => '', 'duration' => '900', 'delay' => '0', 'animation' => 'None')), 'margin_top' => 10, 'margin_bottom' => 10);
            $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>&nbsp;-&nbsp;
			<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>
		<div class="description cf">
			<ul id="aq-sortable-list-<?php 
            echo $block_id;
            ?>
" class="aq-sortable-list" rel="<?php 
            echo $block_id;
            ?>
">
				<?php 
            $timelines = is_array($timelines) ? $timelines : $defaults['timelines'];
            $count = 1;
            foreach ($timelines as $timeline) {
                $this->timeline($timeline, $count);
                $count++;
            }
            ?>
			</ul>
			<p></p>
			<a href="#" rel="timeline" class="aq-sortable-add-new button">Add New</a>
			<p></p>
		</div>
		<?php 
        }
コード例 #28
0
    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 
    }
コード例 #29
0
ファイル: page_section_block.php プロジェクト: WebTM/web
    /**
     * 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 
    }
コード例 #30
0
    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 
    }