本文整理汇总了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'));
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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);
}
示例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);
}