本文整理汇总了PHP中AQ_Block::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AQ_Block::__construct方法的具体用法?PHP AQ_Block::__construct怎么用?PHP AQ_Block::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AQ_Block
的用法示例。
在下文中一共展示了AQ_Block::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: __construct
public function __construct($id_base = false, $block_options = array())
{
parent::__construct('cr_gmap_block', array('tab' => 'Content', 'name' => __('Google Map', 'circleflip'), 'desc' => _x('Adds a dynamic/static google map', 'google maps block description', 'circleflip'), 'size' => 'span6', 'image' => 'google_map.png', 'imagedesc' => 'map.jpg', '_data' => array('settings' => array('mapType' => 'dynamic', 'filters' => false, 'expandable' => false, 'height' => 300, 'filterLabel' => 'Filter'), 'locations' => array())));
$api_key = cr_get_option('google_api_key', self::API_KEY);
add_action('circleflip_aq-page-builder-admin-enqueue', array($this, 'admin_enqueue'));
add_action('circleflip_aq-page-builder-admin-enqueue', array($this, 'print_templates'));
}
示例3: array
function __construct()
{
$block_options = array('name' => 'Progress Bars', 'size' => 'span6');
//create the widget
parent::__construct('AQ_Progress_Block', $block_options);
//add ajax functions
add_action('wp_ajax_aq_block_bar_add_new', array($this, 'add_bar'));
}
示例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('image' => 'icon_box.png', 'name' => 'Icon Box', 'size' => 'span6', 'home' => 'homePage', 'tab' => 'Content', 'imagedesc' => 'iconbox.jpg', 'desc' => 'Displays the selected icons with titles and text below them.');
//create the widget
parent::__construct('CR_Icon_Box', $block_options);
//add ajax functions
add_action('wp_ajax_aq_block_feature_add_new', array($this, 'add_tab'));
}