Note that there are some explanatory texts on larger screens.

plurals
  1. POJoomla Blank template issues
    primarykey
    data
    text
    <p>I'm creating my own Joomla template and I've ran into some problem's.</p> <p>I'm using blank template and am fallowing this tutorial: <a href="http://blank.vc/blog/6-blank-template-and-twitter-bootstrap-tutorial-for-joomla.html" rel="nofollow">Blank Joomla template with Bootstrap</a></p> <h2>So the issue:</h2> <p><em>The original question is:</em> if I have 2 modules (span3 and span 9) and if he wants when he disappears "span3" span9 take the whole width, is it possible?</p> <p><em>The answer by the author of the tutorial</em>: It is possible though php with short if-else-statement:</p> <pre><code>echo ($this-&gt;countModules( 'sidebar' )) ? ('span9') : ('span12'); </code></pre> <p>My question: Where I should put this "simple" code to achieve the result needed?</p> <hr> <p>In case it would help, here is how the script's are loaded in the header:</p> <pre><code>&lt;head&gt; &lt;script type="text/javascript" src="/joomla/templates/turdi_designs/js/template.js.php"&gt;&lt;/script&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt; &lt;meta name="author" content="Super User" /&gt; &lt;meta name="description" content="Turdi Designs Descripcion" /&gt; &lt;title&gt;eBay&lt;/title&gt; &lt;link href="http://localhost/joomla/index.php?option=com_content&amp;amp;view=article&amp;amp;id=2&amp;amp;Itemid=466" rel="canonical" /&gt; &lt;link href="/joomla/templates/turdi_designs/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" /&gt; &lt;link rel="stylesheet" href="/joomla/templates/turdi_designs/css/template.css.php?v=1.0.0" type="text/css" /&gt; &lt;script src="/joomla/templates/turdi_designs/js/modernizr.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/joomla/templates/turdi_designs/js/jquery.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; window.addEvent('load', function() { new JCaption('img.caption'); }); &lt;/script&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /&gt; &lt;!-- mobile viewport --&gt; &lt;link rel="stylesheet" media="only screen and (max-width: 768px)" href="/joomla/templates/turdi_designs/css/tablet.css" type="text/css" /&gt; &lt;link rel="stylesheet" media="only screen and (min-width: 320px) and (max-width: 480px)" href="/joomla/templates/turdi_designs/css/phone.css" type="text/css" /&gt; &lt;!--[if IEMobile]&gt;&lt;link rel="stylesheet" media="screen" href="/joomla/templates/turdi_designs/css/phone.css" type="text/css" /&gt;&lt;![endif]--&gt; &lt;!-- iemobile --&gt; &lt;link rel="apple-touch-icon-precomposed" href="/joomla/templates/turdi_designs/apple-touch-icon-57x57.png"&gt; &lt;!-- iphone, ipod, android --&gt; &lt;link rel="apple-touch-icon-precomposed" sizes="72x72" href="/joomla/templates/turdi_designs/apple-touch-icon-72x72.png"&gt; &lt;!-- ipad --&gt; &lt;link rel="apple-touch-icon-precomposed" sizes="114x114" href="/joomla/templates/turdi_designs/apple-touch-icon-114x114.png"&gt; &lt;!-- iphone retina --&gt; &lt;!--[if lte IE 8]&gt; &lt;style&gt; {behavior:url(/joomla/templates/turdi_designs/js/PIE.htc);} &lt;/style&gt; &lt;![endif]--&gt; &lt;/head&gt; </code></pre> <p>Thank you for your time!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload