Convert RT_SIMPLIX from j1.5 to j2.5 - Joomla! Forum - community, help and support
hi
i try convert template rt_simplix j1.5 j2.5
i using instruction http://magazine.joomla.org/issues/issue ... -joomla-25
but after file modifications have error in frontpage
line 36 start
if can me ?
regards
i try convert template rt_simplix j1.5 j2.5
i using instruction http://magazine.joomla.org/issues/issue ... -joomla-25
but after file modifications have error in frontpage
fatal error: call member function getcfg() on non-object in /home/user/public_html/joomla/templates/rt_simplix_j25/index.php on line 36
line 36 start
code: select all
<?php
$live_site = $mainframe->getcfg('live_site');
$default_style = $this->params->get("defaultstyle", "style1");
$layout_style = $this->params->get("layoutstyle", "a");
$enable_rokzoom = ($this->params->get("enablerokzoom", 1) == 0)?"false":"true";
$width_style = $this->params->get("templatewidthstyle", "fixed");
$template_width = $this->params->get("templatewidth", "950");
$menu_name = $this->params->get("menuname", "mainmenu");
$menu_type = $this->params->get("menutype", "moomenu");
$default_font = $this->params->get("defaultfont", "default");
$show_breadcrumbs = ($this->params->get("showbreadcrumbs", 1) == 0)?"false":"true";
// moomenu options
$moo_bgiframe = ($this->params->get("moo_bgiframe'","0") == 0)?"false":"true";
$moo_delay = $this->params->get("moo_delay", "500");
$moo_duration = $this->params->get("moo_duration", "400");
$moo_fps = $this->params->get("moo_fps", "100");
$moo_transition = $this->params->get("moo_transition", "expo.easeout");
// rokzoom options
$zoom_resize_duration = $this->params->get("zoom_resize_duration", "700");
$zoom_opacity_duration = $this->params->get("zoom_opacity_duration", "500");
$zoom_transition = $this->params->get("zoom_transition", "cubic.easeout");
require(yourbasepath .ds."rt_styleloader.php");
// menu code
$document = &jfactory::getdocument();
$renderer = $document->loadrenderer( 'module' );
$options = array( 'style' => "raw" );
$module = jmodulehelper::getmodule( 'mod_mainmenu' );
$mainnav = false; $subnav = false;
if($mtype == "splitmenu") :
$module->params = "menutype=$menu_name\nstartlevel=0\nendlevel=1";
$mainnav = $renderer->render( $module, $options );
$module = jmodulehelper::getmodule( 'mod_mainmenu' );
$module->params = "menutype=$menu_name\nstartlevel=1\nendlevel=2";
$subnav = $renderer->render( $module, $options );
elseif($mtype == "moomenu" or $mtype == "suckerfish") :
$module->params = "menutype=$menu_name\nshowallchildren=1";
$mainnav = $renderer->render( $module, $options );
endif;
// make sure subnav empty
if (strlen($subnav) < 10) $subnav = false;
if ($width_style=="fluid") {
$template_width = "width: 95%;";
} else {
$template_width = 'margin: 0 auto; width: ' . $template_width . 'px;';
}
//are in edit mode
$editmode = false;
if (jrequest::getcmd('task') == 'edit' ) :
$editmode = true;
endif;
?>if can me ?
regards
Comments
Post a Comment