コード例 #1
0
	window.addEvent('domready', function() {
		new Fusion('ul.menutop', {
			<?php 
    if (rok_isIe(7) or rok_isIE(6)) {
        ?>
				pill: 0,
				opacity: 1, 
			<?php 
    } else {
        ?>
				pill: <?php 
        echo theme_get_setting(f_pill);
        ?>
,
				<?php 
        if (rok_isIe(8)) {
            ?>
					effect: 'slide',
					opacity: 1, 
				<?php 
        } else {
            ?>
					effect: '<?php 
            echo theme_get_setting(f_effect);
            ?>
',
					opacity: <?php 
            echo theme_get_setting(f_opacity);
            ?>
,
				<?php 
コード例 #2
0
    DD_belatedPNG.fix('.png');
</script>
<![endif]-->
<?php 
}
if ($enable_fontspans == "true") {
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokfonts.js");
    $rokfonts = "window.addEvent('domready', function() {\n\t\tvar modules = ['side-mod','module','moduletable','component-header'];\n\t\tvar header = ['h3','h1'];\n\t\tRokBuildSpans(modules, header);\n\t});";
    $this->addScriptDeclaration($rokfonts);
}
if (rok_isIe(6) and $enable_ie6warn == "true" and $js_compatibility == "false") {
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokie6warn.js");
}
if ($clientside_date == "true" and $js_compatibility == "false") {
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokdate.js");
}
$this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokutils.js");
if ($enable_inputstyle == "true" and $js_compatibility == "false") {
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokutils.inputs.js");
    $exclusionList = "InputsExclusion.push({$inputs_exclusion})";
    $this->addScriptDeclaration($exclusionList);
}
if ($mtype == "moomenu" and $js_compatibility == "false") {
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokmoomenu.js");
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/mootools.bgiframe.js");
    $mooinit = "window.addEvent('domready', function() {\n    \tnew Rokmoomenu(" . '$E' . "('ul.menutop '), {\n    \t\tbgiframe: " . $moo_bgiframe . ",\n    \t\tdelay: " . $moo_delay . ",\n    \t\tverhor: true,\n    \t\tanimate: {\n    \t\t\tprops: ['height'],\n    \t\t\topts: {\n    \t\t\t\tduration: " . $moo_duration . ",\n    \t\t\t\tfps: " . $moo_fps . ",\n    \t\t\t\ttransition: Fx.Transitions." . $moo_transition . "\n    \t\t\t}\n    \t\t},\n    \t\tbg: {\n    \t\t\tenabled: " . $moo_bg_enabled . ",\n    \t\t\toverEffect: {\n    \t\t\t\tduration: " . $moo_bg_over_duration . ",\n    \t\t\t\ttransition: Fx.Transitions." . $moo_bg_over_transition . "\n    \t\t\t},\n    \t\t\toutEffect: {\n    \t\t\t\tduration: " . $moo_bg_out_duration . ",\n    \t\t\t\ttransition: Fx.Transitions." . $moo_bg_out_transition . "\n    \t\t\t}\n    \t\t},\n    \t\tsubmenus: {\n    \t\t\tenabled: " . $moo_sub_enabled . ",\n    \t\t\topacity: " . $moo_sub_opacity . ",\n    \t\t\toverEffect: {\n    \t\t\t\tduration: " . $moo_sub_over_duration . ",\n    \t\t\t\ttransition: Fx.Transitions." . $moo_sub_over_transition . "\n    \t\t\t},\n    \t\t\toutEffect: {\n    \t\t\t\tduration: " . $moo_sub_out_duration . ",\n    \t\t\t\ttransition: Fx.Transitions." . $moo_sub_out_transition . "\n    \t\t\t},\n    \t\t\toffsets: {\n    \t\t\t\ttop: " . $moo_sub_offsets_top . ",\n    \t\t\t\tright: " . $moo_sub_offsets_right . ",\n    \t\t\t\tbottom: " . $moo_sub_offsets_bottom . ",\n    \t\t\t\tleft: " . $moo_sub_offsets_left . "\n    \t\t\t}\n    \t\t}\n    \t});\n    });";
    $this->addScriptDeclaration($mooinit);
}
if ((rok_isIe(6) or rok_isIe(7)) and ($mtype == "suckerfish" or $mtype == "splitmenu")) {
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/ie_suckerfish.js");
}
コード例 #3
0
function getModuleWidth($type, $loaded)
{
    global $template_real_width, $leftcolumn_width, $rightcolumn_width, $leftbanner_width, $rightbanner_width;
    $width = $template_real_width - 2 - ($leftcolumn_width == "0" ? 0 : $leftcolumn_width + 1) - ($rightcolumn_width == "0" ? 0 : $rightcolumn_width + 1) - $leftbanner_width - $rightbanner_width;
    $ieFix = $leftbanner_width == "0" ? 0 : 0;
    $ieFix += $rightbanner_width == "0" ? 0 : 0;
    $result = array();
    $width_original = $width;
    switch ($loaded) {
        case 1:
            $result[0] = $width_original;
            if (rok_isIe(6)) {
                $result[0] -= $ieFix;
            }
            break;
        case 2:
            $width = floor($width / 2);
            $result[0] = $width - 1;
            $result[1] = $width_original - ($result[0] + 2);
            if (rok_isIe(6)) {
                $result[0] -= 1;
                $result[1] -= $ieFix;
            }
            break;
        case 3:
            $width = floor($width / 3);
            $result[0] = $result[1] = $width - 1;
            $result[2] = $width_original - ($result[0] + $result[1] + 2);
            if (rok_isIe(6)) {
                $result[0] -= 1;
                $result[1] -= 1;
                $result[2] -= $ieFix;
            }
            break;
    }
    return $result;
}
コード例 #4
0
ファイル: index.php プロジェクト: robogals/myrobogals
								</div>
								<?php 
    }
    ?>
								<jdoc:include type="modules" name="right" style="main" />
							</div>
					    </div>
					    <?php 
}
?>
 
					    <!--End Right Column (col3)-->
					</div>
				</div>
			</div><?php 
if (!rok_isIe(6)) {
    ?>
</div><?php 
}
?>
		</div>
		<!--Begin Main Bottom-->
		<?php 
$mClasses = modulesClasses('case5');
if ($this->countModules('user7 or user8 or user9')) {
    ?>
		<div id="bottom-main">
			<div class="wrapper">
				<div id="mainmodules3" class="spacer<?php 
    echo $mainmod3_width;
    ?>
コード例 #5
0
if (rok_isIe()) {
    ?>
<!--[if IE 8]>
<style type="text/css">
#horizmenu-surround {width: auto !important;}
</style>
<![endif]-->
<!--[if IE 7]>
<link href="<?php 
    echo base_path() . path_to_theme();
    ?>
/css/template_ie7.css" rel="stylesheet" type="text/css" />	
<![endif]-->	
<?php 
}
if (rok_isIe(6)) {
    ?>
<!--[if lte IE 6]>
<link href="<?php 
    echo base_path() . path_to_theme();
    ?>
/css/template_ie6.css" rel="stylesheet" type="text/css" />
<link href="<?php 
    echo base_path() . path_to_theme();
    ?>
/css/<?php 
    echo $iridium_preset_style;
    ?>
_ie6.css" rel="stylesheet" type="text/css" />
<script src="<?php 
    echo base_path() . path_to_theme();
コード例 #6
0
    }
}
if (strlen($tabs_incremental) <= 0) {
    $tabs_incremental = "Tab ";
}
$style_css = $mod . $style . '/roktabs.css';
if (file_exists($style_css)) {
    $document->addStyleSheet($style_css);
}
if (!defined('ROKTABS_JS')) {
    $document->addScript($mod . 'roktabs.js');
    define('ROKTABS_JS', 1);
}
/* IE6 Fix */
$templateStyle = $document->params->get('bodyStyle', 'dark');
if ($templateStyle == 'light' && rok_isIe(6)) {
    $width -= 2;
}
$write_tabs = modRokTabsHelper::write_tabs($tabs, $tabs_position, $list, $tabs_title, $tabs_incremental, $tabs_hideh6);
?>
	<script type="text/javascript">
		RokTabsOptions.duration.push(<?php 
echo $duration;
?>
);
		RokTabsOptions.transition.push(Fx.Transitions.<?php 
echo $transition_fx;
?>
);
		RokTabsOptions.auto.push(<?php 
echo $autoplay;
コード例 #7
0
}
.round .module-surround3, .round2 .module-surround3, .round3 .module-surround3, .round4 .module-surround3, .round5 .module-surround3, .module-surround5 {
right: expression((this.offsetParent.offsetWidth % 2) ? '-2px' : '-1px');
}
.round .module-surround4, .round2 .module-surround4, .round3 .module-surround4, .round4 .module-surround4, .round5 .module-surround4, .module-surround4 {
bottom: expression((this.offsetParent.offsetHeight % 2) ? '-2px' : '-1px');
}
</style>
<![endif]-->
<?php 
}
/* Javascript Hooks for base uri */
$tmpl_folder = "\n\t\twindow.templatePath = '{$template_path}';\n\t\twindow.uri = '{$this->baseurl}';\n\t\twindow.currentStyle = '{$tstyle}';\n\t";
$this->addScriptDeclaration($tmpl_folder);
if ($enable_fontspans == "true") {
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokfonts.js");
    $rokfonts = "window.addEvent('domready', function() {\n\t\tvar modules = ['side-mod', 'showcase-panel', 'moduletable', 'article-rel-wrapper'];\n\t\tvar header = ['h3','h2','h1'];\n\t\tRokBuildSpans(modules, header);\n\t});";
    $this->addScriptDeclaration($rokfonts);
}
if ($clientside_date == "true" and $js_compatibility == "false") {
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokdate.js");
}
if (rok_isIe(6) and $enable_ie6warn == "true" and $js_compatibility == "false") {
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokie6warn.js");
}
$this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokutils.js");
if ($enable_inputstyle == "true" and $js_compatibility == "false" and !rok_isIe(6)) {
    $this->addScript($this->baseurl . "/templates/" . $this->template . "/js/rokutils.inputs.js");
    $exclusionList = "InputsExclusion.push({$inputs_exclusion})";
    $this->addScriptDeclaration($exclusionList);
}