Changeset 7524


Ignore:
Timestamp:
Oct 31, 2010, 10:16:04 PM (13 years ago)
Author:
ddtddt
Message:

[extensions] - meta - add conf for description home

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/metasimple/main.inc.php

    r7517 r7524  
    2626  //meta homepage
    2727        {
    28                 global $template, $page, $meta_infosdesc;
     28                global $template, $page, $meta_infosdesc, $conf;
    2929        $meta_infosdesc = array();
    3030        $meta_infosdesc['info'] = $template->get_template_vars('INFO_FILE');
     
    3232        $meta_infosdesc['comment'] = $template->get_template_vars('COMMENT_IMG');
    3333 
    34   if (isset($page['section']) and $page['section'] == 'categories' and empty($page['category']['id']))
     34        if (isset($page['section']) and $page['section'] == 'categories' and empty($page['category']['id']))
    3535                {
    36                 $descindex='ttz';
    37                                 if (!empty($descindex))
    38                                         {
    39                                                 $template->assign('COMMENT_IMG', $descindex);
    40                                                 $template->clear_assign('INFO_FILE');
    41                                         }
     36                        $descindex = & $conf['metasimple'];             
     37                        if (!empty($descindex))
     38                                {
     39                                        $template->assign('COMMENT_IMG', $descindex);
     40                                        $template->clear_assign('INFO_FILE');
     41                                }
    4242                }
    4343        }
    4444
    4545function add_metadesccat()
     46  //meta albums
    4647        {
    4748                global $template, $page, $meta_infosdesc;
     
    6869
    6970function add_metadescimg()
     71  //meta photos
    7072        {
    7173                global $template, $page, $meta_infosdesc;
Note: See TracChangeset for help on using the changeset viewer.