{"id":137922,"date":"2014-04-17T06:17:14","date_gmt":"2014-04-17T06:17:14","guid":{"rendered":"https:\/\/ru.wordpress.org\/support\/2014\/04\/17\/%d1%82%d0%b5%d0%bc%d0%b0-graphene-%d1%80%d1%83%d0%b1%d1%80%d0%b8%d0%ba%d0%b8-%d0%b2%d0%bc%d0%b5%d1%81%d1%82%d0%be-%d1%81%d1%82%d1%80%d0%b0%d0%bd%d0%b8%d1%86-%d0%b2-%d0%bc%d0%b5%d0%bd%d1%8e\/"},"modified":"2014-04-17T06:17:14","modified_gmt":"2014-04-17T06:17:14","slug":"%d1%82%d0%b5%d0%bc%d0%b0-graphene-%d1%80%d1%83%d0%b1%d1%80%d0%b8%d0%ba%d0%b8-%d0%b2%d0%bc%d0%b5%d1%81%d1%82%d0%be-%d1%81%d1%82%d1%80%d0%b0%d0%bd%d0%b8%d1%86-%d0%b2-%d0%bc%d0%b5%d0%bd%d1%8e","status":"closed","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/%d1%82%d0%b5%d0%bc%d0%b0-graphene-%d1%80%d1%83%d0%b1%d1%80%d0%b8%d0%ba%d0%b8-%d0%b2%d0%bc%d0%b5%d1%81%d1%82%d0%be-%d1%81%d1%82%d1%80%d0%b0%d0%bd%d0%b8%d1%86-%d0%b2-%d0%bc%d0%b5%d0%bd%d1%8e\/","title":{"rendered":"\u0442\u0435\u043c\u0430 Graphene: \u0440\u0443\u0431\u0440\u0438\u043a\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0432 \u043c\u0435\u043d\u044e."},"content":{"rendered":"<p>\u0412\u0441\u0435 \u043e\u0431\u043b\u0430\u0437\u0438\u043b, \u043f\u0435\u0440\u0435\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0432\u0435\u0441\u044c header.php, \u043d\u043e \u043d\u0438 \u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. \u041f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0430 \u0441\u0430\u0439\u0442\u0435, \u043e\u043d\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u0435\u043d\u044e, \u043d\u043e \u043c\u043d\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u0430 \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e\u0431 \u0432 \u044d\u0442\u043e\u043c \u043c\u0435\u043d\u044e \u0431\u044b\u043b\u0438 \u0440\u0443\u0431\u0440\u0438\u043a\u0438. \u041f\u043e\u043c\u043e\u0433\u0438\u0442\u0435, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c?<br \/>\n\u0424\u0430\u0439\u043b header.php:<\/p>\n<pre><code>&lt;?php\n\/**\n * The Header for our theme.\n *\n * Displays all of the &lt;head&gt; section and everything up till &lt;div id=&quot;content-main&quot;&gt;\n *\n * @package Graphene\n * @since graphene 1.0\n *\/\nglobal $graphene_settings;\n?&gt;&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Strict\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd&quot;&gt;\n&lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot; &lt;?php language_attributes(); ?&gt;&gt;\n&lt;head profile=&quot;http:\/\/gmpg.org\/xfn\/11&quot;&gt;\n    &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;&lt;?php bloginfo( &#039;html_type&#039; ); ?&gt;; charset=&lt;?php bloginfo( &#039;charset&#039; ); ?&gt;&quot; \/&gt;\n    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot; \/&gt;\n    &lt;title&gt;&lt;?php wp_title( &#039;&#039; ); ?&gt;&lt;\/title&gt;\n    &lt;link rel=&quot;pingback&quot; href=&quot;&lt;?php bloginfo( &#039;pingback_url&#039; ); ?&gt;&quot; \/&gt;\n    &lt;?php wp_head(); ?&gt;\n&lt;\/head&gt;\n&lt;body &lt;?php body_class(); ?&gt;&gt;\n\n&lt;?php if ( !get_theme_mod( &#039;background_image&#039;, false) &amp;&amp; !get_theme_mod( &#039;background_color&#039;, false) ) : ?&gt;\n&lt;div class=&quot;bg-gradient&quot;&gt;\n&lt;?php endif; ?&gt;\n\n&lt;?php do_action( &#039;graphene_container_before&#039; ); ?&gt;\n\n&lt;div id=&quot;container&quot; class=&quot;container_16&quot;&gt;\n\n    &lt;?php if ( $graphene_settings[&#039;hide_top_bar&#039;] != true) : ?&gt;\n        &lt;div id=&quot;top-bar&quot;&gt;\n                &lt;?php do_action( &#039;graphene_before_feed_icon&#039; ); ?&gt;\n\t\t\t\t&lt;div id=&quot;profiles&quot; class=&quot;clearfix gutter-left&quot;&gt;\n                    &lt;?php do_action( &#039;graphene_social_profiles&#039; ); ?&gt;\n                &lt;\/div&gt;\n            &lt;?php\n            \/**\n             * Retrieves our custom search form.\n             *\/\n            ?&gt;\n            &lt;?php if ( ( $search_box_location = $graphene_settings[&#039;search_box_location&#039;] ) &amp;&amp; $search_box_location == &#039;top_bar&#039; || $search_box_location == &#039;&#039; ) : ?&gt;\n                &lt;div id=&quot;top_search&quot; class=&quot;grid_4&quot;&gt;\n                    &lt;?php get_search_form(); ?&gt;\n                    &lt;?php do_action( &#039;graphene_top_search&#039; ); ?&gt;\n                &lt;\/div&gt;\n            &lt;?php endif; ?&gt;\n\n            &lt;?php do_action( &#039;graphene_top_bar&#039; ); ?&gt;\n\n        &lt;\/div&gt;\n    &lt;?php endif; ?&gt;\n\n    &lt;?php\n\t\tglobal $post;\n\t\t$post_id = ( $post ) ? $post-&gt;ID : false;\n        $header_img = graphene_get_header_image( $post_id );\n\t\t$alt = graphene_get_header_image_alt( $header_img );\n\n        \/* Check if the page uses SSL and change HTTP to HTTPS if true *\/\n        if ( is_ssl() &amp;&amp; stripos( $header_img, &#039;https&#039; ) === false ) {\n            $header_img = str_replace( &#039;http&#039;, &#039;https&#039;, $header_img );\n        }\n    ?&gt;\n    &lt;div id=&quot;header&quot;&gt;\n\n        &lt;?php\n\t\t\t$header_img = &#039;&lt;img src=&quot;&#039; . $header_img . &#039;&quot; alt=&quot;&#039; . $alt . &#039;&quot; width=&quot;&#039; . HEADER_IMAGE_WIDTH . &#039;&quot; height=&quot;&#039; . HEADER_IMAGE_HEIGHT . &#039;&quot; class=&quot;header-img&quot; \/&gt;&#039;;\n\t\t\tif ( ! is_front_page() &amp;&amp; $graphene_settings[&#039;link_header_img&#039;] ) {\n\t\t\t\t$header_img_tag = &#039;&lt;a href=&quot;&#039; . apply_filters( &#039;graphene_header_link&#039; , home_url() ) . &#039;&quot; id=&quot;header_img_link&quot; title=&quot;&#039; . esc_attr__( &#039;Go back to the front page&#039;, &#039;graphene&#039; ) . &#039;&quot;&gt;&#039;;\n\t\t\t\t$header_img_tag .= $header_img;\n\t\t\t\t$header_img_tag .= &#039;&lt;\/a&gt;&#039;;\n\n\t\t\t\t$header_img = $header_img_tag;\n\t\t\t}\n\t\t\techo $header_img;\n\t\t?&gt;\n\n        &lt;?php \/* Header widget area *\/\n\t\tif ( $graphene_settings[&#039;enable_header_widget&#039;] &amp;&amp; is_active_sidebar( &#039;header-widget-area&#039; ) ) {\n\t\t\techo &#039;&lt;div class=&quot;header-widget&quot;&gt;&#039;;\n\t\t\tdynamic_sidebar( &#039;header-widget-area&#039; );\n\t\t\techo &#039;&lt;\/div&gt;&#039;;\n\t\t}\n\t\t?&gt;\n\n        &lt;?php \/* The site title and description *\/\n\t\tif ( ! in_array( get_theme_mod( &#039;header_textcolor&#039;, HEADER_TEXTCOLOR ), array( &#039;blank&#039;, &#039;&#039; ) ) ) :\n\t\t\tif ( is_front_page() || is_home() ) {\n\t\t\t\t$title_tag = &#039;h1&#039;;\n\t\t\t\t$desc_tag = &#039;h2&#039;;\n\t\t\t} else {\n\t\t\t\t$title_tag = &#039;h2&#039;;\n\t\t\t\t$desc_tag = &#039;h3&#039;;\n\t\t\t}\n\t\t\t?&gt;\n\t\t\t&lt;?php echo &quot;&lt;$title_tag class=\\&quot;header_title push_1 grid_15\\&quot;&gt;&quot;; ?&gt;\n\t\t\t\t&lt;?php if ( ! is_front_page() ) : ?&gt;&lt;a href=&quot;&lt;?php echo apply_filters( &#039;graphene_header_link&#039; , home_url() ); ?&gt;&quot; title=&quot;&lt;?php esc_attr_e( &#039;Go back to the front page&#039;, &#039;graphene&#039; ); ?&gt;&quot;&gt;&lt;?php endif; ?&gt;\n\t\t\t\t\t&lt;?php bloginfo( &#039;name&#039; ); ?&gt;\n\t\t\t\t&lt;?php if ( ! is_front_page() ) : ?&gt;&lt;\/a&gt;&lt;?php endif; ?&gt;\n\t\t\t&lt;?php echo &quot;&lt;\/$title_tag&gt;&quot;; ?&gt;\n\n            &lt;?php echo &quot;&lt;$desc_tag class=\\&quot;header_desc push_1 grid_15\\&quot;&gt;&quot;; ?&gt;\n\t\t\t\t&lt;?php bloginfo( &#039;description&#039; ); ?&gt;\n\t\t\t&lt;?php echo &quot;&lt;\/$desc_tag&gt;&quot;; ?&gt;\n        &lt;?php endif; ?&gt;\n\n\t\t&lt;?php do_action( &#039;graphene_header&#039; ); ?&gt;\n    &lt;\/div&gt;\n    &lt;div id=&quot;nav&quot;&gt;\n        &lt;?php \/* The navigation menu *\/ ?&gt;\n        &lt;div id=&quot;header-menu-wrap&quot; class=&quot;clearfix&quot;&gt;\n\t\t\t&lt;?php\n            \/* Header menu *\/\n            $args = array(\n                &#039;container&#039; =&gt; &#039;&#039;,\n                &#039;menu_id&#039; =&gt; &#039;header-menu&#039;,\n                &#039;menu_class&#039; =&gt; graphene_get_menu_class( &#039;menu clearfix&#039; ),\n                &#039;fallback_cb&#039; =&gt; &#039;graphene_default_menu&#039;,\n                &#039;depth&#039; =&gt; 5,\n                &#039;theme_location&#039; =&gt; &#039;Header Menu&#039;,\n            );\n\t\t\tif ( ! $graphene_settings[&#039;disable_menu_desc&#039;] )\n\t\t\t\t$args = array_merge( $args, array( &#039;walker&#039; =&gt; new Graphene_Description_Walker() ) );\n\n            wp_nav_menu( apply_filters( &#039;graphene_header_menu_args&#039;, $args ) ); ?&gt;\n\n            &lt;div class=&quot;clear&quot;&gt;&lt;\/div&gt;\n\n\t\t\t&lt;?php if ( ( $search_box_location = $graphene_settings[&#039;search_box_location&#039;] ) &amp;&amp; $search_box_location == &#039;nav_bar&#039; ) : ?&gt;\n                &lt;div id=&quot;top_search&quot; class=&quot;grid_4&quot;&gt;\n                    &lt;?php get_search_form(); ?&gt;\n                    &lt;?php do_action( &#039;graphene_nav_search&#039; ); ?&gt;\n                &lt;\/div&gt;\n            &lt;?php endif; ?&gt;\n\n            &lt;?php do_action( &#039;graphene_header_menu&#039; ); ?&gt;\n\n        &lt;\/div&gt;\n\n        &lt;?php\n        \/* Secondary menu *\/\n        $args = array(\n            &#039;container&#039; =&gt; &#039;div&#039;,\n\t\t\t&#039;container_id&#039; =&gt; &#039;secondary-menu-wrap&#039;,\n\t\t\t&#039;container_class&#039; =&gt; &#039;clearfix&#039;,\n            &#039;menu_id&#039; =&gt; &#039;secondary-menu&#039;,\n            &#039;menu_class&#039; =&gt; &#039;menu clearfix&#039;,\n            &#039;fallback_cb&#039; =&gt; &#039;none&#039;,\n            &#039;depth&#039; =&gt; 5,\n            &#039;theme_location&#039; =&gt; &#039;secondary-menu&#039;,\n        );\n        wp_nav_menu( apply_filters( &#039;graphene_secondary_menu_args&#039;, $args ) );\n        ?&gt;\n\n        &lt;div class=&quot;menu-bottom-shadow&quot;&gt;&amp;nbsp;&lt;\/div&gt;\n\n        &lt;?php do_action( &#039;graphene_top_menu&#039; ); ?&gt;\n\n    &lt;\/div&gt;\n\n    &lt;?php do_action( &#039;graphene_before_content&#039; ); ?&gt;\n\n    &lt;div id=&quot;content&quot; class=&quot;clearfix hfeed&quot;&gt;\n        &lt;?php do_action( &#039;graphene_before_content-main&#039; ); ?&gt;\n\n        &lt;?php\n\n            \/* Sidebar2 on the left side? *\/\n            if ( in_array( graphene_column_mode(), array( &#039;three_col_right&#039;, &#039;three_col_center&#039;, &#039;two_col_right&#039; ) ) ){\n                get_sidebar( &#039;two&#039; );\n            }\n\n\t\t\t\/* Sidebar1 on the left side? *\/\n            if ( in_array( graphene_column_mode(), array( &#039;three_col_right&#039; ) ) ){\n                get_sidebar();\n            }\n\n        ?&gt;\n\n        &lt;div id=&quot;content-main&quot; &lt;?php graphene_grid( &#039;clearfix&#039;, 16, 11, 8 ); ?&gt;&gt;\n        &lt;?php do_action( &#039;graphene_top_content&#039; ); ?&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-137922","topic","type-topic","status-closed","hentry","topic-tag-46","topic-tag-graphene","topic-tag-6"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/137922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/137922\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=137922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}