PHP Classes

File: engine/modules/core/gallery/gallery.qtags.inc

Recommend this page to a friend!
  Classes of Aldo Tripiciano   Quanta CMS   engine/modules/core/gallery/gallery.qtags.inc   Download  
File: engine/modules/core/gallery/gallery.qtags.inc
Role: Example script
Content type: text/plain
Description: Example script
Class: Quanta CMS
Manage content that works without a database
Author: By
Last change:
Date: 5 years ago
Size: 545 bytes
 

Contents

Class file image Download
<?php
/**
 * Implements GALLERY qtag.
 *
 * Detect images in a node and eventually create a Gallery.
 *
 * @param Environment $env
 * The Environment.
 *
 * @param string $target
 * The qtag's target.
 *
 * @param array $attributes
 * The qtag's attributes.
 *
 * @return string
 * The rendered qtag.
 */
function qtag_GALLERY($env, $target, $attributes) {
 
$theme = 'gallery';
 
$filelist = new FileList($env, $target, $theme, $attributes + array('file_types', 'image'), 'gallery');
   
$output = $filelist->render();
  return
$output;
}