Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, November 13, 2026

Diff for Metafox/subst.inc.php between version 1.45 and 1.46

version 1.45, 2010/10/15 14:09:15 version 1.46, 2010/11/02 17:32:26
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/subst.inc.php,v 1.44 2009-06-06 22:43:14 nepto Exp $ */  /* $Platon: Metafox/subst.inc.php,v 1.45 2010-10-15 14:09:15 igor Exp $ */
   
 require_once 'cfgldr.inc.php';  require_once 'cfgldr.inc.php';
 require_once 'error.inc.php';  require_once 'error.inc.php';
Line 415  if ($ezin_tmpl_main->isVar('article_item
Line 415  if ($ezin_tmpl_main->isVar('article_item
         }          }
 } /* }}} */  } /* }}} */
   
   /*
    * Building featured articles list
    */
   
   if ($ezin_tmpl_main->isVar('featured_articles_items')) { /* {{{ */
   
           if ($ezin_cfg['featured_articles'] == '1') {
   
                   $cache_id = 'featured_articles';
                   $cache_ar = ezin_cache_load($cache_id);
   
                   if (intval($cache_ar['timestamp']) <= 0) {
                           $featured_item = new HTML_Template_Platon($ezin_sys['tmpl']['featured_articles_item'].$ezin_tmpl_key,
                                           HTML_TEMPLATE_PLATON_METHOD_NORMAL);
   
                           $featured_articles = ezin_get_featured_articles_list(intval($ezin_cfg['featured_articles_limit']) ,$ezin_cgi['lang']);
   
                           $cache_ar['content'] = '';
   
                           for ($k = 0; $k < count($featured_articles); $k++) {
                                   $featured_item->reload();
                                   ezin_section_link_process($featured_articles[$k], 'featured_article_');
                                   ezin_author_link_process($featured_articles[$k], 'featured_article_');
                                   ezin_article_link_process($featured_articles[$k], $ezin_db_author != '', 'featured_article_');
                                   ezin_article_counts_process($featured_articles[$k]);
                                   ezin_handle_special_tags($featured_articles[$k]['featured_article_ghometext'], $featured_articles[$k]['featured_article_ghometext_flags']);
                                   ezin_handle_special_tags($featured_articles[$k]['featured_article_hometext'], $featured_articles[$k]['featured_article_hometext_flags']);
                                   ezin_process_text_flags($featured_articles[$k]['featured_article_ghometext'], 'featured_article_ghometext');
                                   ezin_process_text_flags($featured_articles[$k]['featured_article_hometext'], 'featured_article_hometext');
                                   $featured_articles[$k]['featured_article_date']     = date($ezin_cfg['format_date'], $featured_articles[$k]['featured_article_timestamp']);
                                   $featured_articles[$k]['featured_article_datetime'] = date($ezin_cfg['format_datetime'], $featured_articles[$k]['featured_article_timestamp']);
                                   /* if atitle is empty, set it to title, but if title is empty, remains it unchanged */
                                   if (empty($featured_articles[$k]['featured_article_atitle']) && ! empty($featured_articles[$k]['featured_article_title']))
                                           $featured_articles[$k]['featured_article_atitle'] = $featured_articles[$k]['featured_article_title'];
   
                                   $featured_item->set($featured_articles[$k]);
                                   $cache_ar['content'] .= $featured_item->getCode();
                           }                                             //print_r($cache_ar);
                           //$cache_ar['content'] = Platon::tilde_replace($cache_ar['content']);
                           unset($featured_articles);
                           unset($featured_item);
                           ezin_cache_save($cache_id, $cache_ar['content']);
                   }
   
                   $ezin_tmpl_main->setCode('featured_articles_items', $cache_ar['content']);
   
           } else { // if disabled Feature articles in config
                   $ezin_tmpl_main->set(array('featured_articles_items' => '' ));
           }
   } /* }}} */
   
 /*  /*
  * Building calendar   * Building calendar
  */   */

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top