######################################################################################################

Change log for 1.0.5 -> 1.0.6 [18/12/2012]

# Change "Show Color Box" to "Show 'Change Style' Box"
+ Add Responsive enabled/disable options
# Fix google font error when reset style options
# Fix menu change direction
# Correct template thumb spell

Changed Files:
/administrator/language/en-GB/en-GB.com_zo2framework.ini
/administrator/components/com_zo2framework/models/forms/template.xml
/templates/zo2_based (Change all folders)
/components/com_zo2framework/layouts/colors_box.php
/media/com_zo2framework/js/zo2-uncompressed.js
/administrator/components/com_zo2framework/sql/install.mysql.utf8.sql
/administrator/components/com_zo2framework/views/template/tmpl/edit_info.php
/administrator/components/com_zo2framework/views/templates/tmpl/default_body.php
/administrator/components/com_zo2framework/views/template/tmpl/edit_info.php

######################################################################################################

Change log for 1.0.4 -> 1.0.5 [18/12/2012]

# Fix HTML Validate Problems

Changed Files:
/components/com_zo2framework/includes/menu.php
/components/com_zo2framework/layouts/_color.php
/components/com_zo2framework/layouts/_link.php
/components/com_zo2framework/layouts/_mtitle.php
/components/com_zo2framework/layouts/_text.php
/templates/zo2_based/index.php
/plugins/system/shortcodes/shortcodes.php
/plugins/system/shortcodes/assets/includes/allshortcodes.php
/plugins/content/zo2framework/libs/googleMaps.lib.php
/plugins/system/plg_ztools/plg_ztools.php

######################################################################################################

Change log for 1.0.3 -> 1.0.4 [07/11/2012]

# Fix html and doctype (change to HTML 5)
# Change zo2_default template folder name -> zo2_based
# Fix ul.the-icons css issue in wide sreen
# Add position tags for templateDetails.xml of zo2_based template
# Add new Template Param to show or hide footer logo

Open file: media/com_zo2framework/media/css/general.css
Search for (Line 1050):
------------------------------------------------------------------------------------------------------
ul.the-icons li i{ text-indent: -999px;}
------------------------------------------------------------------------------------------------------
And Replace it By:
------------------------------------------------------------------------------------------------------
ul.the-icons li i{ text-indent: -9999px;}
------------------------------------------------------------------------------------------------------




Open file: administrator/components/com_zo2framework/models/forms/template.xml
Search for (Line 103-116):
------------------------------------------------------------------------------------------------------
	<!--Footer block-->
	<fieldset name="footer">
		<field
			name="footer_text"
			type="alltext"
			label="COM_ZO2FRAMEWORK_GLOBAL_FOOTER_TEXT_LABEL"
			description="COM_ZO2FRAMEWORK_GLOBAL_FOOTER_TEXT_DESC"
			class="inputbox"
			required="false"
			cols="15"
			rows="3"
			filter="safehtml"
			default=""
		/>
------------------------------------------------------------------------------------------------------
And Replace it By:
------------------------------------------------------------------------------------------------------
	<!--Footer block-->
	<fieldset name="footer">
		<field
			name="footer_logo"
			type="list"
			label="COM_ZO2FRAMEWORK_GLOBAL_FOOTER_LOGO_LABEL"
			description="COM_ZO2FRAMEWORK_GLOBAL_FOOTER_LOGO_DESC"
			class="inputbox"
			default="1">			
			<option value="1">JOPTION_SELECT_PUBLISHED_PUBLISHED</option>
			<option value="0">JOPTION_SELECT_PUBLISHED_UNPUBLISHED</option>
		</field>
		<field
			name="footer_text"
			type="alltext"
			label="COM_ZO2FRAMEWORK_GLOBAL_FOOTER_TEXT_LABEL"
			description="COM_ZO2FRAMEWORK_GLOBAL_FOOTER_TEXT_DESC"
			class="inputbox"
			required="false"
			cols="15"
			rows="3"
			filter="safehtml"
			default=""
		/>
------------------------------------------------------------------------------------------------------



Open file: administrator/language/en-GB/en-GB.com_zo2framework.ini
Search for (Line 109-111):
------------------------------------------------------------------------------------------------------
COM_ZO2FRAMEWORK_FOOTER="Footer"
COM_ZO2FRAMEWORK_GLOBAL_FOOTER_TEXT_LABEL="Footer Script"
COM_ZO2FRAMEWORK_GLOBAL_FOOTER_TEXT_DESC="Script add to footer: Google Analytic, Alexa, Twitter ..."
------------------------------------------------------------------------------------------------------
And Replace it By:
------------------------------------------------------------------------------------------------------
COM_ZO2FRAMEWORK_FOOTER="Footer"
COM_ZO2FRAMEWORK_GLOBAL_FOOTER_LOGO_LABEL="Footer Logo"
COM_ZO2FRAMEWORK_GLOBAL_FOOTER_LOGO_DESC="Show or hide footer logo (It isn't available for all templates)"
COM_ZO2FRAMEWORK_GLOBAL_FOOTER_TEXT_LABEL="Footer Script"
COM_ZO2FRAMEWORK_GLOBAL_FOOTER_TEXT_DESC="Script add to footer: Google Analytic, Alexa, Twitter ..."
------------------------------------------------------------------------------------------------------

######################################################################################################

Change log for 1.0.2 -> 1.0.3 [18/10/2012]

# Fix header and footer text problem
^ Upgrade bootstrap to 2.2.1

Open file: administrator/components/com_zo2framework/models/template.php
Search for (Line 92-105):
------------------------------------------------------------------------------------------------------
		if(JRequest::getVar('jform', null, 'post', 'none', 4)) {
			$_post = JRequest::get('post', 4);
			$post  = $_post['jform'];	
		}
		else {
			$post  = JRequest::get('post', 4);
		}
		
		$id	  	= $post['id'];
		$published	= $post['published'];
		$params		= "";

		$post['header_text'] = (strlen($post['header_text']) > 2) ? base64_encode($post['header_text']) : '';
		$post['footer_text'] = (strlen($post['footer_text']) > 2) ? base64_encode($post['footer_text']) : '';
------------------------------------------------------------------------------------------------------
And Replace it By:
------------------------------------------------------------------------------------------------------
		if(JRequest::getVar('jform', null, 'post', 'none', 4)) {
			$_post = JRequest::get('post', 4);
			$post  = $_post['jform'];
			$post['header_text'] = (strlen($_POST['jform']['header_text']) > 2) ? base64_encode($_POST['jform']['header_text']) : '';
			$post['footer_text'] = (strlen($_POST['jform']['footer_text']) > 2) ? base64_encode($_POST['jform']['footer_text']) : '';
		}
		else {
			$post  = JRequest::get('post', 4);
			$post['header_text'] = (strlen($_POST['header_text']) > 2) ? base64_encode($_POST['header_text']) : '';
			$post['footer_text'] = (strlen($_POST['footer_text']) > 2) ? base64_encode($_POST['footer_text']) : '';
		}
		
		$id	  	= $post['id'];
		$published	= $post['published'];
		$params		= "";
------------------------------------------------------------------------------------------------------

######################################################################################################

Change log for 1.0.1 -> 1.0.2 [18/10/2012]

# Fix menu effect
# Fix google maps image problem
# Change default template name to zo2_based

Open file: plugins/content/zo2framework/libs/googleMaps.lib.php

Search for (Line 234):
------------------------------------------------------------------------------------------------------
		$output .= "\n<div id=\"{$this->mod}_gmap{$map_id}\" style=\"width: {$width2}; height: {$this->height}px;\"></div>\n";
------------------------------------------------------------------------------------------------------
And Replace it By:
------------------------------------------------------------------------------------------------------
		$output .= "\n<div class=\"zo2-gmap\" id=\"{$this->mod}_gmap{$map_id}\" style=\"width: {$width2}; height: {$this->height}px;\"></div>\n";
------------------------------------------------------------------------------------------------------



Open file: plugins/system/shortcodes/assets/css/shortcode.css
Insert this code to end of the file
------------------------------------------------------------------------------------------------------
div.zo2-gmap img {�max-width:inherit !important; }
------------------------------------------------------------------------------------------------------


Open file: media/com_zo2framework/js/zo2-uncompressed.js

Search for:
------------------------------------------------------------------------------------------------------
			/* Run Effect */
			switch(seffect) {
				case "slideUp":
					$ZO2(item).children().delay(350).slideUp(hduration, function() {
						$ZO2(item).css({"display":"none", "overflow":""});
					});
				break;
				case "hide":
				default:
					$ZO2(item).children().delay(350).hide(hduration, function() {
						$ZO2(item).css({"display":"none", "overflow":""});
					});
				break;
			}
------------------------------------------------------------------------------------------------------
And Replace it By:
------------------------------------------------------------------------------------------------------
			/* Run Effect */
			switch(seffect) {
				case "slideUp":
					if ($ZO2(item).parent().parent().attr('id')=='menusys_mega') {
						$ZO2(item).children().delay(350).slideUp(hduration, function() {
							$ZO2(item).css({"display":"none", "overflow":""});
						});
					} else {
						$ZO2(item).children().delay(0).slideUp(hduration-hduration/2, function() {
							$ZO2(item).css({"display":"none", "overflow":""});
						});
					}
				break;
				case "hide":
				default:
					if ($ZO2(item).parent().parent().attr('id')=='menusys_mega') {
						$ZO2(item).children().delay(350).hide(hduration, function() {
							$ZO2(item).css({"display":"none", "overflow":""});
						});
					} else {
						$ZO2(item).children().delay(0).hide(hduration-hduration/2, function() {
							$ZO2(item).css({"display":"none", "overflow":""});
						});
					}
				break;
			}
------------------------------------------------------------------------------------------------------

######################################################################################################

Change log for 1.0.0 -> 1.0.1 [10/10/2012]

# Fix color box problem
# Change Color box text and Move it to Layout Section on Backend Configuration Page
+ Add isFrontpage function to ZO2Function class

How to apply it to your current template:


Open file: templates/[ZO2 Based Template]/index.php
Search for:
-------------------------------------------------------------------
	<?php
		if($params->get('color_box')) {
			require_once($function->loadPHPFile('colors_box.php'));
		}
	?>
-------------------------------------------------------------------
And Replace it By:
-------------------------------------------------------------------
	<?php
			require_once($function->loadPHPFile('colors_box.php'));
	?>
-------------------------------------------------------------------



Open file: templates/[ZO2 Based Template]/layouts/colors_box.php (If you can't found this file, you don't need to do next step)
Search for:
----------------------------------------------------------------------------------------------------------------------------------
$document->addStyleDeclaration($style);
$temp_js = "";
----------------------------------------------------------------------------------------------------------------------------------
And Replace it By:
----------------------------------------------------------------------------------------------------------------------------------
$document->addStyleDeclaration($style);
$temp_js = "";
$cookies = array();

// Render colors schemes
$scolors = $function->getColorsSchemes(ZO2_TPL_SCOLORS_PATH_ROOT);
if(count($scolors)) {
	// Add stylesheet of schemes color					
	$document->addStyleSheet(ZO2_TPL_SCOLORS_PATH_BASE . $function->getColorsValue('colors', 'schemes') . ".css");
	$cookies[] = $prefix . 'colors_schemes';
}
if($params->get('color_box')) :
----------------------------------------------------------------------------------------------------------------------------------

Search for:
----------------------------------------------------------------------------------------------------------------------------------
				$cookies = array();

				// Render colors schemes
				$scolors = $function->getColorsSchemes(ZO2_TPL_SCOLORS_PATH_ROOT);
				if(count($scolors)) {
					// Add stylesheet of schemes color					
					$document->addStyleSheet(ZO2_TPL_SCOLORS_PATH_BASE . $function->getColorsValue('colors', 'schemes') . ".css");
					include($function->loadPHPFile('_scolors.php'));
					$cookies[] = $prefix . 'colors_schemes';
				}
				
				$temp_js .= "\$ZO2(document).ready(function() {";
				// Render group colors
				echo JHTML::_('sliders.start', 'color-box', array('useCookie'=>'1'));
----------------------------------------------------------------------------------------------------------------------------------
And Replace it By:
----------------------------------------------------------------------------------------------------------------------------------
				if(count($scolors)) {
					include($function->loadPHPFile('_scolors.php'));
				}

				$temp_js .= "\$ZO2(document).ready(function() {";
				// Render group colors
				echo JHTML::_('sliders.start', 'color-box', array('useCookie'=>'1'));
----------------------------------------------------------------------------------------------------------------------------------

Search for:
----------------------------------------------------------------------------------------------------------------------------------
});";
$document->addScriptDeclaration($temp_js);
?>
----------------------------------------------------------------------------------------------------------------------------------
And Replace it By:
----------------------------------------------------------------------------------------------------------------------------------
});";
$document->addScriptDeclaration($temp_js);
endif;
?>
----------------------------------------------------------------------------------------------------------------------------------



Open file: templates/[ZO2 Based Template]/config.xml (If you can't found this file, you don't need to do next step)
Search for:
----------------------------------------------------------------------------------------------------------------------------------
		<field
			name="font_feature"
			type="list"
			label="COM_ZO2FRAMEWORK_LAYOUT_FONT_FEATURE_LABEL"
			description="COM_ZO2FRAMEWORK_LAYOUT_FONT_FEATURE_DESC"
			class="inputbox"
			default="1"
		>
			<option value="1">JOPTION_SELECT_PUBLISHED_PUBLISHED</option>
			<option value="0">JOPTION_SELECT_PUBLISHED_UNPUBLISHED</option>
		</field>
	</fieldset>
	<!--Color block-->
	<fieldset name="color">
		<field
			name="color_box"
			type="list"
			label="COM_ZO2FRAMEWORK_LAYOUT_COLOR_BOX_LABEL"
			description="COM_ZO2FRAMEWORK_LAYOUT_COLOR_BOX_DESC"
			class="inputbox"
			default="1"
		>
			<option value="1">JOPTION_SELECT_PUBLISHED_PUBLISHED</option>
			<option value="0">JOPTION_SELECT_PUBLISHED_UNPUBLISHED</option>
		</field>
----------------------------------------------------------------------------------------------------------------------------------
And Replace it By:
----------------------------------------------------------------------------------------------------------------------------------
		<field
			name="font_feature"
			type="list"
			label="COM_ZO2FRAMEWORK_LAYOUT_FONT_FEATURE_LABEL"
			description="COM_ZO2FRAMEWORK_LAYOUT_FONT_FEATURE_DESC"
			class="inputbox"
			default="1"
		>
			<option value="1">JOPTION_SELECT_PUBLISHED_PUBLISHED</option>
			<option value="0">JOPTION_SELECT_PUBLISHED_UNPUBLISHED</option>
		</field>
		<field
			name="color_box"
			type="list"
			label="COM_ZO2FRAMEWORK_LAYOUT_COLOR_BOX_LABEL"
			description="COM_ZO2FRAMEWORK_LAYOUT_COLOR_BOX_DESC"
			class="inputbox"
			default="1"
		>
			<option value="1">JOPTION_SELECT_PUBLISHED_PUBLISHED</option>
			<option value="0">JOPTION_SELECT_PUBLISHED_UNPUBLISHED</option>
		</field>
	</fieldset>
	<!--Color block-->
	<fieldset name="color">
----------------------------------------------------------------------------------------------------------------------------------
