本文整理汇总了PHP中FLBuilderModule::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP FLBuilderModule::__construct方法的具体用法?PHP FLBuilderModule::__construct怎么用?PHP FLBuilderModule::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FLBuilderModule
的用法示例。
在下文中一共展示了FLBuilderModule::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Zoom on photo', 'bbzoom'), 'description' => __('Add Zoom effect on picture.', 'bbzoom'), 'category' => __('Advanced Modules', 'bbzoom'), 'dir' => TP_BB_ZOOM_DIR . 'tpbbzoom/', 'url' => TP_BB_ZOOM_URL . 'tpbbzoom/'));
$this->add_js('bb-zoom', $this->url . 'assets/js/jquery.zoom.min.js', array('jquery'), null, null);
$this->add_css('bb-zoom', $this->url . 'assets/css/style.css');
//$this->add_js( 'bb-zoom-script', $this->url .'assets/js/script.js', array('bb-zoom'), null, null );
}
示例2: __construct
/**
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Slideshow', 'fl-builder'), 'description' => __('Display multiple photos in a slideshow view.', 'fl-builder'), 'category' => __('Advanced Modules', 'fl-builder'), 'editor_export' => false));
$this->add_js('yui3');
$this->add_js('fl-slideshow');
$this->add_css('fl-slideshow');
}
示例3: __construct
/**
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Testimonials', 'fl-builder'), 'description' => __('An animated tesimonials area.', 'fl-builder'), 'category' => __('Advanced Modules', 'fl-builder')));
$this->add_css('jquery-bxslider');
$this->add_css('font-awesome');
$this->add_js('jquery-bxslider');
}
示例4: __construct
public function __construct()
{
parent::__construct(array('name' => __('Blocks to Accordion', 'fl-builder'), 'description' => __('Blocks that turn to accordions for mobile', 'fl-builder'), 'category' => __('Advanced Modules', 'fl-builder'), 'dir' => plugin_dir_path(__FILE__), 'url' => plugins_url('/', __FILE__)));
// Already registered
$this->add_js('jquery-ui-accordion');
// Register
$this->add_js('ssm', $this->url . 'js/ssm.min.js', array(), '', true);
}
示例5: __construct
/**
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Gallery', 'fl-builder'), 'description' => __('Display multiple photos in a gallery view.', 'fl-builder'), 'category' => __('Advanced Modules', 'fl-builder'), 'editor_export' => false, 'partial_refresh' => true));
$this->add_js('jquery-wookmark');
$this->add_js('jquery-mosaicflow');
$this->add_js('jquery-magnificpopup');
$this->add_css('jquery-magnificpopup');
}
示例6: __construct
/**
* Constructor function for the module. You must pass the
* name, description, dir, url and enabled in an array to the parent class.
*
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Map', 'fl-builder'), 'description' => __('Google Map', 'fl-builder'), 'category' => __('Advanced Modules', 'fl-builder'), 'dir' => TESSERACT_BB_MODULE_DIR . 'map/', 'url' => TESSERACT_BB_MODULE_URL . 'map/', 'enabled' => true));
if (!defined('GOOGLE_MAPS_API_KEY')) {
define('GOOGLE_MAPS_API_KEY', 'AIzaSyDdg6IMS4WeWJRORd0wU_gcE-kFOUKt4zE');
}
$this->add_js('google-maps-javascript-api', 'https://maps.googleapis.com/maps/api/js?key=' . GOOGLE_MAPS_API_KEY, array('jquery'), '3.0', true);
}
示例7: __construct
public function __construct($args)
{
parent::__construct($args);
$this->accent_color = $args['accent_color'];
self::register_workspace_module($args);
$this->add_css('brj-theme-elements-shared');
add_action('wp', array($this, 'set_enabled'));
add_filter('brj-workspace/filter-module-fields', 'BRJ_WorkspaceModule::filter_module_form', 10, 2);
}
示例8: __construct
/**
* Constructor function for the module. You must pass the
* name, description, dir and url in an array to the parent class.
*
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Simple Posts', 'fl-simple-posts'), 'description' => __('A plugin to list posts with a certain template.', 'fl-simple-posts'), 'category' => __('Advanced Modules', 'fl-simple-posts'), 'dir' => FL_SIMPLE_POSTS_DIR . 'simple-posts/', 'url' => FL_SIMPLE_POSTS_URL . 'simple-posts/', 'editor_export' => true, 'enabled' => true, 'partial_refresh' => true));
/**
* Use these methods to enqueue css and js already
* registered or to register and enqueue your own.
*/
$this->add_js('masonry', $this->url . 'js/masonry.min.js', array(), '', true);
}
示例9: __construct
public function __construct()
{
parent::__construct(array('name' => __('Frequently Asked Questions', 'fl-builder'), 'description' => __('Add your FAQs to any page or post!', 'fl-builder'), 'category' => __('Advanced Modules', 'fl-builder'), 'dir' => plugin_dir_path(__FILE__), 'url' => plugins_url('/', __FILE__), 'editor_export' => TRUE, 'enabled' => true));
/**
* This was left in to serve as a reminder. Beaver Builder automatically enqueues
* the /js/frontend.js and css/frontend.css files, so there is no reason to add this at all.
*/
#$this->add_css( 'faq-module', $this->url . 'css/frontend.css' );
#$this->add_js( 'faq-module', $this->url .'js/frontend.js', array( 'jquery' ), '', TRUE );
}
示例10: __construct
/**
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Heading', 'fl-builder'), 'description' => __('Display a title/page heading.', 'fl-builder'), 'category' => __('Basic Modules', 'fl-builder'), 'partial_refresh' => true));
}
示例11: __construct
/**
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Widget', 'fl-builder'), 'description' => __('Display a WordPress widget.', 'fl-builder'), 'category' => __('WordPress Widgets', 'fl-builder'), 'editor_export' => false));
}
示例12: __construct
/**
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Video', 'fl-builder'), 'description' => __('Render a WordPress or embedable video.', 'fl-builder'), 'category' => __('Basic Modules', 'fl-builder'), 'partial_refresh' => true));
$this->add_js('jquery-fitvids');
}
示例13: __construct
/**
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Pricing Table', 'fl-builder'), 'description' => __('A simple pricing table generator.', 'fl-builder'), 'category' => __('Advanced Modules', 'fl-builder')));
}
示例14: __construct
/**
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Posts Slider', 'fl-builder'), 'description' => __('Display a slider of your WordPress posts.', 'fl-builder'), 'category' => __('Advanced Modules', 'fl-builder'), 'editor_export' => false, 'partial_refresh' => true));
$this->add_css('jquery-bxslider');
$this->add_js('jquery-bxslider');
}
示例15: __construct
/**
* Constructor function for the module. You must pass the
* name, description, dir and url in an array to the parent class.
*
* @method __construct
*/
public function __construct()
{
parent::__construct(array('name' => __('Shade', 'fl-builder'), 'description' => __('Throw some custom shade.', 'fl-builder'), 'category' => __('CB Custom Modules', 'fl-builder'), 'dir' => CB_CUSTOM_MODULE_DIR . 'cb-shade/', 'url' => CB_CUSTOM_MODULE_URL . 'cb-shade/', 'editor_export' => true, 'enabled' => true, 'partial_refresh' => true));
}