$tgroup, 'title' => $spgenesis_child_name, 'href' => $spgenesis_child_aurl, 'meta' => array( 'target' => '', 'title' => $spgenesis_child_name ) ); /** Hook: spchild_theme_after_title */ do_action( 'gtbe_spchild_after_title' ); /** Display theme editor links for proper caps */ if ( !( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT ) && current_user_can( 'edit_themes' ) && ( current_theme_supports( 'gtbe-theme-editor' ) || current_theme_supports( 'gtbe-theme-editor-prose' ) ) ) { /** Include plugin file with seo plugin support links */ require_once( GTBE_PLUGIN_DIR . '/includes/gtbe-editfiles.php' ); } // end-if theme editor check /** Display Readme.txt Child Theme Info */ if ( class_exists( 'Genesis_Admin_Readme' ) && file_exists( ddw_gtbe_filter_url_child_readme() ) ) { $menu_items['spgenesischild-readme'] = array( 'parent' => $spgenesischild, 'title' => __( 'README Info', 'genesis-toolbar-extras' ), 'href' => admin_url( 'admin.php?page=genesis-readme' ), 'meta' => array( 'target' => '', 'title' => __( 'README Info', 'genesis-toolbar-extras' ) ) ); } /** If Genesis class not exists use own class */ elseif ( class_exists( 'DDW_GTBE_Admin_Readme' ) && file_exists( ddw_gtbe_filter_url_child_readme() ) ) { $menu_items['spgenesischild-readme'] = array( 'parent' => $spgenesischild, 'title' => __( 'README Info', 'genesis-toolbar-extras' ), 'href' => admin_url( 'admin.php?page=gtbe-readme' ), 'meta' => array( 'target' => '', 'title' => __( 'README Info', 'genesis-toolbar-extras' ) ) ); } // end-if readme check /** Child Theme/StudioPress personal support */ if ( GTBE_MYSP_DISPLAY ) { $menu_items['spgenesischild-personalsupport'] = array( 'parent' => $spgenesischild, 'title' => __( 'my.SP Personal Support', 'genesis-toolbar-extras' ), 'href' => 'https://my.studiopress.com/help/', 'meta' => array( 'title' => 'my.StudioPress.com ' . _x( 'Personal Support Contact & Resources', 'Translators: For the tooltip', 'genesis-toolbar-extras' ) ) ); } // end-if my.SP display check /** Child Theme setup instructions */ if ( 'default' != $spgenesis_child_setup ) { $menu_items['spgenesischild-setupinstructions'] = array( 'parent' => $spgenesischild, 'title' => apply_filters( 'gtbe_filter_spgenesis_setup_title', __( 'Setup Instructions', 'genesis-toolbar-extras' ) ), 'href' => apply_filters( 'gtbe_filter_spgenesis_setup_url', esc_url_raw( $spgenesis_child_setup ) ), 'meta' => array( 'title' => apply_filters( 'gtbe_filter_spgenesis_setup_tooltip', _x( 'Setup Instructions', 'Translators: For the tooltip', 'genesis-toolbar-extras' ) ) ) ); } // end-if child setup instructions /** Child Theme Support Forum - old, read-only */ if ( ( 'default' != $spgenesis_child_forum ) && GTBE_OLDFORUMS_DISPLAY ) { $menu_items['spgenesischild-support'] = array( 'parent' => $spgenesischild, 'title' => apply_filters( 'gtbe_filter_spgenesis_forum_title', __( 'Support Forum (old)', 'genesis-toolbar-extras' ) ), 'href' => apply_filters( 'gtbe_filter_spgenesis_forum_url', esc_url_raw( $spgenesis_child_forum ) ), 'meta' => array( 'title' => apply_filters( 'gtbe_filter_spgenesis_forum_tooltip', _x( 'Support Forum for Child Theme - Note: Read only!', 'Translators: For the tooltip', 'genesis-toolbar-extras' ) ) ) ); } // end-if child old forum /** Executive 2.x Theme Specials: */ if ( 'executive2x_file_yes' == $spgenesis_file ) { /** Include plugin file with theme specials */ require_once( GTBE_PLUGIN_DIR . '/includes/gtbe-themes-specials-executive2x.php' ); } // end-if Executive 2.x Theme specials /** Minimum 2.x Theme Specials: */ if ( 'minimum2x_file_yes' == $spgenesis_file ) { /** Include plugin file with theme specials */ require_once( GTBE_PLUGIN_DIR . '/includes/gtbe-themes-specials-minimum2x.php' ); } // end-if Minimum 2.x Theme specials } // end-if official child themes display /** * Special child theme stuff * Official child theme: Prose 1.0 and 1.5+ * Third-party child theme: Extended Magazine * * @since 1.0.0 */ /** Design settings section - only if "Prose" or "Extended Magazine" (third-party child theme ) is active */ if ( ( defined( 'PROSE_DOMAIN' ) || defined( 'EXTENDED_DESIGN_FIELD' ) ) && current_user_can( 'manage_options' ) ) { $menu_items['designsettings'] = array( 'parent' => $tgroup, 'title' => __( 'Design Settings', 'genesis-toolbar-extras' ), 'href' => admin_url( 'admin.php?page=design-settings' ), 'meta' => array( 'target' => '', 'title' => __( 'Design Settings', 'genesis-toolbar-extras' ) ) ); } // end-if Design Settings check /** Prose Custom section - only for "Prose" 1.5+ */ if ( function_exists( 'prose_create_custom_php' ) && current_user_can( 'manage_options' ) ) { $menu_items['prosecustom'] = array( 'parent' => $tgroup, 'title' => __( 'Custom Code & CSS', 'genesis-toolbar-extras' ), 'href' => admin_url( 'admin.php?page=prose-custom' ), 'meta' => array( 'target' => '', 'title' => _x( 'Custom Code & CSS for Prose', 'Translators: For the tooltip', 'genesis-toolbar-extras' ) ) ); } // end-if Prose Custom check