add_menu( array( 'parent' => 'appearance', 'id' => 'graphene-options', 'title' => 'Graphene Options', 'href' => admin_url( 'themes.php?page=graphene_options' ) ) ); } add_action( 'admin_bar_menu', 'graphene_wp_admin_bar_theme_options', 61 ); /** * Displays a graphic visualizer for template selection in the Edit Page screen */ function graphene_page_template_visualizer() { global $graphene_settings, $post_id; $template_not_found = __( 'Template preview not found.', 'graphene' ); if ( ! get_post_meta( $post_id, '_wp_page_template', true ) ){ $default_template = __( 'default', 'graphene' ); } else { switch( $graphene_settings['column_mode']){ case 'one_column': $default_template = 'template-onecolumn.php'; break; case 'two_col_right': $default_template = 'template-twocolumnsright.php'; break; case 'three_col_left': $default_template = 'template-threecolumnsleft.php'; break; case 'three_col_right': $default_template = 'template-threecolumnsright.php'; break; case 'three_col_center': $default_template = 'template-threecolumnscenter.php'; break; default: $default_template = 'template-twocolumnsleft.php'; break; } } $preview_img_path = GRAPHENE_ROOTURI . '/admin/images/'; ?> <?php esc_attr_e( 'Documentation', 'graphene' ); ?>