function checkInternationalCalls($called) { global $international_calls; if (is_international($called)) { if (!$international_calls) { return false; } update_counters($called); if (!$international_calls) { return false; } } return true; }
/** * show_article * * * * * * */ function show_article($article, $config) { if (empty($article)) { return false; } update_counters($article['id']); $article_pre_url = $config['layout']['url_style'] == 'cms' ? $article['category_url'] : date('Y/m/d', $article['date_ts']); $article['link'] = WW_WEB_ROOT . "/" . $article_pre_url . "/" . $article['url'] . "/"; $article['current_page'] = !empty($_GET['p']) ? (int) $_GET['p'] : 0; // generate bookmarks $sharing_bookmarks = ''; if (!empty($config['connections']['sharing_bookmarks'])) { if (empty($config['connections']['sharing_custom'])) { $sharing_bookmarks = insert_bookmarks($article['title'], $article['link']); } else { $sharing_bookmarks = $config['connections']['sharing_custom']; } } // echo insert_page_header(); echo show_page_header($article['category_title'], date('d M Y', $article['date_ts'])); echo ' <div class="article_wrapper">'; echo show_article_title($article); echo show_article_byline($article); if ($config['connections']['sharing_position'] == 'article_top') { echo $sharing_bookmarks; } echo show_article_summary($article); echo show_article_body($article); echo show_article_attachments($article['attachments']); echo show_article_tags($article['tags']); if ($config['connections']['sharing_position'] == 'article_footer') { echo $sharing_bookmarks; } echo ' </div> <!-- close article wrapper --> '; }