Exemple #1
0
 public static function prepare_each_template($template)
 {
     $state = self::$state;
     $parameters = self::$state['parameters'];
     /*---------------------------------------------
      *
      * Clean each template of <br> and <p>
      *
      */
     if ($parameters['clean'] == 'true') {
         $template = CCS_Format::clean_content($template);
     }
     if (!empty($parameters['comment_author'])) {
         $template = '[----if comment_author=' . $parameters['comment_author'] . ']' . $template . '[/----if]';
     }
     // Make sure to limit by count parameter
     if (!empty(self::$state['parameters']['count']) && $state['loop_count'] > $parameters['count']) {
         return null;
     }
     return $template;
 }