- Posts: 24
- Thank you received: 0
How to change "developed by Hot Joomla Templates?"
-
chinsen
Inactive member - Member
Less
More
11 years 3 months ago #32614
by chinsen
Replied by chinsen on topic How to change "developed by Hot Joomla Templates?"
Thanks Milos and Ivan
Could you elaborate on that though please? What am I looking to change at the bottom of the index.php you've pointed out?
Here's what I see -
Thanks!
Could you elaborate on that though please? What am I looking to change at the bottom of the index.php you've pointed out?
Here's what I see -
Code:
<?php
/*------------------------------------------------------------------------
# "Hot Wine" - Joomla Template Framework
# Copyright (C) 2012 HotThemes. All Rights Reserved.
# License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
# Author: HotJoomlaTemplates.com
# Website: http://www.hotjoomlatemplates.com
-------------------------------------------------------------------------*/
defined( '_JEXEC' ) or die( 'Restricted access' );
/* The following line loads the MooTools JavaScript Library */
JHtml::_('behavior.framework', true);
define( 'YOURBASEPATH', dirname(__FILE__) );
$template_path = $this->baseurl.'/'.'templates'.'/'.$this->template;
$css_request = false;
if (isset($_GET['css_request'])) {
if($_GET['css_request'] == "1") $css_request = true;
}
if(!$css_request){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<?php // template parameters
}
// template layout -----------------------------------------------------------------
$templateWidth = $this->params->get("templateWidth", "960");
$layoutdesign = $this->params->get("layoutdesign", "++logo=6=0,user3=6=0&++user1=12=0&++user2=12=0&++advert1=6=0,advert2=6=0&+paper+left=3=0,joom_content=5=0,right=4=0&+bottom_row+bottom1=3=0,bottom2=3=0,bottom3=3=0,bottom4=3=0&++copyright=12=0");
$cellPaddingHorizontal = $this->params->get("cellPaddingHorizontal", "0");
$cellPaddingVertical = $this->params->get("cellPaddingVertical", "0");
$cellMarginHorizontal = $this->params->get("cellMarginHorizontal", "30");
$cellMarginVertical = $this->params->get("cellMarginVertical", "0");
//----------END LAYOUT-----------------------------------------------------------
// Call Sparky Parameters -------------------------------------------------------
require(dirname(__FILE__).DS.'library'.DS.'sparky_parameters.php');
// template style - overwrite sparky_parameters.php and add specific settings for Hot Wine color schemes
// check if in parameters
$templateStyle = $this->params->get("templateStyle", "1");
// check if it cookie
if(isset($_COOKIE['Style']))
{
$templateStyle = $_COOKIE['Style'];
}
$templateStyleTest = "";
// check if in link
if (isset($_GET['style'])) {
$templateStyleTest = $_GET['style'];
}
if ($templateStyleTest) {
$templateStyle = $templateStyleTest;
$Month = 2592000 + time();
setcookie("Style", $templateStyle, $Month);
}
if($templateStyle) {
require(dirname(__FILE__).DS.'styles'.DS.'style'.$templateStyle.'.php');
}else{
$bodyBgImageFile = "bg.jpg";
$carouselBg = "carousel_bg.jpg";
$headingBg = "heading_bg.jpg";
$paperBg = "bg_paper.jpg";
$dateBg = "date_bg.jpg";
$linksColor = "#8B1E20";
}
// READ MENU CONFIGURATION ///////////////////////////////////////////////////////
$LoadMENU_Acc = false;
$LoadMENU_Navh = false;
$LoadMENU_Mega = false;
$LoadMENU_Nav = false;
global $mnucfg;
$mnucfg = array();
foreach( explode("&",$this->params->get("mnucfg", "")) as $mnu){
$mnu = explode("=",$mnu);
$mnu_name = $mnu[0];
$mnu_val = $mnu[1];
if($mnu_val == "acc"){
$LoadMENU_Acc = true;
}else if($mnu_val == "navh"){
$LoadMENU_Navh = true;
}else if($mnu_val == "nav"){
$LoadMENU_Nav = true;
}else if($mnu_val == "mega"){
$LoadMENU_Mega = true;
}
$mnucfg[$mnu_name] = array();
$mnucfg[$mnu_name]['type'] = $mnu_val;
foreach( explode(",",$mnu[2]) as $prm){
$prm = explode(":",$prm);
if($prm[0])
$mnucfg[$mnu_name][$prm[0]] = $prm[1];
}
}
////////////////////////////////////////////////////////////////////////////////
//e.g.: echo $mnucfg['footer1']['text_color'];
$spread_mode = true; //set this to false if you don't want modules to spread to empty modules right of them
//READ MODULE GRID START////////////////////////////////////////////////////////
$module_grid = $layoutdesign;
$module_grid = explode('&',$module_grid);
$loop = 0;
for($loop = 0; $loop < count($module_grid) ; $loop++){
$module_grid[$loop] = explode('+',$module_grid[$loop]);
if(stripos($module_grid[$loop][2], "joom_content") > -1){
$module_grid[$loop][3] = true;
}else{
$module_grid[$loop][3] = false;
}
$module_grid[$loop][2] = explode(',',$module_grid[$loop][2]);
$I = 0;
for($I = 0; $I < count($module_grid[$loop][2]) ; $I++){
$module_grid[$loop][2][$I] = explode('=',$module_grid[$loop][2][$I]);
$module_grid[$loop][2][$I][1] =intval($module_grid[$loop][2][$I][1]);
$module_grid[$loop][2][$I][2] =intval($module_grid[$loop][2][$I][2]);
}
if($spread_mode){
$carry_cell = 0;
$last_hasm = -1;
for($I = count($module_grid[$loop][2]) - 1 ;$I >= 0; $I--){
if(($this->countModules($module_grid[$loop][2][$I][0]) == 0 ) && $module_grid[$loop][2][$I][0] != 'joom_content' && $module_grid[$loop][2][$I][0] != 'logo' && $module_grid[$loop][2][$I][0] != 'fontresize' && $module_grid[$loop][2][$I][0] != 'copyright'){
$carry_cell += ($module_grid[$loop][2][$I][1] + $module_grid[$loop][2][$I][2]);
$module_grid[$loop][2][$I][1] = 0;
$module_grid[$loop][2][$I][2] = 0;
}else{
$module_grid[$loop][2][$I][1] += $carry_cell;
$carry_cell = 0;
$last_hasm = $I;
}
}
if($last_hasm != -1 && $carry_cell > 0){
$module_grid[$loop][2][$last_hasm][1] += $carry_cell;
}
}
}
//READ MODULE GRID END////////////////////////////////////////////////////////
if($css_request){
header("Content-type: text/css; charset: UTF-8");
header("Expires: ".gmdate("D, d M Y H:i:s", time() + 60*60)." GMT");
require(dirname(__FILE__).DS.'css'.DS.'template_css.php');
exit;
}else{
?>
<?php
$u =& JFactory::getURI();
$css_url = $u->toString();
$css_url = strrpos($css_url,'?')? $css_url.'&css_request=1' : $css_url.'?css_request=1';
$css_url = $css_url.'&diff='.rand();
?>
<link rel="stylesheet" href="<?php echo $css_url; ?>" type="text/css" />
<link rel="stylesheet" href="<?php echo $template_path ?>/css/joomla.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $template_path ?>/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $template_path ?>/css/layout.css" type="text/css" />
<?php if ($scrollToTopSwitch) { ?>
<link rel="stylesheet" href="<?php echo $template_path ?>/css/scroll_to_top.css" type="text/css" />
<?php } ?>
<script type="text/javascript" src="<?php echo $template_path ?>/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $template_path ?>/js/jquery/jquery-ui.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>
<script type="text/javascript" src="<?php echo $template_path ?>/js/reflection.js"></script>
<?php require(dirname(__FILE__).DS.'library'.DS.'menu_loader.php'); ?>
<script type="text/javascript" src="<?php echo $template_path ?>/js/hot_wine.js"></script>
</head>
<body>
<?php if ($topPanelSwitch) {
require(dirname(__FILE__).DS.'library'.DS.'top_panel.php');
} ?>
<div class="sparky_wrapper">
<?php
$cell_size = $templateWidth / 12;
$cell_size = floor($cell_size);
$empty_no = 0;
foreach($module_grid as $gridRow) {
//$gridRow[0] - Name
//$gridRow[1] - Class
//$gridRow[2] - ModulePos1,ModulePos2...
//$gridRow[3] - Holds content flag: true/false
//$mpostion[0] - postion name
//$mpostion[1] - number of grid cells occupied by position
//$mpostion[2] - number of empty cells left of module
$modules_in_row = 0;
foreach($gridRow[2] as $mpostion) {
$modules_in_row += $this->countModules($mpostion[0]); // number of active modules in the row
if($mpostion[0] == "logo") { $modules_in_row++; }
if($mpostion[0] == "joom_content") { $modules_in_row++; }
if($mpostion[0] == "copyright") { $modules_in_row++; }
}
if($modules_in_row) {
?>
<div class="sparky_full<?php if($gridRow[1]) { echo ' '.$gridRow[1]; } ?>">
<div class="sparky_main">
<div <?php if($gridRow[0]) { echo 'id="'.$gridRow[0].'"'; } ?> class="row">
<?php
foreach($gridRow[2] as $mpostion) {
$mpwidth = $cell_size * $mpostion[1];
if($mpwidth == 0) continue;
$mpleft_off = $cell_size * $mpostion[2];
if($mpostion[0] == "joom_content") { // if content cell
if($mpleft_off){ // if empty cell
?>
<div class="cell mp_empty<?php echo $empty_no; ?>" >
<!-- EMPTY CELL -->
<div> </div>
</div>
<?php
$empty_no++;
}
?>
<div class="content_sparky">
<div class="cell_pad">
<jdoc:include type="message" />
<div class="abovecontent">
<jdoc:include type="modules" name="abovecontent" style="xhtml" />
</div>
<jdoc:include type="component" />
<div class="belowcontent">
<jdoc:include type="modules" name="belowcontent" style="xhtml" />
</div>
</div>
</div>
<?php
} elseif($mpostion[0] == "logo") { // if logo cell
if($mpleft_off){ // if empty cell
require(dirname(__FILE__).DS.'library'.DS.'empty.php');
$empty_no++;
}
require(dirname(__FILE__).DS.'library'.DS.'logo.php');
}elseif($mpostion[0] == "fontresize") { // if fontresize cell
if($mpleft_off){ // if empty cell
require(dirname(__FILE__).DS.'library'.DS.'empty.php');
$empty_no++;
}
require(dirname(__FILE__).DS.'library'.DS.'font_resize.php');
}elseif($mpostion[0] == "copyright") { // if copyright cell
if($mpleft_off){ // if empty cell
require(dirname(__FILE__).DS.'library'.DS.'empty.php');
$empty_no++;
}
require(dirname(__FILE__).DS.'library'.DS.'c.php');
} else { // if normal module cell
if($mpleft_off){ // if empty cell
require(dirname(__FILE__).DS.'library'.DS.'empty.php');
$empty_no++;
}
?>
<div class="cell mp_<?php echo $mpostion[0];?>">
<div class="cell_pad">
<jdoc:include type="modules" name="<?php echo $mpostion[0]; ?>" style="xhtml" />
</div>
</div>
<?php
}
} ?>
</div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<?php
} // if $modules_in_row
} // foreach($module_grid as $gridRow)
?>
</div>
<?php
if ($equalHeightClasses) {
require(dirname(__FILE__).DS.'library'.DS.'equal_height.php');
}
if ($scrollToTopSwitch) {
require(dirname(__FILE__).DS.'library'.DS.'scroll_to_top.php');
}
if ($analyticsSwitch && $analyticsAccount) {
require(dirname(__FILE__).DS.'library'.DS.'analytics.php');
}
?>
</body>
</html>
<?php } // if($css_request) ?>
Thanks!
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 3 months ago #32620
by ivan.milic
Replied by ivan.milic on topic How to change "developed by Hot Joomla Templates?"
The line:
require(dirname(__FILE__).DS.'library'.DS.'c.php');
the php file c.php is located in library folder of template directory
require(dirname(__FILE__).DS.'library'.DS.'c.php');
the php file c.php is located in library folder of template directory
The following user(s) said Thank You: chinsen
Please Log in to join the conversation.
Time to create page: 0.074 seconds