Class TfishMetadata
Holds page-level metadata and generates pagination controls.
Generates metadata for the page and pagination control. User-facing controller scripts can override the site-level defaults by uncommenting the options at the bottom of each file. A good example of this is when viewing a single content object; if it has the meta_title and meta_description fields set you can assign those to this object in order to customise the page title and description to the object, thereby improving your SEO.
Copyright: Simon Wilkinson 2013-2017 (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Located at trust_path/libraries/tuskfish/class/TfishMetadata.php
Methods summary
public
|
|
public
string
|
#
getPaginationControl( integer $count, integer $limit, string $url, integer $start = 0, integer $tag = 0, array $extra_params = array() )
Creates a pagination control designed for use with the Bootstrap framework. |
public
string|boolean
|
|
public
|
|
public
boolean
|
|
public
boolean
|
Properties summary
protected
array
|
$__data
$__data Array holding values of this object properties, accessed via magic methods. |
#
array(
'title' => '',
'description' => '',
'author' => '',
'copyright' => '',
'generator' => '',
'seo' => '',
'robots' => '',
'pagination_elements' => '')
|
Magic properties
public
string
|
$title
Meta title of this website. |
public
string
|
$description
Meta description of this website. |
public
string
|
$author
Author of this website. |
public
string
|
$copyright
Copyright notice. |
public
string
|
$generator
Software system that generated this page. |
public
string
|
$seo
SEO optimisation string to append to page URL. |
public
string
|
$robots
Meta instructions to robots. |
public
integer
|
$pagination_elements
Number of slots in the pagination control. |