![]() |
||
|
||
| The Harvest | Reviews | Read Mes | Projects | ||||||||||
|
Soft Carcass
comments
love love it...moooOO/ neighhH Posted by: k at October 22, 2004 03:22 PMThe MTPaginate tag only works within PHP documents!
// Values that can be used in other PHP code on the page
$paginate_num_pages = 2;
$paginate_num_sections = 13;
$paginate_page_selector = 'page';
$paginate_current_page = $_GET['page'];
// Pin page selector to a valid number (or 'all')
if($paginate_current_page=='')
$paginate_current_page = '1';
if($paginate_current_page != 'all') {
if($paginate_current_page == 'first')
$paginate_current_page = 1;
elseif($paginate_current_page == 'last')
$paginate_current_page = 2;
elseif($paginate_current_page < 1)
$paginate_current_page = 1;
elseif($paginate_current_page > 2)
$paginate_current_page = 2;
$paginate_sections = array( 0
, 10, 13);
$paginate_top_section = $paginate_sections[$paginate_current_page-1]+1;
$paginate_bottom_section = $paginate_sections[$paginate_current_page];
} else {
$paginate_top_section = 1;
$paginate_bottom_section = 13;
}
$paginate_self = '&' . $_SERVER['QUERY_STRING'] . '&';
$paginate_self = preg_replace("/&page=[^&]*&/", "&", $paginate_self);
$paginate_self = substr($paginate_self, 1, strlen($paginate_self) - 1);
if($paginate_self == '&')
$paginate_self = '';
else
$paginate_self = htmlentities($paginate_self);
$paginate_self = basename($_SERVER['PHP_SELF']) . "?${paginate_self}page";
?>
Make sure that the document extension is .php and that your server supports PHP documents.
'I, Faker' chronicles the descent of trade journal hack-ism into satirical search for humanity in the deathly press release prose....
December 07, 2004
Whats so great about cab offices at christmas? Well, for starters, its the total lack of conscious design but its also the mystical prehistorical tin foil symbols too ...
November 25, 2004
A fanzine on wheels: The rear window plastered with fading pictures of Freddie, the boot covered with stick-on lettering. The Queen Mobile spotted brightening up a traffic jam around Shepherds Bush....
November 21, 2004
"The objectives of the Knork are: to provide a single utensil capable of providing the benefits of a knife and fork ... "...
They say the first step is to admit to your vice. OK, my name is Sam and I like postmodern architecture. My love for this universally reviled twentieth-century movement began in bargain bookshops. The architecture section was like a Battersea...
November 15, 2004
A Contribution to the Ethical Taxonomy of Political Signage...
November 04, 2004
The secret history of Ketchup...
October 21, 2004
Clova Estate, Aberdeenshire...
September 19, 2004
Imagine sitting at home when suddenly the sky goes white. Not that shadowless white-without-limit where cloud meets mist on a winter morning. But a whiteness with a grid of reinforcements and repeating logos which stops a few yards from...
August 24, 2004
A scrap of of something for Intersection magazine : My parents had a Morris Traveller in the early 1970s. I have vague dreamlike memories of sitting in the back driving through the English countryside with a large clay Cider jug...
June 16, 2004
What happens when London gets bigger and bigger? What happens when postcard London is further away than Reading? When the familiar landmarks that stand for London are far over the horizon. When London is only a tourist destination and a...
May 27, 2004
I was asked by FX magazine to name my 4 favorite things. Here they are: Polly Pocket: Plastic toys which open up, swivel and fold to reveal incredibly intricate, pastel pink and blue landscapes. They have the kind of beauty...
May 16, 2004
Carlton Terrace runs along the back of the Mall, and if you’re ever there on a weekend you might see actors dressed in 19th century costume looking bored and drinking Nescafe. That's because if you stand in the right...
January 28, 2004
1)
echo ' | ';
if($i == $paginate_current_page) {
echo sprintf(" %d ", $i);
} else {
echo " %d ', $i) . '';
}
}
?>
|
|