当前位置: 首页>>代码示例>>PHP>>正文


PHP aq_field_input函数代码示例

本文整理汇总了PHP中aq_field_input函数的典型用法代码示例。如果您正苦于以下问题:PHP aq_field_input函数的具体用法?PHP aq_field_input怎么用?PHP aq_field_input使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了aq_field_input函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: form

    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 
    }
开发者ID:egamboa,项目名称:estebangam,代码行数:33,代码来源:st-download-block.php

示例2: form

    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 
    }
开发者ID:WebTM,项目名称:web,代码行数:32,代码来源:portfolio_block.php

示例3: form

    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 
    }
开发者ID:piet89,项目名称:flexmarket,代码行数:32,代码来源:aq-shortcode-block.php

示例4: form

    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 
    }
开发者ID:egamboa,项目名称:estebangam,代码行数:35,代码来源:st-container-open-block.php

示例5: form

    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 
    }
开发者ID:webmaia,项目名称:Aqua-Page-Builder,代码行数:33,代码来源:aq-editor-block.php

示例6: form

        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 
        }
开发者ID:dreadfra,项目名称:superba,代码行数:28,代码来源:et-clear-block.php

示例7: form

    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 
    }
开发者ID:misfist,项目名称:loom-theme,代码行数:33,代码来源:spacer_block.php

示例8: form

    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 
    }
开发者ID:misfist,项目名称:loom-theme,代码行数:33,代码来源:call_to_action_block.php

示例9: form

    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 
    }
开发者ID:misfist,项目名称:loom-theme,代码行数:33,代码来源:map_block.php

示例10: form

    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 
    }
开发者ID:misfist,项目名称:loom-theme,代码行数:35,代码来源:clients_block.php

示例11: form

    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 
    }
开发者ID:egamboa,项目名称:estebangam,代码行数:35,代码来源:st-container-close-block.php

示例12: form

    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 
    }
开发者ID:xiang-chen-git,项目名称:LeanBlog,代码行数:35,代码来源:aq-widgets-block.php

示例13: form

    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 
    }
开发者ID:misfist,项目名称:loom-theme,代码行数:59,代码来源:alert_block.php

示例14: form

    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 
    }
开发者ID:misfist,项目名称:loom-theme,代码行数:59,代码来源:team_carousel_block.php

示例15: form

    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 
    }
开发者ID:misfist,项目名称:loom-theme,代码行数:57,代码来源:image_block.php


注:本文中的aq_field_input函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。