public function __construct() { parent::__construct(array('name' => __('Stylesheet', 'fl-builder'), 'description' => __('Register a enqueue a stylesheet', 'fl-builder'), 'category' => BB_THEME_ELEMENTS_MODULE_CATEGORY, 'dir' => BB_THEME_ELEMENTS_DIR . 'modules/brj-stylesheet/', 'url' => BB_THEME_ELEMENTS_URL . 'modules/brj-stylesheet/', 'handle' => 'brj-stylesheet', 'label' => __('Stylesheet', 'fl-builder'), 'label_plural' => __('Stylesheets', 'fl-builder'), 'label_field' => 'label', 'accent_color' => 'FF7878')); $this->add_js('ace', 'https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.2/ace.js'); add_action('wp_head', 'BRJ_Stylesheet::print_head'); add_action('brj_theme_elements/generate_css', 'BRJ_Stylesheet::render_css'); }
/** * @method __construct */ public function __construct() { parent::__construct(array('name' => __('Custom Post Type', 'fl-builder'), 'description' => __('Create A Custom Post Type', 'fl-builder'), 'category' => BB_THEME_ELEMENTS_MODULE_CATEGORY, 'dir' => BB_THEME_ELEMENTS_DIR . 'modules/brj-post-type/', 'url' => BB_THEME_ELEMENTS_URL . 'modules/brj-post-type/', 'handle' => 'brj-post-type', 'label' => __('Post Type', 'fl-builder'), 'label_plural' => __('Post Types', 'fl-builder'), 'label_field' => 'label', 'accent_color' => '02A6D0')); $this->add_css('brj-theme-elements-shared'); add_action('brj_theme_elements_render/after_setup_theme', 'BRJ_PostTypeModule::render_php'); add_action('after_setup_theme', 'BRJ_PostTypeModule::register_post_types'); }
public function __construct() { parent::__construct(array('name' => __('Sidebar', 'fl-builder'), 'description' => __('Register a sidebar', 'fl-builder'), 'category' => BB_THEME_ELEMENTS_MODULE_CATEGORY, 'dir' => BB_THEME_ELEMENTS_DIR . 'modules/brj-sidebar/', 'url' => BB_THEME_ELEMENTS_URL . 'modules/brj-sidebar/', 'handle' => 'brj-sidebar', 'label' => __('Sidebar', 'fl-builder'), 'label_plural' => __('Sidebars', 'fl-builder'), 'label_field' => 'label', 'accent_color' => 'A290FF')); $this->add_css('brj-theme-elements-shared'); $this->add_css('font-awesome'); add_action('brj_theme_elements_render/after_setup_theme', 'BRJ_Sidebar::render_php'); add_action('after_setup_theme', 'BRJ_Sidebar::register_sidebars'); }
public function __construct() { parent::__construct(array('name' => __('Nav Menu Location', 'fl-builder'), 'description' => __('Register a nav menu location', 'fl-builder'), 'category' => BB_THEME_ELEMENTS_MODULE_CATEGORY, 'dir' => BB_THEME_ELEMENTS_DIR . 'modules/brj-nav-menu-location/', 'url' => BB_THEME_ELEMENTS_URL . 'modules/brj-nav-menu-location/', 'handle' => 'brj-nav-menu-location', 'label' => __('Menu Location', 'fl-builder'), 'label_plural' => __('Menu Locations', 'fl-builder'), 'label_field' => 'label', 'accent_color' => 'D0027C')); $this->add_css('brj-theme-elements-shared'); $this->add_css('font-awesome'); add_action('brj_theme_elements_render/after_setup_theme', 'BRJ_NavMenuLocation::render_php'); add_action('after_setup_theme', 'BRJ_NavMenuLocation::register_nav_menus'); }
/** * @method __construct */ public function __construct() { parent::__construct(array('name' => __('Custom Image Size', 'fl-builder'), 'description' => __('Create A Custom Image Size', 'fl-builder'), 'category' => BB_THEME_ELEMENTS_MODULE_CATEGORY, 'dir' => BB_THEME_ELEMENTS_DIR . 'modules/brj-image-size/', 'url' => BB_THEME_ELEMENTS_URL . 'modules/brj-image-size/', 'handle' => 'brj-image-size', 'label' => __('Image Size', 'fl-builder'), 'label_plural' => __('Image Sizes', 'fl-builder'), 'label_field' => 'name', 'accent_color' => '02D07F')); $this->add_css('brj-theme-elements-shared'); add_action('after_setup_theme', 'BRJ_ImageSizeModule::setup_sizes'); add_filter('image_size_names_choose', 'BRJ_ImageSizeModule::filter_sizes'); // Generator Actions add_action('brj_theme_elements_render/after_setup_theme', 'BRJ_ImageSizeModule::render_php'); add_action('brj_theme_elements_render_filters', 'BRJ_ImageSizeModule::render_image_names_filter'); }
/** * @method __construct */ public function __construct() { parent::__construct(array('name' => __('Color Sample', 'fl-builder'), 'description' => __('Render a color sample block', 'fl-builder'), 'category' => BB_THEME_ELEMENTS_MODULE_CATEGORY, 'dir' => BB_THEME_ELEMENTS_DIR . 'modules/color-sample/', 'url' => BB_THEME_ELEMENTS_URL . 'modules/color-sample/')); }
<?php $accent_color = BRJ_WorkspaceModule::get_accent_color('brj-stylesheet'); ?> .fl-node-<?php echo $id; ?> .fl-module-content { border-top: 5px solid #<?php echo $accent_color; ?> ; } .fl-node-<?php echo $id; ?> .theme-element-module { border-top:none; } .fl-node-<?php echo $id; ?> .accent-color { color: #<?php echo $accent_color; ?> ; }
<?php $accent_color = BRJ_WorkspaceModule::get_accent_color('brj-nav-menu-location'); ?> .fl-node-<?php echo $id; ?> .fl-module-content { border-top: 5px solid #<?php echo $accent_color; ?> ; } .fl-node-<?php echo $id; ?> .theme-element-module { border-top:none; } .fl-node-<?php echo $id; ?> .accent-color { color: #<?php echo $accent_color; ?> ; }
?> %; } .fl-node-<?php echo $id; ?> .image-size .image-size-inner { position: absolute; bottom:0px; left:0px; right:0px; } <?php } $accent_color = BRJ_WorkspaceModule::get_accent_color('brj-image-size'); ?> .fl-node-<?php echo $id; ?> .fl-module-content { border-top: 5px solid #<?php echo $accent_color; ?> ; } .fl-node-<?php echo $id; ?> .theme-element-module { border-top:none;