To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Show
Ignore:
Timestamp:
09/08/10 18:16:25 (21 months ago)
Author:
johnnyoffline
Message:

1. refactored aMenuToggle in aUI.js. Moved it to a.js and made it work with all of the menus (Variants, Add Content, Add Page, Page Settings)
2. refactored some browseHistory JS to be in a.js
3. created globalJavascripts partial to load some general JS at the bottom of layout.php ONCE instead of every time a partial is used.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/trunk/modules/a/templates/layout.php

    r2149 r2160  
    1 <?php use_helper('I18N') ?> 
     1<?php use_helper('a') ?> 
    22<?php // This is a copy of apostrophePlugin/modules/a/templates/layout.php ?> 
    33<?php // It also makes a fine site-wide layout, which gives you global slots on non-page templates ?> 
    44<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    55<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    6         <?php use_helper('a') ?> 
    76        <?php // If this page is an admin page we don't want to present normal navigation relative to it. ?> 
    87        <?php $page = aTools::getCurrentNonAdminPage() ?> 
     
    9695        </div> 
    9796 
     97        <?php include_partial('a/globalJavascripts') ?> 
     98         
    9899        <?php // Drop in the document.ready stuff at the bottom. ?> 
    99100        <?php // If we try to do this sooner, it works for the template but ?>