thanks teitbite for your reply
BUT
Assigning a fix width to the submenu will make usertools useless (i mean what's the point of resizing the screen when the menu can not be resized!)
AND
Since there's the following code in templates/gk_memovie/templateDetails.xml :
- Code: Select all
<param name="gk_screen" type="list" default="982" label="Template Width" description="Choose between various width options. AUTO=This would be auto decided based on user resolution. Narrow Screen=782px Wide Screen=982px Specified Percentage=fluid Specified Pixels=fix">
<option value="auto">AUTO</option>
<option value="782">Narrow Screen</option>
<option value="982">Wide Screen</option>
<option value="fluid">SPECIFIED PERCENTAGE</option>
<option value="fix">SPECIFIED PIXEL</option>
</param>
Is there no way to make a global variable that retrieves the corresponding screen width, so that we can apply it on the submenu width menu?
I mean, it is already used in the UserTools
(code source from: /templates/gk_memovie/layouts/blocks/usertools/tools.php)
(which allows users to manually increase/decrease font and/or choose the screen layout)
- Code: Select all
<script type="text/javascript">var CurrentFontSize=parseInt('<?php echo $this->getParam(GK_TOOL_FONT);?>');</script>
<a class="tools_btn" id="gk-tool-auto" onclick="switchTool('<?php echo $this->template."_".GK_TOOL_SCREEN;?>','auto');return false;">auto</a>
I am still a beginner in php,html and css, but i can assume 99% that it's this function:
- Code: Select all
parseInt('<?php echo $this->getParam(GK_TOOL_FONT);?>')
Can we use it somewhere else?
Thanks again in advance
Regards,
flora-organica team