Changeset 844


Ignore:
Timestamp:
Aug 24, 2006, 5:43:30 PM (15 years ago)
Author:
nick
Message:

Support the optional common categories and locales. Closes #134

Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MANIFEST

    r842 r844  
    3131templates/backlink_results.tt
    3232templates/banner.tt
     33templates/common_categories.tt
     34templates/common_locales.tt
    3335templates/delete_confirm.tt
    3436templates/delete_done.tt
  • trunk/README.CSS

    r843 r844  
    158158    Purpose: To display the image for a node
    159159
     160div#common_navigation
     161    Used in: node.tt
     162    Purpose: Hold the common locales and categories, if enabled
     163
     164div#common_categories
     165    Used in: common_categories.tt
     166    Purpose: Hold the common categories, if enabled
     167h3#common_categories_title
     168    Used in: common_categories.tt
     169    Purpose: Title for the common categories
     170ul#common_categories_list
     171    Used in: common_categories.tt
     172    Purpose: Parent list for the common categories
     173li.common_category
     174    Used in: common_categories.tt
     175    Purpose: A common category
     176a.common_category_link
     177    Used in: common_categories.tt
     178    Purpose: A link to a common category
     179
     180div#common_locales
     181    Used in: common_locales.tt
     182    Purpose: Hold the common locales, if enabled
     183h3#common_locales_title
     184    Used in: common_locales.tt
     185    Purpose: Title for the common locales
     186ul#common_locales_list
     187    Used in: common_locales.tt
     188    Purpose: Parent list for the common locales
     189li.common_locale
     190    Used in: common_locales.tt
     191    Purpose: A common locale
     192a.common_locale_link
     193    Used in: common_locales.tt
     194    Purpose: A link to a common locale
     195
    160196input#address
    161197    Used in: edit_conflict.tt, edit_form.tt
  • trunk/lib/OpenGuides.pm

    r841 r844  
    208208                   wgs84_lat     => $wgs84_lat
    209209               );
     210
     211    # Should we include a standard list of categories or locales?
     212    if ($config->enable_common_categories || $config->enable_common_locales) {
     213        $tt_vars{common_catloc} = 1;
     214        $tt_vars{common_categories} = $config->enable_common_categories;
     215        $tt_vars{common_locales} = $config->enable_common_locales;
     216        $tt_vars{catloc_link} = $config->script_url . "?id=";
     217    }
    210218
    211219    if ( $raw =~ /^#REDIRECT\s+(.+?)\s*$/ ) {
  • trunk/templates/node.tt

    r831 r844  
    143143[% END %]
    144144</div>
     145
     146[% IF common_catloc %]
     147<div id="common_navigation">
     148  [% IF common_categories %]
     149    [% INCLUDE common_categories.tt %]
     150  [% END %]
     151  [% IF common_locales %]
     152    [% INCLUDE common_locales.tt %]
     153  [% END %]
     154</div>
     155[% END %]
     156
    145157[% INCLUDE footer.tt %]
Note: See TracChangeset for help on using the changeset viewer.