Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# Uses GraphicsMagick to stich together all images in a folder and
# generates a CSS file with the correct offsets along with a
# test HTML page for verification
if [ $# -gt 0 ]
then
if [ $3 ]
@markomarkovic
markomarkovic / paging.ctp
Created October 25, 2012 11:39 — forked from justinyost/paging.ctp
Paging Element for Twitter Bootstrap and CakePHP 2.0+
<?php $span = isset($span) ? $span : 8; ?>
<?php $page = isset($this->request->params['named']['page']) ? $this->request->params['named']['page'] : 1; ?>
<?php $pages = (int)$this->Paginator->counter('{:pages}'); ?>
<div class="pagination pagination-centered">
<ul>
<?php echo $this->Paginator->prev(
'&larr; ' . __('Previous'),
array(
'escape' => false,
'tag' => 'li'