PHP Classes

File: tests/assert_templates/load.tpl

Recommend this page to a friend!
  Classes of Cesar D. Rodas   Haanga   tests/assert_templates/load.tpl   Download  
File: tests/assert_templates/load.tpl
Role: Auxiliary data
Content type: text/plain
Description: Testing data
Class: Haanga
Template engine to process Django style templates
Author: By
Last change: Improving Haanga

1. `phpunit` friendly
2. Improved {% load %} logic
Date: 4 years ago
Size: 788 bytes
 

Contents

Class file image Download
{% load "../../contrib/meneame_pagination.php" %} {% meneame_pagination page results_per_page total %} {% if mnm_prev %} <span class="nextprev">&#171; Previous</span> {% else %} <a href="?page{{ mnm_prev }}">&#171; Previous</a> {% endif %} {% if mnm_start > 1 %} <a href="?page=1">1</a>'; <span>...</span> {% endif %} {% for page in mnm_pages %} {% if mnm_current == page %} <span class="current">{{page}}</span> {% else %} <a href="?page={{page}}">{{page}}</a> {% endif %} {% endfor %} {% if mnm_total > mnm_end %} <span>...</span> <a href="?page={{ mnm_total}}">{{ mnm_total }}</a> {% endif %} {% if mnm_next %} <a href="?page={{mnm_next}}">&#187; Next</a> {% else %} <span class="nextprev">&#187; Next</span> {% endif %}