function update_display_content(&$a) { $profile_uid = intval($_GET['p']); if (!$profile_uid) { $profile_uid = -1; } $load = argc() > 1 && argv(1) == 'load' ? 1 : 0; header("Content-type: text/html"); echo "<!DOCTYPE html><html><body>\r\n"; echo $_GET['msie'] == 1 ? '<div>' : '<section>'; $text = display_content($a, $profile_uid, $load); $pattern = "/<img([^>]*) src=\"([^\"]*)\"/"; $replace = "<img\${1} dst=\"\${2}\""; // $text = preg_replace($pattern, $replace, $text); /* if(! $load) { $replace = '<br />' . t('[Embedded content - reload page to view]') . '<br />'; $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i"; $text = preg_replace($pattern, $replace, $text); $pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i"; $text = preg_replace($pattern, $replace, $text); $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i"; $text = preg_replace($pattern, $replace, $text); $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i"; $text = preg_replace($pattern, $replace, $text); } */ echo str_replace("\t", ' ', $text); echo $_GET['msie'] == 1 ? '</div>' : '</section>'; echo "</body></html>\r\n"; // logger('update_display: ' . $text); killme(); }
function render_page_html() { scripts_i18n(); page_head(); display_filters(); display_content(); page_foot(); }
/** * Prints a user's mainpage */ function display_mainpage() { display_menu(); print "<div class=\"container2\">"; display_content(); print "</div>"; display_copyright(); display_footer(); }
function update_display_content(&$a) { $profile_uid = intval($_GET['p']); header("Content-type: text/html"); echo "<!DOCTYPE html><html><body>\r\n"; echo "<section>"; $text = display_content($a, $profile_uid); $pattern = "/<img([^>]*) src=\"([^\"]*)\"/"; $replace = "<img\${1} dst=\"\${2}\""; $text = preg_replace($pattern, $replace, $text); $replace = '<br />' . t('[Embedded content - reload page to view]') . '<br />'; $pattern = "/<\\s*audio[^>]*>(.*?)<\\s*\\/\\s*audio>/i"; $text = preg_replace($pattern, $replace, $text); $pattern = "/<\\s*video[^>]*>(.*?)<\\s*\\/\\s*video>/i"; $text = preg_replace($pattern, $replace, $text); $pattern = "/<\\s*embed[^>]*>(.*?)<\\s*\\/\\s*embed>/i"; $text = preg_replace($pattern, $replace, $text); $pattern = "/<\\s*iframe[^>]*>(.*?)<\\s*\\/\\s*iframe>/i"; $text = preg_replace($pattern, $replace, $text); echo str_replace("\t", ' ', $text); echo "</section>"; echo "</body></html>\r\n"; killme(); }
$header_title = display_header_title($portal_id, $topic_id, $sub_topic_1_id, $sub_topic_2_id, $sub_topic_3_id, $sub_topic_4_id, $category_id); echo $header_title; ?> </h1> <!-- end row 1 --></header> <?php } ?> <!-- row 2 LOCAL/TOPIC navigation-------------------------------------------------------------------------------> <?php if ($portal_id != 156) { display_local_navigation($portal_id, $topic_id, $sub_topic_1_id, $sub_topic_2_id, $sub_topic_3_id, $sub_topic_4_id, $category_id); } ?> <!-- row 4 breadcrumb div------------------------------------------------------------------------------------------------------> <?php display_breadcrumbs($portal_id, $topic_id, $sub_topic_1_id, $sub_topic_2_id, $sub_topic_3_id, $sub_topic_4_id, $category_id); ?> <!-- row 5 CONTENT - main content section AND Quicklinks sidebar ------------------------------------------------------------------------------------------------------------------------------------------------------------------> <div class="row"> <?php display_content($portal_id, $topic_id, $sub_topic_1_id, $sub_topic_2_id, $sub_topic_3_id, $sub_topic_4_id, $category_id); ?> <!-- end .row --></div> <br class="clearfloat" /> <!-- FOOTER --------------------------------------------------------------------------------------------------------------------------------------------------> <?php require_once "includes/footer.php";
<?php if (session_id() == "") { session_start(); } $docroot = $_SERVER['DOCUMENT_ROOT']; require_once $docroot . "/config.php"; require_once $docroot . "/models/twextra_model.php"; require_once $docroot . "/controllers/twextra_controller.php"; require_once $docroot . "/banner.php"; require_once $docroot . "/header_html.php"; $screen_name = $_SESSION['user']; require_once $docroot . "/tw.lib.php"; //validate access; validate_access_twetest(); display_content($screen_name); //......................................................................................... function display_content($screen_name = '') { //configuration parameters: $config_params = Config::getConfigParams(); $css = $config_params['css']; $tweet_size_max = $config_params['tweet_size_max']; $tweet_size_max_google = $config_params['tweet_size_max_google']; $hostname = $config_params['hostname']; $doctype = $config_params['doctype']; $html_attribute = $config_params['html_attribute']; $banner = banner('', 'banner'); //(user, banner_class) $footer = $config_params['footer']; //
<?php get_header(); ?> <!-- Header Ends Here --> <!-- Content Begins Here --> <!-- Main Content Section Begins Here --> <div class="container"> <div class="row"> <div class="<?php display_content(); ?> "> <?php if (have_posts()) { ?> <!-- the loop --> <?php while (have_posts()) { the_post(); ?> <article id="post-content-<?php the_ID(); ?> " class="post-content"> <div class="col-xs-12 margin-bottom-md"> <div class="col-xs-12"> <?php if (has_post_thumbnail()) { the_post_thumbnail('', array('class' => "img-responsive center-block")); }