本文整理汇总了PHP中aq_field_textarea函数的典型用法代码示例。如果您正苦于以下问题:PHP aq_field_textarea函数的具体用法?PHP aq_field_textarea怎么用?PHP aq_field_textarea使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了aq_field_textarea函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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
}
示例2: 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
echo aq_field_textarea('text', $block_id, $text, $size = 'full');
?>
</label>
</p>
<?php
}
示例3: 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
}
示例4: form
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
}
示例5: form
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
}
示例6: form
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
}
示例7: form
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
}
示例8: form
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
}
示例9: form
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
}
示例10: form
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
}
示例11: form
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
}
示例12: form
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>
//.........这里部分代码省略.........
示例13: form
function form($instance)
{
$defaults = array('title' => '', 'job' => '', 'image' => '', 'id' => 'about', 'items' => array(1 => array('title' => 'New Title', 'icon' => 'icon-twitter', 'link' => '')), 'subtitle' => '', 'content' => '', 'infomation' => '', 'shortbtns' => array(1 => array('title' => 'New Title', 'icon' => 'icon-print-1', 'linkitem' => '', 'color' => '#03CC85')));
$instance = wp_parse_args($instance, $defaults);
extract($instance);
?>
<h3 style="text-align: center;">Content Box Left</h3>
<br />
<div class="description">
<label for="<?php
echo $this->get_field_id('title');
?>
">
Title <br />
<?php
echo aq_field_input('title', $block_id, $title, $size = 'full');
?>
</label>
</div>
<div class="description half">
<label for="<?php
echo $this->get_field_id('id');
?>
">
Id Section do you want <code>Ex: about</code> <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('image');
?>
">
Pick a your image<br/>
<?php
echo aq_field_upload('image', $block_id, $image, $media_type = 'image');
?>
</label>
</div>
<div class="description half">
<label for="<?php
echo $this->get_field_id('job');
?>
">
Your Job <br />
<?php
echo aq_field_textarea('job', $block_id, $job, $size = 'full');
?>
</label>
</div>
<div class="description half last">
<label for="<?php
echo $this->get_field_id('subtitle');
?>
">
Subtile <br />
<?php
echo aq_field_textarea('subtitle', $block_id, $subtitle, $size = 'full');
?>
</label>
</div>
<div class="description">
<label for="<?php
echo $this->get_field_id('content');
?>
">
Content <br />
<?php
echo aq_field_textarea('content', $block_id, $content, $size = 'full');
?>
</label>
</div>
<div class="description">
<label for="<?php
echo $this->get_field_id('infomation');
?>
">
Infomation <br />
<?php
echo aq_field_textarea('infomation', $block_id, $infomation, $size = 'full');
?>
</label>
</div>
<div class="cf"></div>
<h3 style="text-align: center;">Button Box Left</h3>
<div class="description cf">
//.........这里部分代码省略.........
示例14: form
//.........这里部分代码省略.........
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
}
示例15: form
function form($instance)
{
$defaults = array('content' => '');
$instance = wp_parse_args($instance, $defaults);
extract($instance);
echo cb_field($this->get_field_id('content'), aq_field_textarea('content', $block_id, $content), 'Content');
}