template:m1
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| template:m1 [2014-03-22 18:26] – EricH | template:m1 [2023-06-17 18:43] (current) – screenshot Aleksandr | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| author | author | ||
| email : ehowey@gmail.com | email : ehowey@gmail.com | ||
| - | lastupdate_dt | + | lastupdate |
| - | compatible | + | compatible |
| depends | depends | ||
| conflicts | conflicts | ||
| similar | similar | ||
| - | screenshot_img: | + | tags : responsive, mobile, fixedheader, |
| - | tags : responsive, mobile | + | |
| downloadurl | downloadurl | ||
| Line 17: | Line 16: | ||
| sourcerepo | sourcerepo | ||
| donationurl | donationurl | ||
| + | |||
| + | screenshot_img: | ||
| ---- | ---- | ||
| + | |||
| This is a responsive and mobile-first template built with a fixed header and flexible content. | This is a responsive and mobile-first template built with a fixed header and flexible content. | ||
| + | |||
| + | ===== Download and Install ====== | ||
| + | |||
| + | Use the following URL to download this template: | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | Refer to [[: | ||
| ===== Customizing the Template ===== | ===== Customizing the Template ===== | ||
| Line 26: | Line 36: | ||
| Within the template itself there are a few main .php files to pay attention to:\\ | Within the template itself there are a few main .php files to pay attention to:\\ | ||
| **main.php: | **main.php: | ||
| + | |||
| + | ==Google Analytics== | ||
| + | There is a Google-Analytics-Script in main.php. If you don't want it: You can remove it by deleting the script under the comment-line completely: | ||
| + | |||
| + | < | ||
| + | <script type=" | ||
| + | var _gaq = _gaq || []; | ||
| + | _gaq.push([' | ||
| + | _gaq.push([' | ||
| + | _gaq.push([' | ||
| + | (function() { | ||
| + | var ga = document.createElement(' | ||
| + | ga.src = (' | ||
| + | var s = document.getElementsByTagName(' | ||
| + | })(); | ||
| + | </ | ||
| + | </ | ||
| + | |||
| **m1-header.php: | **m1-header.php: | ||
| **m1-mobilemenu.php: | **m1-mobilemenu.php: | ||
| **m1-sidebar-one.php: | **m1-sidebar-one.php: | ||
| **m1-footer.php: | **m1-footer.php: | ||
| + | |||
| + | ==== Sidebars ==== | ||
| + | This template behaves a bit differently than your typical Dokuwiki template with respect to the sidebar and how it is setup. | ||
| + | < | ||
| + | <div id=" | ||
| + | <?php tpl_includeFile(' | ||
| + | <?php tpl_include_page(tpl_getConf(' | ||
| + | <?php tpl_includeFile(' | ||
| + | <?php tpl_includeFile(' | ||
| + | <div class=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Notice the order of the file inclusions and the default dokuwiki hooks. | ||
| + | |||
| + | Currently the sidebar is set to have a minimum content width of 300px which is a typical sidebar width for any advertising, | ||
| + | |||
| + | Note that the sidebar is designed with content blocks. | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== Font Awesome ==== | ||
| + | For information on using Font Awesome in the html/php environment see [[http:// | ||
| + | < | ||
| + | <link href="// | ||
| + | </ | ||
| + | |||
| + | ==== Sidr/Mobile Menus ==== | ||
| + | |||
| + | For the mobile menu I use a JQuery plugin called [[http:// | ||
| + | |||
| + | ==== Desktop/ | ||
| + | You can configure this via **m1-header.php**. | ||
| + | |||
| + | In order to create drop down menus you need to assign the class "has sub" to the containing < | ||
| ==== Media Query Breakpoints Explained ==== | ==== Media Query Breakpoints Explained ==== | ||
| Line 54: | Line 121: | ||
| If you want to add your own logo just place a logo.png or logo.jpg file in the m1/images folder. | If you want to add your own logo just place a logo.png or logo.jpg file in the m1/images folder. | ||
| | | ||
| - | ===== Download and Install ====== | ||
| - | Use the following URL to download | + | ===== Sites using this Template ===== |
| - | * https://github.com/ehowey/ | + | * http://www.paddlingabc.com/ -- This is a heavily modified version of the template, I built the template specifically for this site |
| - | Refer to [[:template]] on how to install and use templates in DokuWiki. | + | ===== Caution ===== |
| + | I tried this template | ||
| - | ===== Sites using this Template ===== | + | It turned out //this// template messed with a file (local.php) in /conf. Restoring that file from a recent backup restored my starter template. |
| - | * http:// | + | I am not a techie, but it seems this template |
template/m1.1395509217.txt.gz · Last modified: by EricH
