{"id":121,"date":"2011-04-21T23:35:12","date_gmt":"2011-04-21T21:35:12","guid":{"rendered":"http:\/\/my-opinions.info\/?p=121"},"modified":"2011-04-21T23:35:12","modified_gmt":"2011-04-21T21:35:12","slug":"views-nivo-slider-kak-sdelat-chto-by-slajdy-pokazyvalis-v-randomnomu-poryadku-i-pervyj-slajd-tak-zhe-byl-randomnym","status":"publish","type":"post","link":"https:\/\/uw-t.com\/ru\/drupal\/views-nivo-slider-kak-sdelat-chto-by-slajdy-pokazyvalis-v-randomnomu-poryadku-i-pervyj-slajd-tak-zhe-byl-randomnym","title":{"rendered":"views nivo slider \u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e \u0431\u044b \u0441\u043b\u0430\u0439\u0434\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e\u043c\u0443 \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043b\u0430\u0439\u0434 \u0442\u0430\u043a \u0436\u0435 \u0431\u044b\u043b \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u044b\u043c"},"content":{"rendered":"<p>\u041c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f, \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043e, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b, \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0434\u043e\u043f\u0438\u0441\u0430\u043b<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nif(drupal_is_front_page()){\r\n$sql = &quot;SELECT nid FROM node WHERE TYPE =  'image_slider'&quot;;\r\n$result = db_query($sql); \r\nwhile ($n = db_fetch_object($result)) {\r\ndb_query(&quot;UPDATE  `node` SET  `title` =  '&quot;.rand(1,100500).&quot;' WHERE `nid` ='&quot;.$n-&gt;nid.&quot;';&quot;);\r\n}}\r\n<\/pre>\n<p>\u0441\u0443\u0442\u044c \u0432\u0441\u0435\u0433\u043e \u0447\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f node, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0431\u0443\u0434\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a<\/p>","protected":false},"excerpt":{"rendered":"<p>\u041c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f, \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043e, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b, \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0434\u043e\u043f\u0438\u0441\u0430\u043b if(drupal_is_front_page()){ $sql = &quot;SELECT nid FROM node WHERE TYPE = 'image_slider'&quot;; $result = db_query($sql); while ($n = db_fetch_object($result)) { db_query(&quot;UPDATE `node` SET `title` = '&quot;.rand(1,100500).&quot;' WHERE `nid` ='&quot;.$n-&gt;nid.&quot;';&quot;); }} \u0441\u0443\u0442\u044c \u0432\u0441\u0435\u0433\u043e \u0447\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f node, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 &hellip; <a href=\"https:\/\/uw-t.com\/ru\/drupal\/views-nivo-slider-kak-sdelat-chto-by-slajdy-pokazyvalis-v-randomnomu-poryadku-i-pervyj-slajd-tak-zhe-byl-randomnym\" class=\"more-link\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"screen-reader-text\">views nivo slider \u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e \u0431\u044b \u0441\u043b\u0430\u0439\u0434\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e\u043c\u0443 \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043b\u0430\u0439\u0434 \u0442\u0430\u043a \u0436\u0435 \u0431\u044b\u043b \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u044b\u043c<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-drupal"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":3,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts\/121\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}