/**
  * This is the main template constructor, use this by filling up the required parameters
  * 
  * @param string $template_name - directory inside the template
  * @param string $module - view directory
  * @param string $action - the page the template needs for the content
  */
 public function __construct($template_name, $module, $action = "index")
 {
     global $domains;
     $this->template_name = $template_name;
     $this->module = $module;
     $this->action = $action;
     $this->domain_template = $domains->retrieveTemplateByDomainName(Core_URL::getDomain());
 }
 private function buildURL($page)
 {
     return Core_URL::getBASEURL() . "/" . Core_URL::getCleanURL() . "?page=" . $page;
 }
Example #3
0
echo Configuration::getCSSPath() . "global.css";
?>
" />
		<script src="<?php 
echo Configuration::getJSPath() . "jquery-1.7.2.js";
?>
"></script>
	</head>
<body>

	<div id="holder">
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td>
					<img src="<?php 
echo Configuration::getURLPath() . "/logo.php?domain=" . $domains->retrieveTitleByDomainName(Core_URL::getDomain());
?>
"></td>
				<td><?php 
echo HTMLLayout::signIn();
?>
</td>

			</tr>
		</table>		
		<table width="100%">
			<tr>
				<td width="500">
					<ul id="mainmenu">
		                <li><a href="<?php 
echo Configuration::getURLPath();
Example #4
0
 private function buildURL($page)
 {
     return Core_URL::getBASEURL() . "/" . Core_URL::getCleanURL() . "?page=" . $page . $this->getQueryString();
 }
Example #5
0
 public static function getImagePath()
 {
     global $domains;
     return self::getURLPath() . '/resources/images/' . $domains->retrieveTemplateByDomainName(Core_URL::getDomain()) . "/";
 }