function event_ExecuteEditor(&$data) { global $lang, $manager; if ($data['sheet'] == 'background') { if ($_SERVER['REQUEST_METHOD'] == 'POST') { $res = sql::query("\r\n\t\t\t\t\t\tREPLACE INTO \r\n\t\t\t\t\t\t\t" . _TABLE_PREFIX_ . "contents_background\r\n\t\t\t\t\t\tSET \r\n\t\t\t\t\t\t\tID='" . $data['params']['id'] . "', \r\n\t\t\t\t\t\t\trevision='" . $data['params']['revision'] . "',\r\n\t\t\t\t\t\t\timage='" . addslashes($_REQUEST['image']) . "', \r\n\t\t\t\t\t\t\tmodified=NOW()\r\n\t\t\t\t\t"); // Mark this action as a modification revisions::updateModificationDate($data['params']['id'], $data['params']['revision']); header("Location: " . url::item($data['params']['id'], 'edit') . "/background?revision=" . $data['params']['revision']); exit; } $res = sql::query("\r\n\t\t\t\t\tSELECT \r\n\t\t\t\t\t\t* \r\n\t\t\t\t\tFROM \r\n\t\t\t\t\t\t" . _TABLE_PREFIX_ . "contents_background\r\n\t\t\t\t\tWHERE \r\n\t\t\t\t\t\tid='" . $data['params']['id'] . "' AND\r\n\t\t\t\t\t\trevision='" . $data['params']['revision'] . "'\r\n\t\t\t\t"); if ($row = sql::fetch_array($res)) { $image = $row['image']; } else { $image = ''; } $tpl = new Template($this->getTemplate('editor.template')); $tpl->set('id', $data['params']['id']); $tpl->set('revision', $data['params']['revision']); $tpl->set('image', $image); $data['template']->append('content', $tpl->fetch()); // Make sure the following assets are included $data['page']->assets->registerJavascript('/core/assets/javascript/modaldialog.js'); $data['page']->assets->registerCSS($this->localAsset('editor.css')); } }
/** * Function to send email where the container is specified but not the email template. * */ function simple_pa_mail($to, $subject, $message, $from = DEFAULT_SENDER, $container_html = 'default_email_container.tpl') { if (empty($from)) { $from = DEFAULT_SENDER; } // patching up message and subject in the email container if (!empty($container_html)) { $email_container = new Template('config/email_containers/' . $container_html); $email_container->set('subject', $subject); $email_container->set('message', $message); // actual message to be sent through the mail $message = $email_container->fetch(); } $headers = "MIME-Version: 1.0\r\n" . "Content-type: text/html; charset=iso-8859-1\r\n" . "From: {$from}"; // if you want to test the e-mail system, set global // $mail_testing_callback to point to your own function, that // behaves like mail(). global $mail_testing_callback; $mail_func = $mail_testing_callback ? $mail_testing_callback : "mail"; $check = call_user_func($mail_func, $to, $subject, $message, $headers); if ($check == FALSE) { throw new PAException(MAIL_FUNCTION_FAILED, "Mail is not sent due to some internal server problem"); } else { return TRUE; } }
function generate_inner_html() { $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/side_inner_public.tpl'; $inner_html_gen = new Template($inner_template); $inner_html_gen->set('flag', $this->flag); $inner_html_gen->set('percentage', @$this->option_precent); $inner_html_gen->set('vote_count', @$this->option_vote_count); $inner_html_gen->set('topic', $this->topic); $inner_html_gen->set('total_vote', $this->total_vote_count); $inner_html_gen->set('options', $this->options); $inner_html_gen->set('cnt_prev', $this->cnt_prev); $inner_html_gen->set('gid', $this->gid); $url = isset($_SERVER['REDIRECT_URL']) ? $_SERVER['REDIRECT_URL'] : ''; $query = isset($_SERVER['REDIRECT_QUERY_STRING']) ? $_SERVER['REDIRECT_QUERY_STRING'] : ''; parse_str($query, $query_vars); if (!isset($query_vars['show_poll_results'])) { $query_vars['show_poll_results'] = 'true'; } if ($this->flag == 0) { $inner_html_gen->set('show_results_link', $url . (http_build_query($query_vars) != '' ? '?' . http_build_query($query_vars) : '')); } else { $inner_html_gen->set('show_results_link', ''); } if (!$this->previous_vote_detected && $this->flag == 1) { unset($query_vars['show_poll_results']); $inner_html_gen->set('show_poll_link', $url . (http_build_query($query_vars) != '' ? '?' . http_build_query($query_vars) : '')); } else { $inner_html_gen->set('show_poll_link', ''); } $inner_html = $inner_html_gen->fetch(); return $inner_html; }
public static function generatePage(&$tpl, &$session, &$account, &$mj) { $dbMgr = DbManager::getInstance(); //Instancier le gestionnaire $db = $dbMgr->getConn('game'); //Demander la connexion existante $maxMsg = 50; $nbrMsg = isset($_GET['hepage']) ? $maxMsg * ($_GET['hepage'] - 1) : 0; //Charger le perso $query = 'SELECT *' . ' FROM ' . DB_PREFIX . 'perso' . ' WHERE id=:id' . ' LIMIT 1;'; $prep = $db->prepare($query); $prep->bindValue(':id', $_GET['id'], PDO::PARAM_INT); $prep->executePlus($db, __FILE__, __LINE__); $arr = $prep->fetch(); $prep->closeCursor(); $prep = NULL; $perso = new Member_Perso($arr); //Lister les messages du HE $heMsg = self::listMessages($nbrMsg, $maxMsg, $_GET['id']); $code = ''; while ($msg = array_shift($heMsg)) { $tpl2 = new Template($account); $tpl2->set('MSG', $msg); $tpl2->set('SKIN_VIRTUAL_PATH', SITE_VIRTUAL_PATH); $code .= $tpl2->fetch($account->getSkinRemotePhysicalPath() . 'html/Mj/Perso/He_item.htm'); unset($tpl2); } $tpl->set('HE_MESSAGES', $code); //Trouver les sur la taille du HE $heSize = self::calculateHeSize((int) $_GET['id']); $tpl->set('HE_SIZE', $heSize); $tpl->set('HE_MSGPERPAGE', $maxMsg); $tpl->set('HE_PAGE', isset($_GET['hepage']) ? (int) $_GET['hepage'] : 1); return $tpl->fetch($account->getSkinRemotePhysicalPath() . 'html/Mj/Perso/He.htm'); }
function event_ExecuteEditor(&$data) { global $lang, $manager, $user; if (isset($manager->types[$data['type']]['content']['story']) && $data['sheet'] == 'contents') { // Retrieve story $res = sql::query("\n\t\t\t\t\tSELECT \n\t\t\t\t\t\t*\n\t\t\t\t\tFROM \n\t\t\t\t\t\t" . _TABLE_PREFIX_ . "contents_story \n\t\t\t\t\tWHERE \n\t\t\t\t\t\t`ID` = '" . $data['params']['id'] . "' AND\n\t\t\t\t\t\t`revision` = '" . $data['params']['revision'] . "'\n\t\t\t\t"); if ($row = sql::fetch_array($res, MYSQL_ASSOC)) { $story = $row; } else { $story = array('text' => ''); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { $_POST['text'] = filter::images($_POST['text']); $_POST['text'] = filter::html($_POST['text']); $res = sql::query("\n\t\t\t\t\t\tREPLACE INTO \n\t\t\t\t\t\t\t" . _TABLE_PREFIX_ . "contents_story \n\t\t\t\t\t\tSET \n\t\t\t\t\t\t\tID='" . $data['params']['id'] . "', \n\t\t\t\t\t\t\trevision='" . $data['params']['revision'] . "',\n\t\t\t\t\t\t\ttext='" . addslashes($_POST['text']) . "'\n\t\t\t\t\t"); // Mark this action as a modification revisions::updateModificationDate($data['params']['id'], $data['params']['revision']); header("Location: " . url::item($data['params']['id'], 'edit') . "/contents?revision=" . $data['params']['revision']); exit; } $tpl = new Template($this->getTemplate('editor.template')); $tpl->set('story', $story); $tpl->set('id', $data['params']['id']); $tpl->set('revision', $data['params']['revision']); $data['template']->append('content', $tpl->fetch()); } }
function event_ExecuteEditor(&$data) { global $lang, $manager; if ($data['type'] == 'external' && $data['sheet'] == 'external') { if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_REQUEST['url'] != 'http://') { $res = sql::query("\r\n\t\t\t\t\t\t\tREPLACE \r\n\t\t\t\t\t\t\t\t" . _TABLE_PREFIX_ . "contents_external\r\n\t\t\t\t\t\t\tSET\r\n\t\t\t\t\t\t\t\tID='" . $data['params']['id'] . "',\r\n\t\t\t\t\t\t\t\trevision='" . $data['params']['revision'] . "',\r\n\t\t\t\t\t\t\t\turl='" . addslashes($_REQUEST['url']) . "'\r\n\t\t\t\t\t\t"); } // Mark this action as a modification revisions::updateModificationDate($data['params']['id'], $data['params']['revision']); header("Location: " . url::item($data['params']['id'], 'edit') . "/external?revision=" . $data['params']['revision']); exit; } $res = sql::query("\r\n\t\t\t\t\tSELECT\r\n\t\t\t\t\t\t*\r\n\t\t\t\t\tFROM\r\n\t\t\t\t\t\t" . _TABLE_PREFIX_ . "contents_external\r\n\t\t\t\t\tWHERE\r\n\t\t\t\t\t\tID='" . $data['params']['id'] . "' AND\r\n\t\t\t\t\t\trevision='" . $data['params']['revision'] . "'\r\n\t\t\t\t"); $tpl = new Template($this->getTemplate('editor.template')); if ($row = sql::fetch_array($res)) { $tpl->set("url", $row['url']); } else { $tpl->set("url", 'http://'); } $tpl->set("id", $data['params']['id']); $tpl->set("revision", $data['params']['revision']); $data['template']->append('content', $tpl->fetch()); } }
function action_linkpopup($args) { global $config, $manager, $tree, $user, $lang; $tpl = new Template($this->getTemplate('main.template')); if ($config->get('multiLanguageSupport')) { @(include _BASE_LIBRARIES_ . 'resources/iso639to3166.php'); $languages = array(); $list = new languages(_DEFAULT_SITE_); while (list(, $language) = each($list->nodes)) { if ($language->public) { $languages[] = array('id' => $language->id, 'name' => $language->name, 'flag' => strtolower($iso639to3166[$language->id])); } } $tpl->set('languages', $languages); } // Call the RetrieveObjects functions of each plugin if (count($args)) { $id = array_shift($args); $result = array(); $files = array(); $data = array('id' => intval($id), 'result' => &$result); $manager->handleEvent('RetrieveObjects', $data); while (list(, $entries) = each($result)) { $files = array_merge($files, $entries); } $tpl->set('files', $files); } echo $tpl->fetch(); exit; }
/** * @covers Template::containsKey */ public function testContainsKey() { $key = "class"; $value = "errorCall"; $this->object->set($key, $value); $this->assertTrue($this->object->containsKey($key)); }
/** * Apply common variables to the header template * Common variables include: * * pageStylesheets * * pageJavascripts * * urlbase * * @access protected * @return void * @param Template $tpl * @param boolean $options */ protected function applyCommonVariables($tpl, $options = false) { $config = $this->sl->get('aetherConfig'); if (!$options) { $options = $config->getOptions(); } $tpl->set('urlbase', $config->getBase()); // Stylesheets. Read from config and code $styles = array(); if (array_key_exists('styles', $options)) { $styles = explode(';', $options['styles']); } foreach ($this->sl->getVector('styles') as $style) { $styles[] = $style; } $styles = array_map('trim', $styles); $styles = array_unique($styles); $tpl->set('pageStylesheets', $styles); // Scripts $scripts = array(); if (array_key_exists('javascripts', $options)) { $scripts = explode(';', $options['javascripts']); } foreach ($this->sl->getVector('javascripts') as $script) { $scripts[] = $script; } $scripts = array_map('trim', $scripts); $scripts = array_unique($scripts); $tpl->set('pageJavascripts', $scripts); }
function generate_inner_html() { if (empty($this->links)) { return ""; } $links = $this->links; /* if ($links->type == 'textpad') { $this->title = $links->title; } */ $pos = explode(',', $links->orientation); $x_loc = $pos[0]; if ($x_loc == 2) { $width = AD_WIDTH_MIDDLE; //$height = AD_HEIGHT_MIDDLE; } else { $width = AD_WIDTH_LR; //$height = AD_HEIGHT_LR; $this->outer_template = 'cnmodule_advertisement.php'; } // we never want to reduce the height of an ad, so we set $height very high $height = 1000; $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/cnmodule.php'; $inner_html_gen = new Template($tmp_file); $inner_html_gen->set_object('links', $links); $inner_html_gen->set('width', $width); $inner_html_gen->set('height', $height); $inner_html_gen->set('block_name', $this->html_block_id); $inner_html = $inner_html_gen->fetch(); return $inner_html; }
function content_horizontal(&$data) { global $manager, $tree, $user; if ($item =& $tree->getItemById($data['params']['id'])) { if (!$item['visible']) { return; } $tpl = new Template($this->getTemplate('main.template', $data['type'])); if (intval($item['parent']) > 0) { $parent =& $tree->getItemById($item['parent']); $list =& $parent['children']; } else { $list =& $GLOBALS['tree']->tree; } $prev = null; reset($list); while (list($k, ) = each($list)) { if ($list[$k]['id'] == $item['id']) { if ($prev) { $tpl->set('prev', $prev); } if (list($k, ) = each($list)) { $tpl->set('next', $list[$k]); } break; } $prev = $list[$k]; } $data['page']->composite->set('horizontal', $tpl->fetch()); } }
function action_search($args) { global $manager, $tree, $lang; /* Decode argumenst */ $action = 'search'; // Setup template if (file_exists(_BASE_TEMPLATES_ . $action . '.template')) { $tpl = new Template(_BASE_TEMPLATES_ . $action . '.template'); } else { $tpl = new Template(_BASE_TEMPLATES_ . 'main.template'); } // Notify plugins of a PreSkinParse event; $data = array('template' => &$tpl, 'type' => null, 'params' => array('action' => $action, 'id' => null, 'args' => $args)); $manager->handleEvent('PreSkinParse', $data); // Get contents if (trim($_REQUEST['fQuery']) != '') { $keywords = $this->_generateKeywords($_REQUEST['fQuery']); $result = $this->_collectSearch($keywords); } else { $keywords = array(); $result = array(); } $t = new Template($this->getTemplate('results.template')); $t->set('result', $result); $t->set('keywords', implode(', ', $keywords)); $tpl->set('title', $lang->s('search')); $tpl->set('content', $t->fetch()); echo $tpl->fetch(); }
function generate_inner_html() { $inner_template = NULL; switch ($this->mode) { default: $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_html.tpl'; } if (!empty($this->profile_feeds)) { $counter = 0; foreach ($this->profile_feeds as $data) { $params = array('feed_id' => $data['feed_id']); $ExternalFeed = new ExternalFeed(); try { //Getting the feed data corresponding to the feed id $this->profile_feeds[$counter]['links'] = $ExternalFeed->get_feed_data($params); } catch (PAException $e) { //TODO: pending error handling if function fails. //$error = $e->message; } $counter++; } } $inner_html_gen = new Template($inner_template); $inner_html_gen->set('profile_feeds', @$this->profile_feeds); $inner_html_gen->set('feed_id', $this->feed_id); $inner_html = $inner_html_gen->fetch(); return $inner_html; }
function generate_inner_html() { $Pagination = new Pagination(); $Pagination->setPaging($this->Paging); $this->page_prev = $Pagination->getPreviousPage(); $this->page_next = $Pagination->getNextPage(); $this->page_links = $Pagination->getPageLinks(); $inner_template = NULL; switch ($this->mode) { case 'relations': case 'in_relations': $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public_relation.tpl'; break; default: $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public_relation.tpl'; } $obj_inner_template = new Template($inner_template, $this); $obj_inner_template->set_object('links', $this->links); $obj_inner_template->set_object('gid', @$this->gid); $obj_inner_template->set('sub_title', @$this->sub_title); $obj_inner_template->set('total', $this->Paging['count']); $obj_inner_template->set('reciprocated_relationship_set', @$this->reciprocated_relationship_set); $obj_inner_template->set('relations', @$this->relations); $obj_inner_template->set('in_relations', @$this->in_relations); $obj_inner_template->set('user_name', $this->page_user); $obj_inner_template->set('page_prev', $this->page_prev); $obj_inner_template->set('page_next', $this->page_next); $obj_inner_template->set('page_links', $this->page_links); $obj_inner_template->set('view_type', $this->view_type); $inner_html = $obj_inner_template->fetch(); return $inner_html; }
function generate_inner_html() { $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/cnmodule_content.php'; $inner_html_gen = new Template($tmp_file); $inner_html_gen->set('link_categories_array', $this->get_link_categories()); $inner_html_gen->set('config_navigation_url', network_config_navigation('manage_link')); $inner_html = $inner_html_gen->fetch(); return $inner_html; }
function action_move($args) { global $manager, $tree, $user, $lang; /* Decode argumenst */ $id = array_shift($args); $item =& $tree->getItemById($id); $id = $item['id']; if (!$tree->_hasRights('admin', $item['rights'])) { header('Location: ' . url::item($id)); exit; } if ($_SERVER['REQUEST_METHOD'] == 'POST') { $parentid = intval($_POST['parent']); $position = 0; if ($parentid == 0) { reset($tree->tree); while (list($k, ) = each($tree->tree)) { if ($tree->tree[$k]['id'] != 'admin') { $position = max($position, $tree->tree[$k]['position']); } } } else { if ($parent =& $tree->getItemById($parentid)) { if (isset($parent['children'])) { reset($parent['children']); while (list($k, ) = each($parent['children'])) { $position = max($position, $parent['children'][$k]['position']); } } } } $position++; treeStorage::startTransaction(); treeStorage::prepareForMove($id, $parentid, $_POST['language']); sql::query("\r\n\t\t\t\t\tUPDATE \r\n\t\t\t\t\t\t" . _TABLE_PREFIX_ . "contents\r\n\t\t\t\t\tSET \r\n\t\t\t\t\t\t`parent`='" . $parentid . "',\r\n\t\t\t\t\t\t`position`=" . $position . "\r\n\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t`ID`='" . $id . "'\r\n\t\t\t\t"); treeStorage::stopTransaction(); // Our url needs to be rebuild... $url = url::item($id); $url = str_replace('/' . $item['meta']['language'] . '/', '/' . $_POST['language'] . '/', $url); header("Location: " . $url); exit; } else { @(include _BASE_LIBRARIES_ . 'resources/iso639to3166.php'); $languages = array(); $list = new languages(_DEFAULT_SITE_); while (list(, $language) = each($list->nodes)) { if ($language->public) { $languages[] = array('id' => $language->id, 'name' => $language->name, 'flag' => strtolower($iso639to3166[$language->id])); } } $tpl = new Template($this->getTemplate('move.template')); $tpl->set('languages', $languages); $tpl->set('id', $id); echo $tpl->fetch(); exit; } }
function generate_inner_html() { $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl'; $inner_html_gen = new Template($inner_template); $inner_html_gen->set('parameters', Ranking::get_parameters()); $inner_html_gen->set('error', $this->error); $inner_html_gen->set('config_navigation_url', network_config_navigation('manage_ranking')); $inner_html = $inner_html_gen->fetch(); return $inner_html; }
function generate_inner_html() { $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl'; $inner_html_gen = new Template($tmp_file); $inner_html_gen->set('conversations', $this->_conversations); $inner_html_gen->set('issues', $this->_issues); $inner_html_gen->set('following', $this->_following); $inner_html = $inner_html_gen->fetch(); return $inner_html; }
function generate_inner_html() { $links = $this->get_links(); $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl'; $inner_html_gen = new Template($tmp_file); $inner_html_gen->set('links', $links); $inner_html_gen->set('config_navigation_url', network_config_navigation('manage_persionalized_video')); $inner_html = $inner_html_gen->fetch(); return $inner_html; }
function generate_inner_html() { $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl'; $inner_html_gen = new Template($tmp_file); $inner_html_gen->set('network_links', $this->network_links); $inner_html_gen->set('featured_network', $this->featured_network); $inner_html_gen->set('config_navigation_url', network_config_navigation('set_featured_network')); $inner_html = $inner_html_gen->fetch(); return $inner_html; }
/** * (non-PHPdoc) * @see Block_Abstract::render() */ public function render() { $this->_collectData(); $tpl = new Template(); $tpl->setData(array('config' => $this->_config, 'place' => $this->_config['place'], 'menuData' => $this->_data)); if (static::dependsOnPage) { $tpl->set('page', Page::getInstance()); $tpl->set('pagesTree', Model::factory('Page')->getTree()); } return $tpl->render(Application::getTemplatesPath() . $this->_template); }
/** !! * Generates the HTML to be passed along by {@see render()} * @return string HTML. */ function generate_inner_html() { $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/side_inner_public.tpl'; $inner_html_gen = new Template($tmp_file, $this); $inner_html_gen->set('assoc_id', $this->assoc_id); $inner_html_gen->set('assoc_type', $this->assoc_type); //$inner_html_gen->set('assoc_title', $this->assoc_title); $inner_html_gen->set('may_edit', $this->may_edit); $inner_html = $inner_html_gen->fetch(); return $inner_html; }
function generate_inner_html() { switch ($this->mode) { default: $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl'; } $net_details = new Template($tmp_file); $net_details->set('config_navigation_url', network_config_navigation('bulletins')); $net_details->set('preview_msg', $this->preview_msg); $inner_html = $net_details->fetch(); return $inner_html; }
function generate_inner_html() { switch ($this->mode) { default: $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_private.tpl'; } $inner_html_gen = new Template($inner_template); $inner_html_gen->set('form_data', @$this->form_data); $inner_html_gen->set('config_navigation_url', network_config_navigation('create_user')); $inner_html = $inner_html_gen->fetch(); return $inner_html; }
/** * Weekdays * * Description: This function generates the weekday's table. It can * be used for viewing existing timers, adding new timers and editing * * @param $string if received will contain string such as: 'sm.w.fs' from schedule file * @param $lang contains all the language strings to be used * @param $list boolean if true weekday's belong to timer listing * @param $enabled represent boolean for status of timer */ function weekdays($string, $lang, $list, $enabled) { global $wdayo; $wdayt = array(substr($lang['sun'], 0, 1), substr($lang['mon'], 0, 1), substr($lang['tue'], 0, 1), substr($lang['wed'], 0, 1), substr($lang['thu'], 0, 1), substr($lang['fri'], 0, 1), substr($lang['sat'], 0, 1)); $week_tpl = new Template(TPL_FILE_LOCATION . 'weekdays.tpl'); $week_tpl->set('wdayt', $wdayt); $week_tpl->set('wdayo', $wdayo); $week_tpl->set('weekdays', $string); $week_tpl->set('enabled', $enabled); $week_tpl->set('list', $list); return $week_tpl->fetch(TPL_FILE_LOCATION . 'weekdays.tpl'); }
function generate_center_public_inner_html() { $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . "/inner_html.tpl"; $info = new Template($tmp_file, $this); $info->set_object('uid', @$this->uid); $info->set('msg', @$this->msg); $info->set('array_of_errors', @$this->array_of_errors); $info->set('user_picture', @$this->user_picture); $info->set('login_name', @$this->login_name); $info->set('rel_type', @$this->rel_type); $inner_html = $info->fetch(); return $inner_html; }
function generate_inner_html($links) { $inner_template = NULL; switch ($this->mode) { default: $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/side_inner_public.tpl'; } $obj_inner_template = new Template($inner_template); $obj_inner_template->set('links', $links); $obj_inner_template->set('current_theme_path', PA::$theme_url); $inner_html = $obj_inner_template->fetch(); return $inner_html; }
function generate_inner_html() { switch ($this->mode) { default: $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_html.tpl'; } $inner_html_generate = new Template($tmp_file); $inner_html_generate->set('module_settings', $this->module_settings); $inner_html_generate->set('page_id', $this->page_id); $inner_html_generate->set('config_navigation_url', network_config_navigation('module_selector')); $inner_html = $inner_html_generate->fetch(); return $inner_html; }
function generate_inner_html() { $tmp_file = PA::$blockmodule_path . '/' . get_class($this) . '/side_inner_public.tpl'; $inner_html_gen = new Template($tmp_file); $inner_html_gen->set('thoughts', $this->_thoughts); if (isset($this->shared_data) && isset($this->shared_data['is_my_profile']) && !empty($this->shared_data['is_my_profile'])) { if ($this->shared_data['is_my_profile'] == true) { $inner_html_gen->set('manage_thoughts_url', PA::$url . "/content_management.php"); } } $inner_html = $inner_html_gen->fetch(); return $inner_html; }
function generate_inner_html() { switch ($this->mode) { default: $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/center_inner_public.tpl'; } $this->title = ucfirst($this->group_details['title']); $inner_html_gen = new Template($inner_template); $inner_html_gen->set('current_theme_path', PA::$theme_url); $inner_html_gen->set('group_details', $this->group_details); $inner_html_gen->set('group_action', group_user_authentication($this->group_details['collection_id'])); $inner_html = $inner_html_gen->fetch(); return $inner_html; }