Example #1
0
 function rss_getContent()
 {
     $content_to_display = $this->content;
     $content_to_display = document_display($content_to_display);
     $content_to_display = image_display($content_to_display);
     // Remove the rest of the tags
     $content_to_display = scrub_HCd_Tags($content_to_display);
     return $content_to_display;
 }
Example #2
0
 function get_content()
 {
     if (array_key_exists('content', $this)) {
         $content = $this->content;
     } elseif (array_key_exists('description', $this)) {
         $content = $this->description;
     } else {
         return null;
     }
     if (isset($content)) {
         // The order in which these run is important.
         $content = document_display($content);
         // searching for {{document:name_of_doc{{ pattern
         $content = video_display($content);
         // searching for {{video:name_of_vid{{ pattern
         $content = email_display($content);
         /// Need to run email before we insert them from a product
         $content = product_display($content);
         // searching for {{product:name_of_product{{ pattern
         $content = image_display($content);
         // searching for {{name_of_image{{ pattern
         $content = gallery_display($content);
         // searching for {{galery:name_of_gal{{ pattern
         $content = carousel_display($content);
         // searching for {{carousel:name_of_gal{{ pattern
         $content = random_from_gallery_display($content);
         // searching for {{random-from-gallery:name_of_gal{{ pattern
         $content = testimonial_display($content);
         // searching for {{testimonial:name_of_test{{ pattern
         return $content;
     }
 }