CMS  Version 3.9
EmbeddedSlideshowHandler Class Reference

Static Public Member Functions

static postProcessContent ($content)
 

Detailed Description

Definition at line 39 of file embedded_slideshow.inc.

Member Function Documentation

◆ postProcessContent()

static EmbeddedSlideshowHandler::postProcessContent (   $content)
static

Definition at line 41 of file embedded_slideshow.inc.

42  {
43  global $script;
44 
45  $matches = array();
46 
47  if (preg_match("/\\{slideshow:(?:<span>)?([\\w\\d_]+)(?:<\\/span>)?:(\\d+)\\s*x\\s*(\\d+)\\}/i", $content, $matches))
48  {
49  $gallery_id = $matches[1];
50  $width = $matches[2];
51  $height = $matches[3];
52 
53  if (is_numeric($gallery_id))
54  {
56  }
57  else
58  {
60  }
61 
62  $images = $gallery->Images("WHERE include_in_slideshow=1 ORDER BY sort_order, image_id");
63 
65 
66  $script .= $slideshow->writeScript();
67 
68  ob_start();
69 
70  $slideshow->writeHTML();
71 
72  $sout = ob_get_contents();
73 
74  ob_end_clean();
75 
76  $content = str_replace($matches[0], $sout, $content);
77  }
78 
79  return $content;
80  }
$gallery_id
Definition: image_form.inc:42
$images
Definition: images.inc:46
The Slideshow class provides a reusable user interface control that displays images from the database...
Definition: slideshow.inc:51
$height
Definition: cover.inc:38
$width
Definition: cover.inc:37
$slideshow
Definition: slideshow.inc:46
if(array_key_exists("HTTP_IF_MODIFIED_SINCE", $_SERVER)) $content
Definition: styles.css.inc:24

The documentation for this class was generated from the following file: