本文整理汇总了PHP中AQ_Block类的典型用法代码示例。如果您正苦于以下问题:PHP AQ_Block类的具体用法?PHP AQ_Block怎么用?PHP AQ_Block使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AQ_Block类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: array
function __construct()
{
$block_options = array('image' => 'pricing_table.png', 'name' => 'Pricing Table', 'size' => 'span6', 'imagedesc' => 'pricing-table.jpg', 'tab' => 'Content', 'desc' => 'Adds a price plan with features and a button.');
//create the block
parent::__construct('CR_PricingTables_Block', $block_options);
add_action('wp_ajax_aq_block_pt_tab_add_new', array($this, 'add_tab'));
}
开发者ID:purgesoftwares,项目名称:purges,代码行数:7,代码来源:cr-pricingtables-block.php
示例2: array
function __construct()
{
$block_options = array('name' => 'Tabs & Toggles', 'size' => 'span6');
//create the widget
parent::__construct('PP_Tabs_Block', $block_options);
//add ajax functions
add_action('wp_ajax_aq_block_tab_add_new', array($this, 'add_tab'));
}
开发者ID:JeffreyBue,项目名称:jb,代码行数:8,代码来源:pp-tabs-block.php
示例3: array
function __construct()
{
$block_options = array('image' => 'icon_box.png', 'name' => 'Icon Box', 'size' => 'span6', 'home' => 'homePage', 'tab' => 'Content', 'imagedesc' => 'iconbox.jpg', 'desc' => 'Adds iconed text snippets.');
//create the widget
parent::__construct('CR_Features_Home', $block_options);
//add ajax functions
add_action('wp_ajax_aq_block_feature_add_new', array($this, 'add_tab'));
}
开发者ID:purgesoftwares,项目名称:purges,代码行数:8,代码来源:cr-features-home.php
示例4: array
function __construct()
{
$block_options = array('name' => __('ET Services', 'oneengine'), 'size' => 'span12');
//create the widget
parent::__construct('OE_Service_Block', $block_options);
//add ajax functions
add_action('wp_ajax_aq_block_service_add_new', array($this, 'add_service'));
}
开发者ID:CUPolishSociety,项目名称:nsp,代码行数:8,代码来源:et-service-1-block.php
示例5: array
function __construct()
{
$block_options = array('name' => '<i class="fa fa-user-md"></i> About', 'size' => 'col-md-12');
//create the widget
parent::__construct('st_about_block', $block_options);
//add ajax functions
add_action('wp_ajax_aq_block_check_add_new', array($this, 'add_check_item'));
add_action('wp_ajax_aq_block_checkbtn_add_new', array($this, 'add_checkbtn_btn'));
}
开发者ID:egamboa,项目名称:estebangam,代码行数:9,代码来源:st-about-block.php
示例6: update
function update($new_instance, $old_instance)
{
if ($new_instance['post_shape'] == 'circle') {
$new_instance['post_style'] = $new_instance['post_shape'];
} elseif ($new_instance['post_shape'] == 'magazine') {
$new_instance['post_style'] = $new_instance['magazine_style'];
} else {
$new_instance['post_style'] = $new_instance['hover_style'];
}
$new_instance['post_order'] = 'desc';
return parent::update($new_instance, $old_instance);
}
开发者ID:purgesoftwares,项目名称:purges,代码行数:12,代码来源:cr-offers-block.php
示例7: array
function __construct()
{
$block_options = array('name' => '<i class="fa fa-download"></i> Download', 'size' => 'col-md-6');
//create the block
parent::__construct('st_download_block', $block_options);
}
开发者ID:egamboa,项目名称:estebangam,代码行数:6,代码来源:st-download-block.php
注:本文中的AQ_Block类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论