{"id":76,"date":"2010-09-25T16:22:59","date_gmt":"2010-09-25T13:22:59","guid":{"rendered":"http:\/\/www.katib.org\/"},"modified":"2010-10-11T15:44:39","modified_gmt":"2010-10-11T13:44:39","slug":"%d8%a7%d9%84%d9%83%d9%88%d9%8a%d8%aa","status":"publish","type":"page","link":"https:\/\/www.katib.org\/?page_id=76","title":{"rendered":"\u0627\u0644\u0643\u0648\u064a\u062a"},"content":{"rendered":"<p><?php \/*this function to display the posts according to the country  22\/9\/2010 *\/ ?><\/p>\n<p><?php get_header(); ?><\/p>\n<div id=\"mainContent\">\n<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(\"Main Widgets\") ) : ?><\/p>\n<p><?php\nif (function_exists('cets_get_used_topics')){\n$topics = \"\u0627\u0644\u0643\u0648\u064a\u062a\";\nif (sizeOf($topics) >1 || (sizeOf($topics == 1) &#038;&#038; $topics[0]->id != 1)){<br \/>\n\/\/ if there&#8217;s only 1 topic, make sure it&#8217;s not news and communications<br \/>\necho (&#8220;<\/p>\n<h2>\u062a\u062f\u0648\u064a\u0646\u0627\u062a \u0645\u0646 $topics <\/h2>\n<p>&#8220;);<br \/>\nforeach($topics as $topic) {<br \/>\nif ($topic->id != 1){ \/\/ TODO: Convert this to featured topic<br \/>\necho(&#8220;<\/p>\n<div class='topicListing \" . $topic->slug . &#8220;&#8216;>&#8221;);<br \/>\necho (&#8220;<\/p>\n<h3><a href='topic\/\" . strtolower($topic->slug) . &#8220;&#8216;>&#8221; . $topic->topic_name . &#8220;<\/a><\/h3>\n<p>&#8220;);<br \/>\necho (&#8220;<\/p>\n<ul>&#8220;);<br \/>\necho (cets_get_recent_posts_from_topic_id_html($topic->id, 8, 0));<br \/>\necho (&#8220;<\/ul>\n<p>&#8220;);<br \/>\necho (&#8220;<\/p>\n<div class='topicMore'>&#8220;);<br \/>\necho (&#8220;<a href='\/topic\/\" . strtolower($topic->slug) . &#8220;&#8216;>(\u0627\u0644\u0645\u0632\u064a\u062f \u0645\u0646   &#8221; . $topic->slug . &#8221; \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 \/>\necho (&#8220;<\/div>\n<p>&#8220;);<br \/>\necho (&#8220;<\/p><\/div>\n<p>&#8220;);<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\nelse {<br \/>\necho(&#8220;There are no current topics.&#8221;);<br \/>\n}<br \/>\n}<\/p>\n<p>else {<\/p>\n<p>echo (&#8220;<\/p>\n<p>Nothing to see here.&#8221;);<\/p>\n<p>}<br \/>\n?><\/p>\n<p><?php\n\/\/ end widget area\nendif;\n?>\n<\/div>\n<p><!-- end #mainContent --><\/p>\n<div id=\"c1\">\n<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(\"Sidebar Widgets\") ) : ?><br \/>\n<!-- 280 x 210 \/ 280 x 158 --><\/p>\n<div>\n<?php\nif (function_exists('cets_get_recent_posts_from_topic_id')){\n\/\/ this is the \"featured\" topic, which for now let's hardcode to 1\n$topicid = 9;\n\/\/ Get the recent posts\n$posts = cets_get_recent_posts_from_topic_id($topicid, 1, 0);\n$topic = cets_get_topic($topicid);\nif (sizeOf($posts) > 0) {<br \/>\necho (&#8220;<\/p>\n<h3><a href='topic\/\" . strtolower($topic->slug) . &#8220;&#8216;>&#8221; . $topic->topic_name . &#8220;<\/a><\/h3>\n<p>&#8220;);<br \/>\necho (&#8220;<\/p>\n<ul>&#8220;);<br \/>\necho(cets_get_recent_posts_from_topic_id_html($topicid, 0, 0));<br \/>\necho (&#8220;<\/ul>\n<p>&#8220;);<br \/>\necho (&#8220;<\/p>\n<div class='topicMore'>&#8220;);<br \/>\necho (&#8220;<a href='\/topic\/\" . strtolower($topic->slug) . &#8220;&#8216;>( \u0627\u0644\u0645\u0632\u064a\u062f \u0645\u0646 \u062a\u062f\u0648\u064a\u0646\u0627\u062a &#8221; . $topic->slug . &#8221; <\/a> | <a href='\/sites\/\" . strtolower($topic->slug) . &#8220;&#8216;>  \u0643\u0644 \u0645\u062f\u0648\u0646\u0627\u062a  &#8221;  . $topic->slug . &#8221; )<\/a>&#8220;);<br \/>\necho (&#8220;<\/div>\n<p>&#8220;);<br \/>\n}<br \/>\nelse {<br \/>\necho(&#8220;There are no recent posts in this topic.&#8221;);<br \/>\n}<br \/>\n}<br \/>\n?>\n<\/p><\/div>\n<p> <!-- \/ .topicListing --><br \/>\n<?php\n\/\/ end widget area\nendif;\n?>\n<\/div>\n<p><!-- \/ #sideContent1 --><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":0,"parent":338,"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\/76"}],"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=76"}],"version-history":[{"count":5,"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/pages\/76\/revisions"}],"predecessor-version":[{"id":14513,"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/pages\/76\/revisions\/14513"}],"up":[{"embeddable":true,"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/pages\/338"}],"wp:attachment":[{"href":"https:\/\/www.katib.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}