{"id":91784,"date":"2013-01-24T07:14:43","date_gmt":"2013-01-24T07:14:43","guid":{"rendered":"https:\/\/ru.wordpress.org\/support\/2013\/01\/24\/%d0%a2%d0%b5%d0%bc%d0%b0-luix-%d0%a4%d0%be%d1%80%d0%bc%d0%b0-%d0%ba%d0%be%d0%bc%d0%bc%d0%b5%d0%bd%d1%82%d0%b0%d1%80%d0%b8%d0%b5%d0%b2\/"},"modified":"2013-01-24T07:14:43","modified_gmt":"2013-01-24T07:14:43","slug":"%d0%a2%d0%b5%d0%bc%d0%b0-luix-%d0%a4%d0%be%d1%80%d0%bc%d0%b0-%d0%ba%d0%be%d0%bc%d0%bc%d0%b5%d0%bd%d1%82%d0%b0%d1%80%d0%b8%d0%b5%d0%b2","status":"closed","type":"topic","link":"https:\/\/ru.wordpress.org\/support\/topic\/%d0%a2%d0%b5%d0%bc%d0%b0-luix-%d0%a4%d0%be%d1%80%d0%bc%d0%b0-%d0%ba%d0%be%d0%bc%d0%bc%d0%b5%d0%bd%d1%82%d0%b0%d1%80%d0%b8%d0%b5%d0%b2\/","title":{"rendered":"\u0422\u0435\u043c\u0430 LUIX, \u0424\u043e\u0440\u043c\u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432"},"content":{"rendered":"<p>\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c.<\/p>\n<p>\u041f\u043e\u043b\u0430\u0433\u0430\u044e, \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u043e\u043f\u0440\u043e\u0441, \u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043e\u0447\u0435\u043d\u044c \u0442\u0440\u0443\u0434\u043d\u043e\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u0439<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0442\u0435\u043c\u0443 LUIX.<br \/>\n\u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u043f\u043e\u043b\u0435 \u0434\u043b\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u041d\u0410\u0414 \u0432\u0441\u0435\u043c\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438. \u041f\u043e\u0434\u0441\u043a\u0430\u0436\u0438\u0442\u0435, \u0447\u0442\u043e \u0438 \u043a\u0443\u0434\u0430 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 \u0444\u0430\u0439\u043b\u0438\u043a\u0435 comments.php.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u043c\u0435\u0442\u043e\u0434\u043e\u043c &#171;\u0442\u044b\u043a\u0430&#187;, \u043d\u043e \u0431\u0435\u0437\u0443\u0441\u043f\u0435\u0448\u043d\u043e. \u041d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u0432\u043e\u0442 \u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435:<\/p>\n<pre><code>&lt;a&gt;&lt;\/a&gt; &lt;a&gt;&lt;\/a&gt;\n&lt;!--Check if it is a comment--&gt;\n&lt;?php $comment_counter = 1; ?&gt;\n&lt;?php if ( $comments ) : ?&gt;\n&lt;div class=&quot;commenttitle&quot;&gt;\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438:&lt;\/div&gt;\n&lt;?php foreach ($comments as $comment) : ?&gt;\n&lt;?php $comment_type = get_comment_type(); ?&gt;\n&lt;?php if($comment_type == &#039;comment&#039;) { ?&gt;\n&lt;div class=&quot;comment-container&lt;?php if ($comment-&gt;user_id == 1) { echo &#039; admincomment&#039;; } ?&gt;&quot; id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot;&gt;\n  &lt;div class=&quot;comment-left&quot;&gt;\n    &lt;?php if ($comment-&gt;user_id ==1) { echo &#039;&lt;span style=&quot;color:#000&quot;&gt;\u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440&lt;\/span&gt;&#039;; } ?&gt;\n    &lt;?php echo get_avatar( $comment, 64 ); ?&gt; &lt;span&gt;\n    &lt;?php comment_date(&#039;d.m.Y&#039;) ?&gt;\n\n    &lt;?php comment_time() ?&gt;\n    &lt;\/span&gt; &lt;\/div&gt;\n  &lt;div class=&quot;comment-right&quot;&gt;\n    &lt;div class=&quot;comment-header&quot;&gt; &lt;span class=&quot;go-left&quot; style=&quot;display:inline;&quot;&gt; #&lt;?php echo $comment_counter;?&gt;.\n      &lt;?php comment_author_link() ?&gt;\n      &lt;span class=&quot;bold&quot;&gt;&lt;\/span&gt; &lt;\/span&gt; &lt;span class=&quot;comment-number go-right&quot;&gt; &lt;\/span&gt;\n      &lt;div class=&quot;clear&quot;&gt;&lt;\/div&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;comment-content&quot;&gt;\n      &lt;?php comment_text() ?&gt;\n      &lt;?php edit_comment_link(&#039;\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c&#039;,&#039;&lt;p&gt;&#039;,&#039;&lt;\/p&gt;&#039;); ?&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;\n&lt;?php $comment_counter++;?&gt;\n&lt;?php } else { $trackback = true; }?&gt;\n&lt;!--Or else it must be a trackback--&gt;\n&lt;?php endforeach; ?&gt;\n&lt;?php if ($trackback == true) { ?&gt;\n&lt;div class=&quot;commenttitle&quot;&gt;Trackbacks to this post.&lt;\/div&gt;\n&lt;div class=&quot;comment-content&quot;&gt;\n  &lt;ol id=&quot;trackbacks-ol&quot;&gt;\n    &lt;?php foreach ($comments as $comment) : ?&gt;\n    &lt;?php $comment_type = get_comment_type(); ?&gt;\n    &lt;?php if($comment_type != &#039;comment&#039;) { ?&gt;\n\n&lt;li&gt;\n      &lt;?php comment_author_link() ?&gt;\n    &lt;\/li&gt;\n    &lt;?php } ?&gt;\n    &lt;?php endforeach; ?&gt;\n\n&lt;\/div&gt;\n&lt;?php } ?&gt;\n&lt;?php else : ?&gt;\n&lt;?php if ( comments_open() ) : ?&gt;\n&lt;div class=&quot;extratitle&quot;&gt;\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u043f\u043e\u043a\u0430 \u043d\u0435\u0442. \u0411\u0443\u0434\u044c \u043f\u0435\u0440\u0432\u044b\u043c !&lt;\/div&gt;\n&lt;?php endif; ?&gt;\n&lt;?php endif; ?&gt;\n&lt;?php if ( comments_open() ) : ?&gt;\n&lt;div class=&quot;commenttitle&quot;&gt;\u041e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439:&lt;\/div&gt;\n&lt;?php if ( get_option(&#039;comment_registration&#039;) &amp;&amp; !$user_ID ) : ?&gt;\n&lt;p&gt; &lt;?php printf(__(&#039;&lt;span class=&quot;bold&quot;&gt;\u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b &lt;a href=&quot;%s&quot;&gt;\u0432\u043e\u0439\u0442\u0438&lt;\/a&gt;, \u0447\u0442\u043e\u0431\u044b \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439.&lt;\/span&gt;&#039;), get_option(&#039;siteurl&#039;).&quot;\/wp-login.php?redirect_to=&quot;.urlencode(get_permalink()));?&gt; &lt;\/p&gt;\n&lt;?php else : ?&gt;\n&lt;form action=&quot;\/wp-comments-post.php&quot; method=&quot;post&quot; id=&quot;commentform&quot;&gt;\n  &lt;a&gt;&lt;\/a&gt;\n  &lt;?php if ( $user_ID ) : ?&gt;\n  &lt;p&gt; &lt;?php printf(__(&#039;&lt;span class=&quot;bold&quot;&gt;\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, %s. \u041e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0432\u043e\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439:&lt;\/span&gt;&#039;), &#039;&lt;a href=&quot;\/wp-admin\/profile.php&quot;&gt;&#039;.$user_identity.&#039;&lt;\/a&gt;&#039;); ?&gt; &lt;\/p&gt;\n&lt;?php else : ?&gt;\n\n\t&lt;div class=&quot;commentsform_title&quot;&gt;&lt;label for=&quot;author&quot;&gt; \u0418\u043c\u044f:&lt;\/label&gt;&lt;\/div&gt;&lt;input type=&quot;text&quot; name=&quot;author&quot; class=&quot;comment-input&quot; id=&quot;author&quot; value=&quot;&lt;?php echo $comment_author; ?&gt;&quot; size=&quot;27&quot; tabindex=&quot;1&quot; \/&gt;\n&lt;p&gt;&lt;\/p&gt;\n\t&lt;div class=&quot;commentsform_title&quot;&gt;&lt;label for=&quot;email&quot;&gt; \u041f\u043e\u0447\u0442\u0430:&lt;\/label&gt;&lt;\/div&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; class=&quot;comment-input&quot; id=&quot;email&quot; value=&quot;&lt;?php echo $comment_author_email; ?&gt;&quot; size=&quot;27&quot; tabindex=&quot;2&quot; \/&gt;\n&lt;p&gt;&lt;\/p&gt;\n\n&lt;?php endif; ?&gt;\n  &lt;p style=&quot;padding:10px 0px 10px 0px;&quot;&gt;\n    &lt;textarea name=&quot;comment&quot; class=&quot;comment-textarea&quot; id=&quot;comment&quot; cols=&quot;50&quot; rows=&quot;5&quot; tabindex=&quot;4&quot;&gt;&lt;\/textarea&gt;\n  &lt;\/p&gt;\n  &lt;p&gt;\n    &lt;input name=&quot;submit&quot; type=&quot;submit&quot; class=&quot;comment-button&quot; id=&quot;submit&quot; tabindex=&quot;5&quot; value=&quot;\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c&quot; \/&gt;\n    &lt;input type=&quot;hidden&quot; name=&quot;comment_post_ID&quot; value=&quot;&lt;?php echo $id; ?&gt;&quot; \/&gt;\n  &lt;\/p&gt;\n  &lt;?php do_action(&#039;comment_form&#039;, $post-&gt;ID); ?&gt;\n&lt;\/form&gt;\n&lt;?php endif; \/\/ If registration required and not logged in ?&gt;\n&lt;?php else : \/\/ \u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f ?&gt;\n&lt;p&gt;\n&lt;?php _e(&#039;&lt;span class=&quot;bold go-center&quot;&gt;\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u044d\u0442\u0443 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f.&lt;\/span&gt;&#039;); ?&gt;\n&lt;\/p&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre>\n<p>\u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u0432\u0430\u043c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d<\/p>\n","protected":false},"template":"","class_list":["post-91784","topic","type-topic","status-closed","hentry","topic-tag-comments-php","topic-tag-20","topic-tag-luix"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/91784","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\/91784\/revisions"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=91784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}