function render_news() { global $help_interfaces; echo ' <section id="news" class="context-menu-' . $this->_diff . '-' . $this->_is_secondary . '-' . $this->_partner_dob . '-' . $this->_lang_code . '"> <h5>' . $this->_news_h5 . '</h5> <div class="helper changeable"><i class="icon-circle-question-mark icon-white"></i></div> <ul>'; load_news_feed(get_zodiac_from_dob($this->_dob, $this->_lang_code) . ' ' . date('Y')); load_news_feed(get_zodiac_from_dob($this->_dob, $this->_lang_code)); load_news_feed(get_lunar_year($this->_dob, $this->_lang_code) . ' ' . date('Y')); load_news_feed(get_lunar_year($this->_dob, $this->_lang_code)); echo ' </ul> </section> '; }
<?php require_once realpath($_SERVER['DOCUMENT_ROOT']) . '/includes/init_trigger.inc.php'; if (isset($_GET['lang_code'])) { load_news_feed($span_interfaces['health'][$_GET['lang_code']]); load_news_feed($span_interfaces['biorhythm'][$_GET['lang_code']]); load_news_feed(get_zodiac_from_dob($dob, $_GET['lang_code'])); load_news_feed(date('Y', strtotime($dob))); load_news_feed(); }