{"id":87,"date":"2010-09-25T16:27:01","date_gmt":"2010-09-25T13:27:01","guid":{"rendered":"http:\/\/www.katib.org\/"},"modified":"2010-10-02T13:22:55","modified_gmt":"2010-10-02T11:22:55","slug":"%d9%81%d9%84%d8%b3%d8%b7%d9%8a%d9%86","status":"publish","type":"page","link":"https:\/\/www.katib.org\/?page_id=87","title":{"rendered":"\u0641\u0644\u0633\u0637\u064a\u0646"},"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>  \t<?php \n  \tif (function_exists('cets_get_used_topics')){\n  \t\t$topics = \"\u0641\u0644\u0633\u0637\u064a\u0646\";\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>\u062a\u062f\u0648\u064a\u0646\u0627\u062a \u0645\u0646 $topics <\/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, 8, 0));<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; \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;);<br \/>\n\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;There are no current topics.&#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>Nothing to see here.&#8221;);<\/p>\n<p>\t\t}<br \/>\n\t?><\/p>\n<p><?php \n\t\/\/ end widget area\n\tendif; \n\t?>\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 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 = 15;\t\n\t\t\/\/ Get the recent posts\n\t\t$posts = cets_get_recent_posts_from_topic_id($topicid, 1, 0);\n\t\t$topic = cets_gettopic($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, 0, 0));<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 \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 \/>\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\/87"}],"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=87"}],"version-history":[{"count":4,"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/pages\/87\/revisions"}],"predecessor-version":[{"id":408,"href":"https:\/\/www.katib.org\/index.php?rest_route=\/wp\/v2\/pages\/87\/revisions\/408"}],"wp:attachment":[{"href":"https:\/\/www.katib.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}