Gantry Template - Joomla! Forum - community, help and support
hi all,
i have problem, im trying input code show "now playing" on our radio station website, need adda line of code before </body> tag code is.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
the issue on gantry index.php ther no </body> tag code different standard index.php i.e.
<?php
/**
* @package joomla.site
* @copyright copyright (c) 2005 - 2012 open source matters, inc. rights reserved.
* @license gnu general public license version 2 or later; see license.txt
*/
// set flag parent file.
define('_jexec', 1);
define('ds', directory_separator);
if (file_exists(dirname(__file__) . '/defines.php')) {
include_once dirname(__file__) . '/defines.php';
}
if (!defined('_jdefines')) {
define('jpath_base', dirname(__file__));
require_once jpath_base.'/includes/defines.php';
}
require_once jpath_base.'/includes/framework.php';
// mark afterload in profiler.
jdebug ? $_profiler->mark('afterload') : null;
// instantiate application.
$app = jfactory::getapplication('site');
// initialise application.
$app->initialise();
// mark afterintialise in profiler.
jdebug ? $_profiler->mark('afterinitialise') : nu etc etc......
thanks mark
i have problem, im trying input code show "now playing" on our radio station website, need adda line of code before </body> tag code is.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
the issue on gantry index.php ther no </body> tag code different standard index.php i.e.
<?php
/**
* @package joomla.site
* @copyright copyright (c) 2005 - 2012 open source matters, inc. rights reserved.
* @license gnu general public license version 2 or later; see license.txt
*/
// set flag parent file.
define('_jexec', 1);
define('ds', directory_separator);
if (file_exists(dirname(__file__) . '/defines.php')) {
include_once dirname(__file__) . '/defines.php';
}
if (!defined('_jdefines')) {
define('jpath_base', dirname(__file__));
require_once jpath_base.'/includes/defines.php';
}
require_once jpath_base.'/includes/framework.php';
// mark afterload in profiler.
jdebug ? $_profiler->mark('afterload') : null;
// instantiate application.
$app = jfactory::getapplication('site');
// initialise application.
$app->initialise();
// mark afterintialise in profiler.
jdebug ? $_profiler->mark('afterinitialise') : nu etc etc......
thanks mark
which template using? default gantry template file looks more this, between headers... maybe i'm misunderstanding question
code: select all
<?php
/**
* @version $id: index.php 5057 2012-11-06 04:48:10z rhuk $
* @author rockettheme http://www.rockettheme.com
* @copyright copyright (c) 2007 - 2012 rockettheme, llc
* @license http://www.gnu.org/licenses/gpl-2.0.html gnu/gplv2 only
*
* gantry uses joomla framework (http://www.joomla.org), gnu/gplv2 content management system
*
*/
// no direct access
defined( '_jexec' ) or die( 'restricted index access' );
// load , inititialize gantry class
require_once(dirname(__file__) . '/lib/gantry/gantry.php');
$gantry->init();
// current preset
$gpreset = str_replace(' ','',strtolower($gantry->get('name')));
?>
<!doctype html>
<html xml:lang="<?php echo $gantry->language; ?>" lang="<?php echo $gantry->language;?>" >
<head>
<?php if ($gantry->get('layout-mode') == '960fixed') : ?>
<meta name="viewport" content="width=960px">
<?php elseif ($gantry->get('layout-mode') == '1200fixed') : ?>
<meta name="viewport" content="width=1200px">
<?php else : ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php endif; ?>
<?php
$gantry->displayhead();
$gantry->addstyle('grid-responsive.css', 5);
$gantry->addless('global.less', 'master.css', 8, array('headerstyle'=>$gantry->get('headerstyle','dark')));
if ($gantry->browser->name == 'ie'){
if ($gantry->browser->shortversion == 8){
$gantry->addscript('html5shim.js');
}
}
if ($gantry->get('layout-mode', 'responsive') == 'responsive') $gantry->addscript('rokmediaqueries.js');
if ($gantry->get('loadtransition')) {
$gantry->addscript('load-transition.js');
$hidden = ' class="rt-hidden"';}
?>
</head><body <?php echo $gantry->displaybodytag(); ?>>
Comments
Post a Comment