PHP Classes

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

Recommend this page to a friend!
  Classes of Aldo Tripiciano   Quanta CMS   engine/modules/core/blog/blog.qtags.inc   Download  
File: engine/modules/core/blog/blog.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: 889 bytes
 

Contents

Class file image Download
<?php

/**
 * Implements BLOG qtag.
 *
 * Renders a "blog" view.
 *
 * TODO: pagination and other goodies.
 *
 * @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_BLOG($env, $target, $attributes) {
 
$dirlist = new DirList($env, $target, 'blog', array('sort' => 'time') + $attributes, 'blog');
  return
$dirlist->render();
}

/**
 * Implements READMORE qtag.
 *
 * Renders a "blog" view.
 *
 * TODO: pagination and other goodies.
 *
 * @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_READMORE($env, $target, $attributes) {
  return
'Read more';
}