{"id":54,"date":"2010-09-25T15:59:47","date_gmt":"2010-09-25T12:59:47","guid":{"rendered":"http:\/\/www.katib.org\/"},"modified":"2010-10-10T17:23:51","modified_gmt":"2010-10-10T15:23:51","slug":"country","status":"publish","type":"page","link":"https:\/\/www.katib.org\/?page_id=54","title":{"rendered":"\u062a\u0635\u0641\u062d \u0628\u0627\u0644\u062f\u0648\u0644"},"content":{"rendered":"<p><?php\n\/*\nNew katib home page \n1 post from each topic \n*\/\n?><\/p>\n<div id=\"mainContent\">\n    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(\"Main Widgets\") ) : ?><\/p>\n<p>  \t<?php \n  \tif (function_exists('cets_get_used_topics')){\n  \t\t$topics = cets_get_used_topics();\n\t\tif (sizeOf($topics) >1 || (sizeOf($topics == 1) &#038;&#038; $topics[0]->id != 1)){<br \/>\n\t\t\t\/\/ if there&#8217;s only 1 topic, make sure it&#8217;s not news and communications<br \/>\n\t\t\techo (&#8220;<\/p>\n<h2> \u0627\u062d\u062f\u062b \u0627\u0644\u0645\u062f\u0648\u0646\u0627\u062a<\/h2>\n<p>&#8220;);<br \/>\n\t\t\tforeach($topics as $topic) {<br \/>\n\t\t\t\tif ($topic->id != 1){ \/\/ TODO: Convert this to featured topic<br \/>\n\t\t\t\t\techo(&#8220;<\/p>\n<div class='topicListing \" . $topic->slug . &#8220;&#8216;>&#8221;);<br \/>\n\t\t\t\t\techo (&#8220;<\/p>\n<h3><a href='topic\/\" . strtolower($topic->slug) . &#8220;&#8216;>&#8221; . $topic->topic_name . &#8220;<\/a><\/h3>\n<p>&#8220;);<br \/>\n\t\t\t\t\techo (&#8220;<\/p>\n<ul>&#8220;);<br \/>\n\t\t\t\t\techo (cets_get_recent_posts_from_topic_id_html($topic->id, 1, 1));<br \/>\n\t\t\t\t\techo (&#8220;<\/ul>\n<p>&#8220;);<br \/>\n\t\t\t\t\techo (&#8220;<\/p>\n<div class='topicMore'>&#8220;);<br \/>\n\t\t\t\t\techo (&#8220;<a href='\/topic\/\" . strtolower($topic->slug) . &#8220;&#8216;>(\u0627\u0644\u0645\u0632\u064a\u062f \u0645\u0646  &#8221; . $topic->slug . &#8221; \u0627\u0644\u062a\u062f\u0648\u064a\u0646\u0627\u062a<\/a> | <a href='\/sites\/\" . strtolower($topic->slug) . &#8220;&#8216;>\u0643\u0644  &#8221; . $topic->slug . &#8221; \u0645\u062f\u0648\u0646\u0627\u062a)<\/a>&#8220;);<br \/>\n\t\t\t\t\techo (&#8220;<\/div>\n<p>&#8220;);<\/p>\n<p>\t\t\t\t\techo (&#8220;<\/p><\/div>\n<p>&#8220;);<br \/>\n\t\t\t\t}<br \/>\n\t\t\t}<br \/>\n\t\t  }<br \/>\n\t\t  else {<br \/>\n\t\t\techo(&#8220;\u0644\u0627 \u064a\u0648\u062c\u062f \u0645\u062f\u0648\u0646\u0627\u062a \u0641\u0649 \u062a\u0644\u0643 \u0627\u0644\u062f\u0648\u0644\u0647.&#8221;);<br \/>\n\t\t\t}<br \/>\n\t\t}<\/p>\n<p>\t\telse {<\/p>\n<p>\t\t\techo (&#8220;<\/p>\n<p>\u0644\u0627 \u064a\u0648\u062c\u062f \u0634\u0649\u0621.&#8221;);<\/p>\n<p>\t\t}<br \/>\n\t?><br \/>\n    <?php \n\t\/\/ end widget area\n\tendif; \n\t?>\n    <\/div>\n<p><!-- end #mainContent --><\/p>\n<div id=\"sideContent1\">\n  <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(\"Sidebar Widgets\") ) : ?><br \/>\n  <!-- 280 x 210 \/ 280 x 158 --><\/p>\n<div class=\"topicListing\">\n    \t<?php \n\t\tif (function_exists('cets_get_recent_posts_from_topic_id')){\n\t\t\/\/ this is the \"featured\" topic, which for now let's hardcode to 1\t\n\t\t$topicid = 1;\t\n\t\t\/\/ Get the recent posts\n\t\t$posts = cets_get_recent_posts_from_topic_id($topicid, 1, 1);\n\t\t$topic = cets_get_topic($topicid);\n\t\tif (sizeOf($posts) > 0) {<br \/>\n\t\t\techo (&#8220;<\/p>\n<h3><a href='topic\/\" . strtolower($topic->slug) . &#8220;&#8216;>&#8221; . $topic->topic_name . &#8220;<\/a><\/h3>\n<p>&#8220;);<br \/>\n\t\t\techo (&#8220;<\/p>\n<ul>&#8220;);<br \/>\n\t\t\techo(cets_get_recent_posts_from_topic_id_html($topicid, 1, 1));<br \/>\n\t\t\techo (&#8220;<\/ul>\n<p>&#8220;);<br \/>\n\t\t\techo (&#8220;<\/p>\n<div class='topicMore'>&#8220;);<br \/>\n\t\t\techo (&#8220;<a href='\/topic\/\" . strtolower($topic->slug) . &#8220;&#8216;>(\u0627\u0644\u0645\u0632\u064a\u062f \u0645\u0646  &#8221; . $topic->slug . &#8221; \u0627\u0644\u062a\u062f\u0648\u064a\u0646\u0627\u062a <\/a> | <a href='\/sites\/\" . strtolower($topic->slug) . &#8220;&#8216;>\u0643\u0644  &#8221; . $topic->slug . &#8221; \u0627\u0644\u0645\u062f\u0648\u0646\u0627\u062a)<\/a>&#8220;);<br \/>\n\t\t\techo (&#8220;<\/div>\n<p>&#8220;);<br \/>\n\t\t\t}<br \/>\n\t\telse {<br \/>\n\t\t\techo(&#8220;There are no recent posts in this topic.&#8221;);<br \/>\n\t\t}<br \/>\n\t\t}<br \/>\n\t\t?>\n    <\/p><\/div>\n<p> <!-- \/ .topicListing --><br \/>\n    <?php \n\t\/\/ end widget area\n\tendif; \n\t?>\n    <\/div>\n<p><!-- \/ #sideContent1 --> <\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/pages\/54"}],"collection":[{"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.katib.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54"}],"version-history":[{"count":10,"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/pages\/54\/revisions"}],"predecessor-version":[{"id":14510,"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/pages\/54\/revisions\/14510"}],"wp:attachment":[{"href":"https:\/\/www.katib.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}