Example #1
0
function if_thumbnail($atts, $thing)
{
    global $thisimage;
    assert_image();
    return parse(EvalElse($thing, $thisimage['thumbnail'] == 1));
}
Example #2
0
 /**
  * Checks if the image is the last in the list.
  *
  * @param  array  $atts
  * @param  string $thing
  * @return string
  */
 public static function renderIfLastImage($atts, $thing)
 {
     global $thisimage;
     assert_image();
     return parse(EvalElse($thing, !empty($thisimage['is_last'])));
 }