Plugin Directory

Changeset 2945063


Ignore:
Timestamp:
07/30/2023 10:52:51 AM (2 years ago)
Author:
srikat
Message:

v1.0.1

Location:
brickslabs-bricks-navigator
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • brickslabs-bricks-navigator/trunk/brickslabs-bricks-navigator.php

    r2732970 r2945063  
    77 *  Description: Adds quick links in the WordPress admin bar for users of Bricks theme.
    88 *  Text Domain: brickslabs-bricks-navigator
    9  *  Version: 1.0.0
     9 *  Version: 1.0.1
    1010*/
    1111
     
    1515}
    1616
    17 define( 'BRICKS_NAVIGATOR_VERSION', '1.0.0' );
     17if ( ! defined( 'BRICKSLABS_BRICKS_NAVIGATOR_VERSION' ) ) {
     18    define( 'BRICKSLABS_BRICKS_NAVIGATOR_VERSION', '1.0.1' );
     19}
     20
     21if ( ! defined( 'BRICKSLABS_BRICKS_NAVIGATOR_BASE' ) ) {
     22    define( 'BRICKSLABS_BRICKS_NAVIGATOR_BASE', plugin_basename( __FILE__ ) );
     23}
    1824
    1925//======================================================================
     
    2733 * @link https://www.isitwp.com/display-theme-information-with-get_theme_data/
    2834 */
    29 function brickslabs_bricks_navigator_user_can_use_bricks_builder() {
     35function brickslabs_bricks_navigator_user_can_use_bricks_builder(): bool {
    3036    $parent_theme = wp_get_theme( get_template() );
    3137
     
    4248 * Load custom CSS both in the WP admin and on front end.
    4349 */
    44 function brickslabs_bricks_navigator_css() {
     50function brickslabs_bricks_navigator_css(): void {
    4551    if ( ! is_admin_bar_showing() || ! brickslabs_bricks_navigator_user_can_use_bricks_builder() ) {
    4652        return;
     
    4854
    4955    if ( is_admin_bar_showing() ) {
    50         wp_enqueue_style( 'brickslabs_bricks_navigator_style', plugin_dir_url( __FILE__ ) . 'assets/css/style.css', array(), BRICKS_NAVIGATOR_VERSION );
     56        wp_enqueue_style( 'brickslabs_bricks_navigator_style', plugin_dir_url( __FILE__ ) . 'assets/css/style.css', [], BRICKSLABS_BRICKS_NAVIGATOR_VERSION );
    5157    }
    5258}
     
    6268 * @param WP_Admin_Bar $wp_admin_bar Admin bar instance.
    6369 */
    64 function brickslabs_bricks_navigator_bricks( $wp_admin_bar ) {
     70function brickslabs_bricks_navigator_bricks(WP_Admin_Bar $wp_admin_bar ): void {
    6571    if ( ! is_admin_bar_showing() || ! brickslabs_bricks_navigator_user_can_use_bricks_builder() ) {
    6672        return;
    6773    }
    6874
    69     $is_bricks_enabled = isset( $options['bricks'] ) ? $options['bricks'] : false;
     75    $is_bricks_enabled = $options['bricks'] ?? false;
    7076
    7177    $iconhtml = sprintf( '<img src="%s" style="width: 16px; height: 16px; padding-right: 6px;" />', plugin_dir_url( __FILE__ ) . 'assets/images/bricks-logo.png' );
    7278
    7379    $wp_admin_bar->add_node(
    74         array(
     80        [
    7581            'id'    => 'bn-bricks',
    7682            'title' => $iconhtml . __( 'Bricks', 'bricks-navigator' ),
    7783            'href'  => admin_url( 'themes.php?page=bricks' ),
    78         )
     84        ]
    7985    );
    8086
     
    8389
    8490    // Community
    85     require_once 'inc/community.php';
     91    if ( ! get_option( 'brickslabs_bricks_navigator_hide_community_menu' ) ) {
     92        require_once 'inc/community.php';
     93    }
    8694
    8795    // 3rd party plugins
    88     require_once 'inc/thirdpartyplugins.php';
     96    if ( ! get_option( 'brickslabs_bricks_navigator_hide_thirdparty_plugins' ) ) {
     97        require_once 'inc/thirdpartyplugins.php';
     98    }
    8999}
     100
     101// Settings page
     102require_once 'inc/settings.php';
     103
     104// If brickslabs_bricks_navigator_show_in_editor option is checked, show the admin bar in Bricks editor.
     105if ( get_option( 'brickslabs_bricks_navigator_show_in_editor' ) ) {
     106    require_once 'inc/show-admin-bar-in-editor.php';
     107}
     108
     109// Add settings link in the plugin list page
     110add_filter( 'plugin_action_links_' . BRICKSLABS_BRICKS_NAVIGATOR_BASE, function( $links ) {
     111    $url = esc_url(
     112        add_query_arg(
     113            'page',
     114            'brickslabs-bricks-navigator',
     115            get_admin_url() . 'admin.php'
     116        )
     117    );
     118
     119    // Create the link
     120    $settings_link = "<a href='$url'>" . __( 'Settings' ) . '</a>';
     121
     122    // Adds the link to the beginning of the array
     123    array_unshift(
     124        $links,
     125        $settings_link
     126    );
     127
     128    return $links;
     129} );
  • brickslabs-bricks-navigator/trunk/inc/bricks.php

    r2732970 r2945063  
    208208
    209209    // WooCommerce
    210     $wp_admin_bar->add_node(
    211         array(
    212             'id'    => 'bn-bricks-settings-woocommerce',
    213             'title' => __( 'WooCommerce', 'bricks-navigator' ),
    214             'parent' => 'bn-bricks-settings',
    215             'href'  => admin_url( 'admin.php?page=bricks-settings#tab-woocommerce' ),
    216             'meta'  => array(
    217                 // 'title' => __( 'Bricks Settings → WooCommerce', 'bricks-navigator' ),
    218                 'class' => 'bn-parent-of-mini-child'
    219             ),
    220         )
    221     );
    222     // WooCommerce - new tab
    223     $wp_admin_bar->add_node(
    224         array(
    225             'id'    => 'bn-bricks-settings-woocommerce-new-tab',
    226             'parent' => 'bn-bricks-settings-woocommerce',
    227             'href'  => admin_url( 'admin.php?page=bricks-settings#tab-woocommerce' ),
    228             'meta'  => array(
    229                 'title' => __( 'Bricks Settings → WooCommerce in a new tab', 'bricks-navigator' ),
    230                 'target' => '_blank',
    231                 'class'  => 'bn-mini-child bn-mini-child-new-tab',
    232             ),
    233         )
    234     );
     210    if ( class_exists( 'WooCommerce' ) ) {
     211        $wp_admin_bar->add_node(
     212            array(
     213                'id'    => 'bn-bricks-settings-woocommerce',
     214                'title' => __( 'WooCommerce', 'bricks-navigator' ),
     215                'parent' => 'bn-bricks-settings',
     216                'href'  => admin_url( 'admin.php?page=bricks-settings#tab-woocommerce' ),
     217                'meta'  => array(
     218                    // 'title' => __( 'Bricks Settings → WooCommerce', 'bricks-navigator' ),
     219                    'class' => 'bn-parent-of-mini-child'
     220                ),
     221            )
     222        );
     223        // WooCommerce - new tab
     224        $wp_admin_bar->add_node(
     225            array(
     226                'id'    => 'bn-bricks-settings-woocommerce-new-tab',
     227                'parent' => 'bn-bricks-settings-woocommerce',
     228                'href'  => admin_url( 'admin.php?page=bricks-settings#tab-woocommerce' ),
     229                'meta'  => array(
     230                    'title' => __( 'Bricks Settings → WooCommerce in a new tab', 'bricks-navigator' ),
     231                    'target' => '_blank',
     232                    'class'  => 'bn-mini-child bn-mini-child-new-tab',
     233                ),
     234            )
     235        );
     236    }
    235237
    236238   
     
    268270    require_once 'pages-edit.php';
    269271
    270 // Getting Started.
    271 $wp_admin_bar->add_node(
    272     array(
    273         'id'    => 'bn-bricks-dashboard',
    274         'title' => __( 'Getting Started', 'bricks-navigator' ),
    275         'parent' => 'bn-bricks',
    276         'href'  => admin_url( 'themes.php?page=bricks' ),
    277         'meta'  => array(
    278             // 'title' => __( 'Bricks Dashboard', 'bricks-navigator' ),
    279             'class' => 'bn-parent-of-mini-child bn-has-top-border'
    280         ),
    281     )
    282 );
    283     // Getting Started - new tab.
    284     $wp_admin_bar->add_node(
    285         array(
    286             'id'    => 'bn-bricks-dashboard-new-tab',
    287             'parent' => 'bn-bricks-dashboard',
     272if ( ! get_option( 'brickslabs_bricks_navigator_hide_bricks_internal' ) ) {
     273    // Getting Started.
     274    $wp_admin_bar->add_node(
     275        array(
     276            'id'    => 'bn-bricks-dashboard',
     277            'title' => __( 'Getting Started', 'bricks-navigator' ),
     278            'parent' => 'bn-bricks',
    288279            'href'  => admin_url( 'themes.php?page=bricks' ),
    289280            'meta'  => array(
    290                 'title' => __( 'Getting Started in a new tab', 'bricks-navigator' ),
    291                 'target' => '_blank',
    292                 'class'  => 'bn-mini-child bn-mini-child-new-tab',
    293             ),
    294         )
    295     );
    296 
    297 // Custom Fonts
    298 $wp_admin_bar->add_node(
    299     array(
    300         'id'    => 'bn-bricks-settings-custom-fonts',
    301         'title' => __( 'Custom Fonts', 'bricks-navigator' ),
    302         'parent' => 'bn-bricks',
    303         'href'  => admin_url( 'edit.php?post_type=bricks_fonts' ),
    304         'meta'  => array(
    305             // 'title' => __( 'Bricks Settings → Custom Fonts', 'bricks-navigator' ),
    306             'class' => 'bn-parent-of-mini-child'
    307         ),
    308     )
    309 );
    310     // Custom Fonts - new tab
    311     $wp_admin_bar->add_node(
    312         array(
    313             'id'    => 'bn-bricks-settings-custom-fonts-new-tab',
    314             'parent' => 'bn-bricks-settings-custom-fonts',
     281                // 'title' => __( 'Bricks Dashboard', 'bricks-navigator' ),
     282                'class' => 'bn-parent-of-mini-child bn-has-top-border'
     283            ),
     284        )
     285    );
     286        // Getting Started - new tab.
     287        $wp_admin_bar->add_node(
     288            array(
     289                'id'    => 'bn-bricks-dashboard-new-tab',
     290                'parent' => 'bn-bricks-dashboard',
     291                'href'  => admin_url( 'themes.php?page=bricks' ),
     292                'meta'  => array(
     293                    'title' => __( 'Getting Started in a new tab', 'bricks-navigator' ),
     294                    'target' => '_blank',
     295                    'class'  => 'bn-mini-child bn-mini-child-new-tab',
     296                ),
     297            )
     298        );
     299
     300    // Custom Fonts
     301    $wp_admin_bar->add_node(
     302        array(
     303            'id'    => 'bn-bricks-settings-custom-fonts',
     304            'title' => __( 'Custom Fonts', 'bricks-navigator' ),
     305            'parent' => 'bn-bricks',
    315306            'href'  => admin_url( 'edit.php?post_type=bricks_fonts' ),
    316307            'meta'  => array(
    317                 'title' => __( 'Bricks Settings → Custom Fonts in a new tab', 'bricks-navigator' ),
    318                 'target' => '_blank',
    319                 'class'  => 'bn-mini-child bn-mini-child-new-tab',
    320             ),
    321         )
    322     );
    323 
    324 // Sidebars
    325 $wp_admin_bar->add_node(
    326     array(
    327         'id'    => 'bn-bricks-settings-sidebars',
    328         'title' => __( 'Sidebars', 'bricks-navigator' ),
    329         'parent' => 'bn-bricks',
    330         'href'  => admin_url( 'admin.php?page=bricks-sidebars' ),
    331         'meta'  => array(
    332             // 'title' => __( 'Bricks Settings → Sidebars', 'bricks-navigator' ),
    333             'class' => 'bn-parent-of-mini-child'
    334         ),
    335     )
    336 );
    337     // Sidebars - new tab
    338     $wp_admin_bar->add_node(
    339         array(
    340             'id'    => 'bn-bricks-settings-sidebars-new-tab',
    341             'parent' => 'bn-bricks-settings-sidebars',
     308                // 'title' => __( 'Bricks Settings → Custom Fonts', 'bricks-navigator' ),
     309                'class' => 'bn-parent-of-mini-child'
     310            ),
     311        )
     312    );
     313        // Custom Fonts - new tab
     314        $wp_admin_bar->add_node(
     315            array(
     316                'id'    => 'bn-bricks-settings-custom-fonts-new-tab',
     317                'parent' => 'bn-bricks-settings-custom-fonts',
     318                'href'  => admin_url( 'edit.php?post_type=bricks_fonts' ),
     319                'meta'  => array(
     320                    'title' => __( 'Bricks Settings → Custom Fonts in a new tab', 'bricks-navigator' ),
     321                    'target' => '_blank',
     322                    'class'  => 'bn-mini-child bn-mini-child-new-tab',
     323                ),
     324            )
     325        );
     326
     327    // Sidebars
     328    $wp_admin_bar->add_node(
     329        array(
     330            'id'    => 'bn-bricks-settings-sidebars',
     331            'title' => __( 'Sidebars', 'bricks-navigator' ),
     332            'parent' => 'bn-bricks',
    342333            'href'  => admin_url( 'admin.php?page=bricks-sidebars' ),
    343334            'meta'  => array(
    344                 'title' => __( 'Bricks Settings → Sidebars in a new tab', 'bricks-navigator' ),
    345                 'target' => '_blank',
    346                 'class'  => 'bn-mini-child bn-mini-child-new-tab',
    347             ),
    348         )
    349     );
    350 
    351 // System Information
    352 $wp_admin_bar->add_node(
    353     array(
    354         'id'    => 'bn-bricks-settings-system-info',
    355         'title' => __( 'System Information', 'bricks-navigator' ),
    356         'parent' => 'bn-bricks',
    357         'href'  => admin_url( 'admin.php?page=bricks-system-information' ),
    358         'meta'  => array(
    359             // 'title' => __( 'Bricks Settings → System Information', 'bricks-navigator' ),
    360             'class' => 'bn-parent-of-mini-child'
    361         ),
    362     )
    363 );
    364     // System Information - new-tab
    365     $wp_admin_bar->add_node(
    366         array(
    367             'id'    => 'bn-bricks-settings-system-info-new-tab',
    368             'parent' => 'bn-bricks-settings-system-info',
     335                // 'title' => __( 'Bricks Settings → Sidebars', 'bricks-navigator' ),
     336                'class' => 'bn-parent-of-mini-child'
     337            ),
     338        )
     339    );
     340        // Sidebars - new tab
     341        $wp_admin_bar->add_node(
     342            array(
     343                'id'    => 'bn-bricks-settings-sidebars-new-tab',
     344                'parent' => 'bn-bricks-settings-sidebars',
     345                'href'  => admin_url( 'admin.php?page=bricks-sidebars' ),
     346                'meta'  => array(
     347                    'title' => __( 'Bricks Settings → Sidebars in a new tab', 'bricks-navigator' ),
     348                    'target' => '_blank',
     349                    'class'  => 'bn-mini-child bn-mini-child-new-tab',
     350                ),
     351            )
     352        );
     353
     354    // System Information
     355    $wp_admin_bar->add_node(
     356        array(
     357            'id'    => 'bn-bricks-settings-system-info',
     358            'title' => __( 'System Information', 'bricks-navigator' ),
     359            'parent' => 'bn-bricks',
    369360            'href'  => admin_url( 'admin.php?page=bricks-system-information' ),
    370361            'meta'  => array(
    371                 'title' => __( 'Bricks Settings → System Information in a new tab', 'bricks-navigator' ),
    372                 'target' => '_blank',
    373                 'class'  => 'bn-mini-child bn-mini-child-new-tab',
    374             ),
    375         )
    376     );
    377 
    378 // License
    379 $wp_admin_bar->add_node(
    380     array(
    381         'id'    => 'bn-bricks-settings-license',
    382         'title' => __( 'License', 'bricks-navigator' ),
    383         'parent' => 'bn-bricks',
    384         'href'  => admin_url( 'admin.php?page=bricks-license' ),
    385         'meta'  => array(
    386             // 'title' => __( 'Bricks Settings → License', 'bricks-navigator' ),
    387             'class' => 'bn-parent-of-mini-child'
    388         ),
    389     )
    390 );
    391     // License - new tab
    392     $wp_admin_bar->add_node(
    393         array(
    394             'id'    => 'bn-bricks-settings-license-new-tab',
    395             'parent' => 'bn-bricks-settings-license',
     362                // 'title' => __( 'Bricks Settings → System Information', 'bricks-navigator' ),
     363                'class' => 'bn-parent-of-mini-child'
     364            ),
     365        )
     366    );
     367        // System Information - new-tab
     368        $wp_admin_bar->add_node(
     369            array(
     370                'id'    => 'bn-bricks-settings-system-info-new-tab',
     371                'parent' => 'bn-bricks-settings-system-info',
     372                'href'  => admin_url( 'admin.php?page=bricks-system-information' ),
     373                'meta'  => array(
     374                    'title' => __( 'Bricks Settings → System Information in a new tab', 'bricks-navigator' ),
     375                    'target' => '_blank',
     376                    'class'  => 'bn-mini-child bn-mini-child-new-tab',
     377                ),
     378            )
     379        );
     380
     381    // License
     382    $wp_admin_bar->add_node(
     383        array(
     384            'id'    => 'bn-bricks-settings-license',
     385            'title' => __( 'License', 'bricks-navigator' ),
     386            'parent' => 'bn-bricks',
    396387            'href'  => admin_url( 'admin.php?page=bricks-license' ),
    397388            'meta'  => array(
    398                 'title' => __( 'Bricks Settings → License in a new tab', 'bricks-navigator' ),
    399                 'target' => '_blank',
    400                 'class'  => 'bn-mini-child bn-mini-child-new-tab',
    401             ),
    402         )
    403     );
    404 
    405 // Idea Board.
    406 $wp_admin_bar->add_node(
    407     array(
    408         'id'    => 'bn-bricks-idea-board',
    409         'title' => __( 'Idea Board', 'bricks-navigator' ),
    410         'parent' => 'bn-bricks',
    411         'href'  => 'https://bricksbuilder.io/ideas/',
    412         'meta'  => array(
    413             // 'title' => __( 'Idea Board', 'bricks-navigator' ),
    414             'target' => '_blank',
    415             'class' => 'bn-has-top-border'
    416         ),
    417     )
    418 );
    419 
    420 // Roadmap.
    421 $wp_admin_bar->add_node(
    422     array(
    423         'id'    => 'bn-bricks-roadmap',
    424         'title' => __( 'Roadmap', 'bricks-navigator' ),
    425         'parent' => 'bn-bricks',
    426         'href'  => 'https://bricksbuilder.io/roadmap/',
    427         'meta'  => array(
    428             // 'title' => __( 'Roadmap', 'bricks-navigator' ),
    429             'target' => '_blank',
    430         ),
    431     )
    432 );
    433 
    434 // Changelog.
    435 $wp_admin_bar->add_node(
    436     array(
    437         'id'    => 'bn-bricks-changelog',
    438         'title' => __( 'Changelog', 'bricks-navigator' ),
    439         'parent' => 'bn-bricks',
    440         'href'  => 'https://bricksbuilder.io/changelog/',
    441         'meta'  => array(
    442             // 'title' => __( 'Changelog', 'bricks-navigator' ),
    443             'target' => '_blank',
    444         ),
    445     )
    446 );
    447 
    448 // Academy.
    449 $wp_admin_bar->add_node(
    450     array(
    451         'id'    => 'bn-bricks-academy',
    452         'title' => __( 'Academy', 'bricks-navigator' ),
    453         'parent' => 'bn-bricks',
    454         'href'  => 'https://academy.bricksbuilder.io/',
    455         'meta'  => array(
    456             // 'title' => __( 'Bricks Academy (Documentation)', 'bricks-navigator' ),
    457             'target' => '_blank',
    458         ),
    459     )
    460 );
    461 
    462 // Forum.
    463 $wp_admin_bar->add_node(
    464     array(
    465         'id'    => 'bn-bricks-forum',
    466         'title' => __( 'Forum', 'bricks-navigator' ),
    467         'parent' => 'bn-bricks',
    468         'href'  => 'https://forum.bricksbuilder.io/',
    469         'meta'  => array(
    470             // 'title' => __( 'Bricks Forum', 'bricks-navigator' ),
    471             'target' => '_blank',
    472         ),
    473     )
    474 );
    475 
    476 // Facebook Group.
    477 $wp_admin_bar->add_node(
    478     array(
    479         'id'    => 'bn-bricks-facebook-group',
    480         'title' => __( 'Facebook Group', 'bricks-navigator' ),
    481         'parent' => 'bn-bricks',
    482         'href'  => 'https://www.facebook.com/groups/brickscommunity',
    483         'meta'  => array(
    484             // 'title' => __( 'Bricks Facebook Group', 'bricks-navigator' ),
    485             'target' => '_blank',
    486         ),
    487     )
    488 );
    489 
    490 // YouTube Channel.
    491 $wp_admin_bar->add_node(
    492     array(
    493         'id'    => 'bn-bricks-youtube',
    494         'title' => __( 'YouTube Channel', 'bricks-navigator' ),
    495         'parent' => 'bn-bricks',
    496         'href'  => 'https://www.youtube.com/c/bricksbuilder/videos',
    497         'meta'  => array(
    498             // 'title' => __( 'Bricks YouTube', 'bricks-navigator' ),
    499             'target' => '_blank',
    500         ),
    501     )
    502 );
     389                // 'title' => __( 'Bricks Settings → License', 'bricks-navigator' ),
     390                'class' => 'bn-parent-of-mini-child'
     391            ),
     392        )
     393    );
     394        // License - new tab
     395        $wp_admin_bar->add_node(
     396            array(
     397                'id'    => 'bn-bricks-settings-license-new-tab',
     398                'parent' => 'bn-bricks-settings-license',
     399                'href'  => admin_url( 'admin.php?page=bricks-license' ),
     400                'meta'  => array(
     401                    'title' => __( 'Bricks Settings → License in a new tab', 'bricks-navigator' ),
     402                    'target' => '_blank',
     403                    'class'  => 'bn-mini-child bn-mini-child-new-tab',
     404                ),
     405            )
     406        );
     407}
     408
     409if ( ! get_option( 'brickslabs_bricks_navigator_hide_bricks_external' ) ) {
     410    // Idea Board.
     411    $wp_admin_bar->add_node(
     412        array(
     413            'id'    => 'bn-bricks-idea-board',
     414            'title' => __( 'Idea Board', 'bricks-navigator' ),
     415            'parent' => 'bn-bricks',
     416            'href'  => 'https://bricksbuilder.io/ideas/',
     417            'meta'  => array(
     418                // 'title' => __( 'Idea Board', 'bricks-navigator' ),
     419                'target' => '_blank',
     420                'class' => 'bn-has-top-border'
     421            ),
     422        )
     423    );
     424
     425    // Roadmap.
     426    $wp_admin_bar->add_node(
     427        array(
     428            'id'    => 'bn-bricks-roadmap',
     429            'title' => __( 'Roadmap', 'bricks-navigator' ),
     430            'parent' => 'bn-bricks',
     431            'href'  => 'https://bricksbuilder.io/roadmap/',
     432            'meta'  => array(
     433                // 'title' => __( 'Roadmap', 'bricks-navigator' ),
     434                'target' => '_blank',
     435            ),
     436        )
     437    );
     438
     439    // Changelog.
     440    $wp_admin_bar->add_node(
     441        array(
     442            'id'    => 'bn-bricks-changelog',
     443            'title' => __( 'Changelog', 'bricks-navigator' ),
     444            'parent' => 'bn-bricks',
     445            'href'  => 'https://bricksbuilder.io/changelog/',
     446            'meta'  => array(
     447                // 'title' => __( 'Changelog', 'bricks-navigator' ),
     448                'target' => '_blank',
     449            ),
     450        )
     451    );
     452
     453    // Academy.
     454    $wp_admin_bar->add_node(
     455        array(
     456            'id'    => 'bn-bricks-academy',
     457            'title' => __( 'Academy', 'bricks-navigator' ),
     458            'parent' => 'bn-bricks',
     459            'href'  => 'https://academy.bricksbuilder.io/',
     460            'meta'  => array(
     461                // 'title' => __( 'Bricks Academy (Documentation)', 'bricks-navigator' ),
     462                'target' => '_blank',
     463            ),
     464        )
     465    );
     466
     467    // Forum.
     468    $wp_admin_bar->add_node(
     469        array(
     470            'id'    => 'bn-bricks-forum',
     471            'title' => __( 'Forum', 'bricks-navigator' ),
     472            'parent' => 'bn-bricks',
     473            'href'  => 'https://forum.bricksbuilder.io/',
     474            'meta'  => array(
     475                // 'title' => __( 'Bricks Forum', 'bricks-navigator' ),
     476                'target' => '_blank',
     477            ),
     478        )
     479    );
     480
     481    // Facebook Group.
     482    $wp_admin_bar->add_node(
     483        array(
     484            'id'    => 'bn-bricks-facebook-group',
     485            'title' => __( 'Facebook Group', 'bricks-navigator' ),
     486            'parent' => 'bn-bricks',
     487            'href'  => 'https://www.facebook.com/groups/brickscommunity',
     488            'meta'  => array(
     489                // 'title' => __( 'Bricks Facebook Group', 'bricks-navigator' ),
     490                'target' => '_blank',
     491            ),
     492        )
     493    );
     494
     495    // YouTube Channel.
     496    $wp_admin_bar->add_node(
     497        array(
     498            'id'    => 'bn-bricks-youtube',
     499            'title' => __( 'YouTube Channel', 'bricks-navigator' ),
     500            'parent' => 'bn-bricks',
     501            'href'  => 'https://www.youtube.com/c/bricksbuilder/videos',
     502            'meta'  => array(
     503                // 'title' => __( 'Bricks YouTube', 'bricks-navigator' ),
     504                'target' => '_blank',
     505            ),
     506        )
     507    );
     508}
  • brickslabs-bricks-navigator/trunk/inc/community.php

    r2732970 r2945063  
    55}
    66
    7 // Community.
     7// Community
    88$wp_admin_bar->add_node(
    99    array(
     
    1717);
    1818
    19     // Discord Chat.
    20     $wp_admin_bar->add_node(
    21         array(
    22             'id'    => 'bn-bricks-discord',
    23             'title' => __( 'Discord Chat', 'bricks-navigator' ),
    24             'parent' => 'bn-bricks-community',
    25             'href'  => 'https://discord.gg/AyJGAnpSRc',
    26             'meta'  => array(
    27                 // 'title' => __( 'Discord Chat', 'bricks-navigator' ),
    28                 'target' => '_blank',
    29             ),
    30         )
    31     );
    32 
    33     // Reddit.
    34     $wp_admin_bar->add_node(
    35         array(
    36             'id'    => 'bn-bricks-reddit',
    37             'title' => __( 'Reddit', 'bricks-navigator' ),
    38             'parent' => 'bn-bricks-community',
    39             'href'  => 'https://www.reddit.com/r/BricksBuilder/',
    40             'meta'  => array(
    41                 // 'title' => __( 'BricksBuilder Reddit', 'bricks-navigator' ),
    42                 'target' => '_blank',
    43             ),
    44         )
    45     );
    46 
    47     // BricksLabs.
     19    // Advanced Themer
     20    $wp_admin_bar->add_node(
     21        array(
     22            'id'    => 'bn-bricks-advanced-themer',
     23            'title' => __( 'Advanced Themer', 'bricks-navigator' ),
     24            'parent' => 'bn-bricks-community',
     25            'href'  => 'https://advancedthemer.com/',
     26            'meta'  => array(
     27                // 'title' => __( 'my-webcraftdesign.at', 'bricks-navigator' ),
     28                'target' => '_blank',
     29            ),
     30        )
     31    );
     32    // Advanced Themer FB Group
     33    $wp_admin_bar->add_node(
     34        array(
     35            'id'    => 'bn-bricks-advanced-themer-fb-grp',
     36            'title' => __( 'AT Facebook Group', 'bricks-navigator' ),
     37            'parent' => 'bn-bricks-advanced-themer',
     38            'href'  => 'https://www.facebook.com/groups/advancedthemercommunity/',
     39            'meta'  => array(
     40                'target' => '_blank',
     41            ),
     42        )
     43    );
     44
     45    // ACSS
     46    $wp_admin_bar->add_node(
     47        array(
     48            'id'    => 'bn-bricks-acss',
     49            'title' => __( 'Automatic.css (ACSS)', 'bricks-navigator' ),
     50            'parent' => 'bn-bricks-community',
     51            'href'  => 'https://automaticcss.com/',
     52            'meta'  => array(
     53                // 'title' => __( 'Bricksable', 'bricks-navigator' ),
     54                'target' => '_blank',
     55            ),
     56        )
     57    );
     58        // ACSS Cheat Sheet
     59        $wp_admin_bar->add_node(
     60            array(
     61                'id'    => 'bn-bricks-acss-cheat-sheet',
     62                'title' => __( 'ACSS Cheat Sheet', 'bricks-navigator' ),
     63                'parent' => 'bn-bricks-acss',
     64                'href'  => 'https://automaticcss.com/cheat-sheet/',
     65                'meta'  => array(
     66                    'target' => '_blank',
     67                ),
     68            )
     69        );
     70
     71    // BricksExtras
     72    $wp_admin_bar->add_node(
     73        array(
     74            'id'    => 'bn-bricks-bricksextras',
     75            'title' => __( 'BricksExtras', 'bricks-navigator' ),
     76            'parent' => 'bn-bricks-community',
     77            'href'  => 'https://bricksextras.com/',
     78            'meta'  => array(
     79                'target' => '_blank',
     80            ),
     81        )
     82    );
     83   
     84    // Bricks directory
     85    $wp_admin_bar->add_node(
     86        array(
     87            'id'    => 'bn-bricks-bricksdirectory',
     88            'title' => __( 'Bricks directory', 'bricks-navigator' ),
     89            'parent' => 'bn-bricks-community',
     90            'href'  => 'https://bricksdirectory.com/',
     91            'meta'  => array(
     92                'target' => '_blank',
     93            ),
     94        )
     95    );
     96   
     97    // Bricksforge
     98    $wp_admin_bar->add_node(
     99        array(
     100            'id'    => 'bn-bricks-bricksforge',
     101            'title' => __( 'Bricksforge', 'bricks-navigator' ),
     102            'parent' => 'bn-bricks-community',
     103            'href'  => 'https://bricksforge.io/',
     104            'meta'  => array(
     105                'target' => '_blank',
     106            ),
     107        )
     108    );
     109
     110    // BricksLabs
    48111    $wp_admin_bar->add_node(
    49112        array(
     
    59122    );
    60123       
    61         // BricksLabs Facebook Group - new tab.
     124        // BricksLabs Facebook Group
    62125        $wp_admin_bar->add_node(
    63126            array(
     
    72135            )
    73136        );
    74    
    75     // my-webcraftdesign.at.
    76     $wp_admin_bar->add_node(
    77         array(
    78             'id'    => 'bn-bricks-my-webcraftdesign',
    79             'title' => __( 'my-webcraftdesign.at', 'bricks-navigator' ),
    80             'parent' => 'bn-bricks-community',
    81             'href'  => 'https://my-webcraftdesign.at/plugin-theme/bricksbuilder/',
    82             'meta'  => array(
    83                 // 'title' => __( 'my-webcraftdesign.at', 'bricks-navigator' ),
    84                 'target' => '_blank',
    85             ),
    86         )
    87     );
    88    
    89     // Ivan Nugraha.
     137
     138    // Bricks Library
     139    $wp_admin_bar->add_node(
     140        array(
     141            'id'    => 'bn-bricks-bricks-library',
     142            'title' => __( 'Bricks Library', 'bricks-navigator' ),
     143            'parent' => 'bn-bricks-community',
     144            'href'  => 'https://brickslibrary.com/',
     145            'meta'  => array(
     146                'target' => '_blank',
     147            ),
     148        )
     149    );
     150   
     151    // Bricksmaven
     152    $wp_admin_bar->add_node(
     153        array(
     154            'id'    => 'bn-bricks-bricksmaven',
     155            'title' => __( 'Bricksmaven', 'bricks-navigator' ),
     156            'parent' => 'bn-bricks-community',
     157            'href'  => 'https://bricksmaven.com/',
     158            'meta'  => array(
     159                'target' => '_blank',
     160            ),
     161        )
     162    );
     163   
     164    // BricksUltimate
     165    $wp_admin_bar->add_node(
     166        array(
     167            'id'    => 'bn-bricks-bricksultimate',
     168            'title' => __( 'BricksUltimate', 'bricks-navigator' ),
     169            'parent' => 'bn-bricks-community',
     170            'href'  => 'https://bricksultimate.com/',
     171            'meta'  => array(
     172                'target' => '_blank',
     173            ),
     174        )
     175    );
     176   
     177    // Build with Bricks
     178    $wp_admin_bar->add_node(
     179        array(
     180            'id'    => 'bn-bricks-build-with-bricks',
     181            'title' => __( 'Build with Bricks', 'bricks-navigator' ),
     182            'parent' => 'bn-bricks-community',
     183            'href'  => 'https://www.davefoy.com/p/build-with-bricks/',
     184            'meta'  => array(
     185                'target' => '_blank',
     186            ),
     187        )
     188    );
     189   
     190    // Core Framework
     191    $wp_admin_bar->add_node(
     192        array(
     193            'id'    => 'bn-bricks-coreframework',
     194            'title' => __( 'Core Framework', 'bricks-navigator' ),
     195            'parent' => 'bn-bricks-community',
     196            'href'  => 'https://coreframework.com/',
     197            'meta'  => array(
     198                'target' => '_blank',
     199            ),
     200        )
     201    );
     202
     203    // Discord Chat
     204    $wp_admin_bar->add_node(
     205        array(
     206            'id'    => 'bn-bricks-discord',
     207            'title' => __( 'Discord Chat', 'bricks-navigator' ),
     208            'parent' => 'bn-bricks-community',
     209            'href'  => 'https://discord.gg/AyJGAnpSRc',
     210            'meta'  => array(
     211                // 'title' => __( 'Discord Chat', 'bricks-navigator' ),
     212                'target' => '_blank',
     213            ),
     214        )
     215    );
     216   
     217    // Frames
     218    $wp_admin_bar->add_node(
     219        array(
     220            'id'    => 'bn-bricks-frames',
     221            'title' => __( 'Frames', 'bricks-navigator' ),
     222            'parent' => 'bn-bricks-community',
     223            'href'  => 'https://getframes.io/',
     224            'meta'  => array(
     225                'target' => '_blank',
     226            ),
     227        )
     228    );
     229
     230    // Inner Circle
     231    $wp_admin_bar->add_node(
     232        array(
     233            'id'    => 'bn-bricks-inner-circle',
     234            'title' => __( "Kevin Geary's Bricks Builder Talk Circle", 'bricks-navigator' ),
     235            'parent' => 'bn-bricks-community',
     236            'href'  => 'https://circle.digitalambition.co/c/bricks-builder-talk/',
     237            'meta'  => array(
     238                // 'title' => __( 'BricksBuilder Reddit', 'bricks-navigator' ),
     239                'target' => '_blank',
     240            ),
     241        )
     242    );
     243   
     244    // Ivan Nugraha
    90245    $wp_admin_bar->add_node(
    91246        array(
     
    101256    );
    102257
    103     // BricksExtras.
    104     $wp_admin_bar->add_node(
    105         array(
    106             'id'    => 'bn-bricks-bricksextras',
    107             'title' => __( 'BricksExtras', 'bricks-navigator' ),
    108             'parent' => 'bn-bricks-community',
    109             'href'  => 'https://bricksextras.com/',
    110             'meta'  => array(
    111                 // 'title' => __( 'BricksExtras', 'bricks-navigator' ),
    112                 'target' => '_blank',
    113             ),
    114         )
    115     );
    116 
    117     // BricksUltimate.
    118     $wp_admin_bar->add_node(
    119         array(
    120             'id'    => 'bn-bricks-bricksultimate',
    121             'title' => __( 'BricksUltimate', 'bricks-navigator' ),
    122             'parent' => 'bn-bricks-community',
    123             'href'  => 'https://bricksultimate.com/',
    124             'meta'  => array(
    125                 // 'title' => __( 'BricksUltimate', 'bricks-navigator' ),
    126                 'target' => '_blank',
    127             ),
    128         )
    129     );
    130 
    131     // Max Addons Pro.
     258    // Max Addons Pro
    132259    $wp_admin_bar->add_node(
    133260        array(
     
    137264            'href'  => 'https://wpbricksaddons.com/',
    138265            'meta'  => array(
    139                 // 'title' => __( 'Max Addons Pro', 'bricks-navigator' ),
    140                 'target' => '_blank',
    141             ),
    142         )
    143     );
    144 
    145     // Bricksable.
    146     $wp_admin_bar->add_node(
    147         array(
    148             'id'    => 'bn-bricks-bricksable',
    149             'title' => __( 'Bricksable', 'bricks-navigator' ),
    150             'parent' => 'bn-bricks-community',
    151             'href'  => 'https://bricksable.com/',
    152             'meta'  => array(
    153                 // 'title' => __( 'Bricksable', 'bricks-navigator' ),
    154                 'target' => '_blank',
    155             ),
    156         )
    157     );
     266                'target' => '_blank',
     267            ),
     268        )
     269    );
     270   
     271    // OxyProps (BricksProps)
     272    $wp_admin_bar->add_node(
     273        array(
     274            'id'    => 'bn-bricks-oxyprops',
     275            'title' => __( 'OxyProps (BricksProps)', 'bricks-navigator' ),
     276            'parent' => 'bn-bricks-community',
     277            'href'  => 'https://oxyprops.com/',
     278            'meta'  => array(
     279                'target' => '_blank',
     280            ),
     281        )
     282    );
     283   
     284    // Structeezy
     285    $wp_admin_bar->add_node(
     286        array(
     287            'id'    => 'bn-bricks-structeezy',
     288            'title' => __( 'Structeezy', 'bricks-navigator' ),
     289            'parent' => 'bn-bricks-community',
     290            'href'  => 'https://structeezy.com/',
     291            'meta'  => array(
     292                'target' => '_blank',
     293            ),
     294        )
     295    );
  • brickslabs-bricks-navigator/trunk/inc/templates-edit.php

    r2732970 r2945063  
    44    exit;
    55}
     6
     7// Link to Add New template page.
     8$wp_admin_bar->add_node(
     9    array(
     10        'id'     => 'bn-bricks-add-new-template',
     11        'title'  => __( 'Add New', 'bricks-navigator' ),
     12        'parent' => 'bn-bricks-templates',
     13        'href'   => admin_url( 'post-new.php?post_type=bricks_template' ),
     14        'meta'   => array(
     15            'class'  => 'bn-parent-of-mini-child bn-has-bottom-border',
     16        ),
     17    )
     18);
     19// Links to Bricks template page in a new tab.
     20$wp_admin_bar->add_node(
     21    array(
     22        'id'     => 'bn-bricks-add-new-template-new-tab',
     23        'parent' => 'bn-bricks-add-new-template',
     24        'href'   => admin_url( 'post-new.php?post_type=bricks_template' ),
     25        'meta'   => array(
     26            'title' => __( 'Add New template in a new tab', 'bricks-navigator' ),
     27            'target' => '_blank',
     28            'class'  => 'bn-mini-child bn-mini-child-new-tab',
     29        ),
     30    )
     31);
    632
    733global $wpdb;
  • brickslabs-bricks-navigator/trunk/inc/thirdpartyplugins.php

    r2732970 r2945063  
    55}
    66
    7 if ( class_exists( '\BricksExtras\BricksExtrasMain' ) ) {
    8     // BricksExtras.
     7if ( class_exists( '\BricksExtras\BricksExtrasMain' ) || class_exists( '\Automatic_CSS\Autoloader' ) || class_exists( '\Advanced_Themer_Bricks\AT__Init' ) || class_exists( 'Bricksforge' ) || class_exists( '\CoreFramework\Config\Plugin' ) || class_exists( '\OxyProps\Inc\Oxyprops' ) || class_exists( '\Structeezy\Inc\Structeezy' ) ) {
     8// Settings.
     9$wp_admin_bar->add_node(
     10    array(
     11        'id'    => 'bn-bricks-plugin-settings',
     12        'title' => __( 'Plugin Settings', 'bricks-navigator' ),
     13        'parent' => 'bn-bricks',
     14        'meta'  => array(
     15            'class' => 'bn-has-top-border',
     16        ),
     17       
     18    )
     19);
     20}
     21
     22    // ACSS
     23    if ( class_exists( '\Automatic_CSS\Autoloader' ) ) {
     24        // ACSS.
     25        $wp_admin_bar->add_node(
     26            array(
     27                'id'    => 'bn-bricks-acss-settings',
     28                'title' => __( 'ACSS', 'bricks-navigator' ),
     29                'parent' => 'bn-bricks-plugin-settings',
     30                'href'  => admin_url( 'admin.php?page=automatic-css' ),
     31                'meta'  => array(
     32                    'target' => '_self',
     33                    'class' => 'bn-parent-of-mini-child'
     34                ),
     35            )
     36        );
     37            // ACSS - new tab.
     38            $wp_admin_bar->add_node(
     39                array(
     40                    'id'    => 'bn-bricks-acss-settings-new-tab',
     41                    'parent' => 'bn-bricks-acss-settings',
     42                    'href'  => admin_url( 'admin.php?page=automatic-css' ),
     43                    'meta'  => array(
     44                        'target' => '_blank',
     45                        'class'  => 'bn-mini-child bn-mini-child-new-tab',
     46                    ),
     47                )
     48            );
     49    }
     50   
     51    // AT
     52    if ( class_exists( '\Advanced_Themer_Bricks\AT__Init' ) ) {
     53        // AT.
     54        $wp_admin_bar->add_node(
     55            array(
     56                'id'    => 'bn-bricks-at-settings',
     57                'title' => __( 'AT (Theme Settings)', 'bricks-navigator' ),
     58                'parent' => 'bn-bricks-plugin-settings',
     59                'href'  => admin_url( 'admin.php?page=bricks-advanced-themer' ),
     60                'meta'  => array(
     61                    'target' => '_self',
     62                    'class' => 'bn-parent-of-mini-child'
     63                ),
     64            )
     65        );
     66            // AT - new tab.
     67            $wp_admin_bar->add_node(
     68                array(
     69                    'id'    => 'bn-bricks-at-settings-new-tab',
     70                    'parent' => 'bn-bricks-at-settings',
     71                    'href'  => admin_url( 'admin.php?page=bricks-advanced-themer' ),
     72                    'meta'  => array(
     73                        'target' => '_blank',
     74                        'class'  => 'bn-mini-child bn-mini-child-new-tab',
     75                    ),
     76                )
     77            );
     78    }
     79   
     80    // BricksExtras
     81    if ( class_exists( '\BricksExtras\BricksExtrasMain' ) ) {
     82        // BricksExtras.
     83        $wp_admin_bar->add_node(
     84            array(
     85                'id'    => 'bn-bricks-bricksextras',
     86                'title' => __( 'BricksExtras', 'bricks-navigator' ),
     87                'parent' => 'bn-bricks-plugin-settings',
     88                'href'  => admin_url( 'admin.php?page=bricksextras_menu' ),
     89                'meta'  => array(
     90                    'target' => '_self',
     91                    'class' => 'bn-parent-of-mini-child'
     92                ),
     93            )
     94        );
     95            // BricksExtras - new tab.
     96            $wp_admin_bar->add_node(
     97                array(
     98                    'id'    => 'bn-bricks-bricksextras-new-tab',
     99                    'parent' => 'bn-bricks-bricksextras',
     100                    'href'  => admin_url( 'admin.php?page=bricksextras_menu' ),
     101                    'meta'  => array(
     102                        'target' => '_blank',
     103                        'class'  => 'bn-mini-child bn-mini-child-new-tab',
     104                    ),
     105                )
     106            );
     107    }
     108   
     109    // Bricksforge
     110    if ( class_exists( 'Bricksforge' ) ) {
     111        // Bricksforge.
     112        $wp_admin_bar->add_node(
     113            array(
     114                'id'    => 'bn-bricks-bricksforge-settings',
     115                'title' => __( 'Bricksforge', 'bricks-navigator' ),
     116                'parent' => 'bn-bricks-plugin-settings',
     117                'href'  => admin_url( 'admin.php?page=bricksforge' ),
     118                'meta'  => array(
     119                    'target' => '_self',
     120                    'class' => 'bn-parent-of-mini-child'
     121                ),
     122            )
     123        );
     124            // Bricksforge - new tab.
     125            $wp_admin_bar->add_node(
     126                array(
     127                    'id'    => 'bn-bricks-bricksforge-new-tab',
     128                    'parent' => 'bn-bricks-bricksforge-settings',
     129                    'href'  => admin_url( 'admin.php?page=bricksforge' ),
     130                    'meta'  => array(
     131                        'target' => '_blank',
     132                        'class'  => 'bn-mini-child bn-mini-child-new-tab',
     133                    ),
     134                )
     135            );
     136    }
     137   
     138    // Bricks Navigator
    9139    $wp_admin_bar->add_node(
    10140        array(
    11             'id'    => 'bn-bricks-bricksextras',
    12             'title' => __( 'BricksExtras', 'bricks-navigator' ),
    13             'parent' => 'bn-bricks',
    14             'href'  => admin_url( 'admin.php?page=bricksextras_menu' ),
     141            'id'    => 'bn-bricks-navigator-settings',
     142            'title' => __( 'Bricks Navigator', 'bricks-navigator' ),
     143            'parent' => 'bn-bricks-plugin-settings',
     144            'href'  => admin_url( 'admin.php?page=brickslabs-bricks-navigator' ),
    15145            'meta'  => array(
    16146                'target' => '_self',
    17                 'class' => 'bn-has-top-border bn-parent-of-mini-child'
     147                'class' => 'bn-parent-of-mini-child'
    18148            ),
    19149        )
    20150    );
    21         // BricksExtras - new tab.
    22         $wp_admin_bar->add_node(
    23             array(
    24                 'id'    => 'bn-bricks-bricksextras-new-tab',
    25                 'parent' => 'bn-bricks-bricksextras',
    26                 'href'  => admin_url( 'admin.php?page=bricksextras_menu' ),
     151        // Bricks Navigator - new tab.
     152        $wp_admin_bar->add_node(
     153            array(
     154                'id'    => 'bn-bricks-navigator-settings-new-tab',
     155                'parent' => 'bn-bricks-navigator-settings',
     156                'href'  => admin_url( 'admin.php?page=brickslabs-bricks-navigator' ),
    27157                'meta'  => array(
    28158                    'target' => '_blank',
     
    31161            )
    32162        );
    33 }
     163   
     164    // Core Framework
     165    if ( class_exists( '\CoreFramework\Config\Plugin' ) ) {
     166        // CF.
     167        $wp_admin_bar->add_node(
     168            array(
     169                'id'    => 'bn-bricks-cf-settings',
     170                'title' => __( 'Core Framework', 'bricks-navigator' ),
     171                'parent' => 'bn-bricks-plugin-settings',
     172                'href'  => admin_url( 'admin.php?page=core-framework' ),
     173                'meta'  => array(
     174                    'target' => '_self',
     175                    'class' => 'bn-parent-of-mini-child'
     176                ),
     177            )
     178        );
     179            // CF - new tab.
     180            $wp_admin_bar->add_node(
     181                array(
     182                    'id'    => 'bn-bricks-cf-new-tab',
     183                    'parent' => 'bn-bricks-cf-settings',
     184                    'href'  => admin_url( 'admin.php?page=core-framework' ),
     185                    'meta'  => array(
     186                        'target' => '_blank',
     187                        'class'  => 'bn-mini-child bn-mini-child-new-tab',
     188                    ),
     189                )
     190            );
     191    }
     192   
     193    // OxyProps
     194    if ( class_exists( '\OxyProps\Inc\Oxyprops' ) ) {
     195        // OP.
     196        $wp_admin_bar->add_node(
     197            array(
     198                'id'    => 'bn-bricks-op-settings',
     199                'title' => __( 'OxyProps', 'bricks-navigator' ),
     200                'parent' => 'bn-bricks-plugin-settings',
     201                'href'  => admin_url( 'admin.php?page=oxyprops' ),
     202                'meta'  => array(
     203                    'target' => '_self',
     204                    'class' => 'bn-parent-of-mini-child'
     205                ),
     206            )
     207        );
     208            // OP - new tab.
     209            $wp_admin_bar->add_node(
     210                array(
     211                    'id'    => 'bn-bricks-op-new-tab',
     212                    'parent' => 'bn-bricks-op-settings',
     213                    'href'  => admin_url( 'admin.php?page=oxyprops' ),
     214                    'meta'  => array(
     215                        'target' => '_blank',
     216                        'class'  => 'bn-mini-child bn-mini-child-new-tab',
     217                    ),
     218                )
     219            );
     220    }
     221   
     222    // Structeezy
     223    if ( class_exists( '\Structeezy\Inc\Structeezy' ) ) {
     224        // Structeezy.
     225        $wp_admin_bar->add_node(
     226            array(
     227                'id'    => 'bn-bricks-structeezy-settings',
     228                'title' => __( 'Structeezy', 'bricks-navigator' ),
     229                'parent' => 'bn-bricks-plugin-settings',
     230                'href'  => admin_url( 'admin.php?page=structeezy' ),
     231                'meta'  => array(
     232                    'target' => '_self',
     233                    'class' => 'bn-parent-of-mini-child'
     234                ),
     235            )
     236        );
     237            // Structeezy - new tab.
     238            $wp_admin_bar->add_node(
     239                array(
     240                    'id'    => 'bn-bricks-structeezy-new-tab',
     241                    'parent' => 'bn-bricks-structeezy-settings',
     242                    'href'  => admin_url( 'admin.php?page=structeezy' ),
     243                    'meta'  => array(
     244                        'target' => '_blank',
     245                        'class'  => 'bn-mini-child bn-mini-child-new-tab',
     246                    ),
     247                )
     248            );
     249    }
  • brickslabs-bricks-navigator/trunk/readme.txt

    r2733289 r2945063  
    44Tags: bricks, bricks builder, admin bar
    55Donate link: https://www.paypal.me/sridharkatakam
    6 Requires at least: 4.9
    7 Tested up to: 6.0
    8 Stable tag: 1.0.0
    9 Requires PHP: 5.6
     6Requires at least: 5.2
     7Tested up to: 7.0
     8Stable tag: 1.0.1
     9Requires PHP: 7.4
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1919A very useful feature is being able to directly view the list of all Templates and Pages and edit any of them with Bricks directly with a single click without going to Templates and Pages list screens first.
    2020
    21 A tiny "new tab" icon is provided for site-specific menu items added by the plugin to open that menu item in a new tab.
     21The admin bar can also be enabled in Bricks editor pages via the plugin's settings page at Bricks → Bricks Navigator.
     22
     23Links to Bricks-specific plugins' settings page are also provided.
     24
     25The menu can be simplified by disabling unwanted items in the plugin's settings page.
     26
     27A "new tab" icon is provided for site-specific menu items added by the plugin to open that menu item in a new tab.
    2228
    2329All external links open in a new tab.
     
    42482. Screenshot showing 1-click direct link to edit the hovered Template directly with Bricks in a new tab.
    43493. Screenshot showing 1-click direct link to edit the hovered Page directly with Bricks.
     504. Screenshot showing the plugin's settings page.
    4451
    4552== Changelog ==
    4653
     54= 1.0.1 ( Jul 30, 2023 ) =
     55* Link to WooCommerce Bricks Settings page now appears only if WooCommerce is active.
     56* Added "Add New" link under Templates.
     57* Added "Plugin Settings" node which links to Bricks-specific plugins' settings pages.
     58* Added a "Bricks Navigator" Settings page under Bricks admin menu. The Settings page has options to show the admin bar in the editor and hide unwanted items.
     59* Added a link to plugin's settings page in the Plugins list screen.
     60
    4761= 1.0.0 ( May 27, 2022 ) =
    4862* Initial Release.
Note: See TracChangeset for help on using the changeset viewer.