{"id":274264,"date":"2018-02-07T08:45:11","date_gmt":"2018-02-07T08:45:11","guid":{"rendered":"https:\/\/ru.wordpress.org\/support\/topic\/%d1%86%d0%b8%d0%ba%d0%bb%d0%b8%d1%87%d0%b5%d1%81%d0%ba%d0%b0%d1%8f-%d1%81%d1%81%d1%8b%d0%bb%d0%ba%d0%b0-%d0%b2-logo-%d0%bd%d0%b0-%d0%b3%d0%bb%d0%b0%d0%b2%d0%bd%d0%be%d0%b9-%d1%81%d1%82%d1%80%d0%b0\/"},"modified":"2018-02-07T08:47:04","modified_gmt":"2018-02-07T08:47:04","slug":"%d1%86%d0%b8%d0%ba%d0%bb%d0%b8%d1%87%d0%b5%d1%81%d0%ba%d0%b0%d1%8f-%d1%81%d1%81%d1%8b%d0%bb%d0%ba%d0%b0-%d0%b2-logo-%d0%bd%d0%b0-%d0%b3%d0%bb%d0%b0%d0%b2%d0%bd%d0%be%d0%b9-%d1%81%d1%82%d1%80%d0%b0","status":"publish","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/%d1%86%d0%b8%d0%ba%d0%bb%d0%b8%d1%87%d0%b5%d1%81%d0%ba%d0%b0%d1%8f-%d1%81%d1%81%d1%8b%d0%bb%d0%ba%d0%b0-%d0%b2-logo-%d0%bd%d0%b0-%d0%b3%d0%bb%d0%b0%d0%b2%d0%bd%d0%be%d0%b9-%d1%81%d1%82%d1%80%d0%b0\/","title":{"rendered":"\u0426\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u0432 logo \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435"},"content":{"rendered":"<p>\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0434\u043d\u044f.<br \/>\n\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0435\u0442\u043a\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0443\u043c\u0435\u044e\u0442 \u0438 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f, \u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0438 \u0435\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u043c\u043e\u0449\u0438.<\/p>\n<p>\u043b\u043e\u0433\u043e\u0442\u0438\u043f \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0430 \u0438\u043c\u0435\u0435\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u0441\u0430\u043c \u043d\u0430 \u0441\u0435\u0431\u044f (\u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430). \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u0441 \u043d\u0435\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0434\u0430:<\/p>\n<pre><code>&lt;?php\nif ( is_home() &amp;&amp; !is_paged() ) {\necho(&#039;&lt;a href=&quot;\/&quot; title=&quot;\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430&quot; rel=&quot;home&quot;&gt;\u0418\u043c\u044f \u0441\u0430\u0439\u0442\u0430&lt;\/a&gt;&#039;); \/\/ \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435\n} else {\necho(&#039;&lt;a href=&quot;\/&quot; title=&quot;\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430&quot; rel=&quot;home&quot;&gt;\u0418\u043c\u044f \u0441\u0430\u0439\u0442\u0430&lt;\/a&gt;&#039;); \/\/ \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\n}\n?&gt;<\/code><\/pre>\n<p>\u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0434\u0430 \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0432 \u043a\u043e\u0434\u0435 3 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u043b\u043e\u0433\u043e (\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442, \u0440\u0435\u0442\u0438\u043d\u0430, \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044b). \u0438 \u0441\u0430\u043c \u043a\u043e\u0434 \u0443\u0436\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 &#171;if&#187; \u0447\u0435\u043c \u043c\u0435\u043d\u044f \u0443\u0436\u0435 \u0432\u0432\u043e\u0434\u0438\u0442 \u0432 \u0442\u0443\u043f\u0438\u043a. \u0441\u043a\u0430\u0436\u0435\u043c \u0442\u0430\u043a \u0438\u0437\u0432\u0440\u0430\u0449\u0430\u043b\u0441\u044f \u043a\u0430\u043a \u043c\u043e\u0433, \u0432 \u0438\u0442\u043e\u0433\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 cyntax \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0435.<\/p>\n<p>\u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u043c\u043e\u0447\u044c \u0433\u0443\u0440\u0443, \u0447\u0435\u0440\u0442\u043e\u0432\u0441\u043a\u0438 \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u0435\u043b\u0435\u043d \u0412\u0430\u043c.<br \/>\n\u0432\u043e\u0442 \u043a\u0443\u0441\u043e\u043a \u0441 \u0441\u0430\u0439\u0442\u0430.<\/p>\n<pre><code>&lt;?php if ( ( Avada()-&gt;settings-&gt;get( &#039;logo&#039;, &#039;url&#039; ) &amp;&amp; &#039;&#039; !== Avada()-&gt;settings-&gt;get( &#039;logo&#039;, &#039;url&#039; ) ) || ( Avada()-&gt;settings-&gt;get( &#039;logo_retina&#039;, &#039;url&#039; ) &amp;&amp; &#039;&#039; !== Avada()-&gt;settings-&gt;get( &#039;logo_retina&#039;, &#039;url&#039; ) ) ) : ?&gt;\n        &lt;a class=&quot;fusion-logo-link&quot; href=&quot;&lt;?php echo esc_url_raw( home_url( &#039;\/&#039; ) ); ?&gt;&quot;&gt;\n            &lt;!-- standard logo --&gt;\n            &lt;?php\n            $standard_logo = Avada()-&gt;images-&gt;get_logo_image_srcset( &#039;logo&#039;, &#039;logo_retina&#039; )\n            ?&gt;\n            &lt;img src=&quot;&lt;?php echo esc_url_raw( $standard_logo[&#039;url&#039;] ); ?&gt;&quot; srcset=&quot;&lt;?php echo esc_attr( $standard_logo[&#039;srcset&#039;] ); ?&gt;&quot; width=&quot;&lt;?php echo esc_attr( $standard_logo[&#039;width&#039;] ); ?&gt;&quot; height=&quot;&lt;?php echo esc_attr( $standard_logo[&#039;height&#039;] ); ?&gt;&quot;&lt;?php echo $standard_logo[&#039;style&#039;]; \/\/ WPCS: XSS ok. ?&gt; alt=&quot;\u0410\u0440\u0435\u043d\u0434\u0430 \u0438 \u043f\u0440\u043e\u043a\u0430\u0442 \u0430\u0432\u0442\u043e \u0432 \u041c\u0438\u043d\u0441\u043a\u0435&quot; retina_logo_url=&quot;&lt;?php echo esc_url_raw( $standard_logo[&#039;is_retina&#039;] ); ?&gt;&quot; class=&quot;fusion-standard-logo&quot; \/&gt;\n \n            &lt;!-- mobile logo --&gt;\n            &lt;?php\n            if ( Avada()-&gt;settings-&gt;get( &#039;mobile_logo&#039;, &#039;url&#039; ) &amp;&amp; &#039;&#039; !== Avada()-&gt;settings-&gt;get( &#039;mobile_logo&#039;, &#039;url&#039; ) ) {\n                $mobile_logo = Avada()-&gt;images-&gt;get_logo_image_srcset( &#039;mobile_logo&#039;, &#039;mobile_logo_retina&#039; );\n            ?&gt;\n                &lt;img src=&quot;&lt;?php echo esc_url_raw( $mobile_logo[&#039;url&#039;] ); ?&gt;&quot; srcset=&quot;&lt;?php echo esc_attr( $mobile_logo[&#039;srcset&#039;] ); ?&gt;&quot; width=&quot;&lt;?php echo esc_attr( $mobile_logo[&#039;width&#039;] ); ?&gt;&quot; height=&quot;&lt;?php echo esc_attr( $mobile_logo[&#039;height&#039;] ); ?&gt;&quot;&lt;?php echo $mobile_logo[&#039;style&#039;]; \/\/ WPCS: XSS ok. ?&gt; alt=&quot;\u0410\u0440\u0435\u043d\u0434\u0430 \u0438 \u043f\u0440\u043e\u043a\u0430\u0442 \u0430\u0432\u0442\u043e \u0432 \u041c\u0438\u043d\u0441\u043a\u0435&quot; retina_logo_url=&quot;&lt;?php echo esc_url_raw( $mobile_logo[&#039;is_retina&#039;] ); ?&gt;&quot; class=&quot;fusion-mobile-logo&quot; \/&gt;\n            &lt;?php } ?&gt;\n            &lt;!-- sticky header logo --&gt;\n            &lt;?php\n            if ( Avada()-&gt;settings-&gt;get( &#039;sticky_header_logo&#039;, &#039;url&#039; ) &amp;&amp; &#039;&#039; !== Avada()-&gt;settings-&gt;get( &#039;sticky_header_logo&#039;, &#039;url&#039; ) &amp;&amp; ( in_array( Avada()-&gt;settings-&gt;get( &#039;header_layout&#039; ), array( &#039;v1&#039;, &#039;v2&#039;, &#039;v3&#039;, &#039;v6&#039;, &#039;v7&#039; ) ) || ( ( in_array( Avada()-&gt;settings-&gt;get( &#039;header_layout&#039; ), array( &#039;v4&#039;, &#039;v5&#039; ) ) &amp;&amp; &#039;menu_and_logo&#039; === Avada()-&gt;settings-&gt;get( &#039;header_sticky_type2_layout&#039; ) ) ) ) ) {\n                $sticky_logo = Avada()-&gt;images-&gt;get_logo_image_srcset( &#039;sticky_header_logo&#039;, &#039;sticky_header_logo_retina&#039; );\n            ?&gt;\n                &lt;img src=&quot;&lt;?php echo esc_url_raw( $sticky_logo[&#039;url&#039;] ); ?&gt;&quot; srcset=&quot;&lt;?php echo esc_attr( $sticky_logo[&#039;srcset&#039;] ); ?&gt;&quot; width=&quot;&lt;?php echo esc_attr( $sticky_logo[&#039;width&#039;] ); ?&gt;&quot; height=&quot;&lt;?php echo esc_attr( $sticky_logo[&#039;height&#039;] ); ?&gt;&quot;&lt;?php echo $sticky_logo[&#039;style&#039;]; \/\/ WPCS: XSS ok. ?&gt; alt=&quot;\u0410\u0440\u0435\u043d\u0434\u0430 \u0438 \u043f\u0440\u043e\u043a\u0430\u0442 \u0430\u0432\u0442\u043e \u0432 \u041c\u0438\u043d\u0441\u043a\u0435&quot; retina_logo_url=&quot;&lt;?php echo esc_url_raw( $sticky_logo[&#039;is_retina&#039;] ); ?&gt;&quot; class=&quot;fusion-sticky-logo&quot; \/&gt;\n            &lt;?php } ?&gt;\n        &lt;\/a&gt;\n    &lt;?php endif; ?&gt;<\/code><\/pre>\n<p>\u041b\u0435\u043d\u0442\u044f\u0435\u0432 \u043d\u0435 \u043b\u044e\u0431\u044f\u0442, \u043d\u043e \u042f \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0448\u0430\u043d\u0441, \u0447\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0443\u0442. \u041c\u0430\u0430\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439, \u043d\u043e \u0432\u0435\u0440\u044e.<\/p>\n","protected":false},"template":"","class_list":["post-274264","topic","type-topic","status-publish","hentry","topic-tag-avada","topic-tag-header","topic-tag-logo","topic-tag-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/274264","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":1,"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/274264\/revisions"}],"predecessor-version":[{"id":274265,"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/274264\/revisions\/274265"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=274264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}