Dotclear

source: plugins/iphoneview/_prepend.php @ 1101

Revision 1101, 1.8 KB checked in by hadrien, 14 years ago (diff)

ajout du plugin iphoneview

Line 
1<?php
2# ***** BEGIN LICENSE BLOCK *****
3# This file is part of iPhoneView.
4# Copyright (c) 2009 Hadrien Lanneau.
5# All rights reserved.
6#
7# Pixearch is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# iPhoneView is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with iPhoneView; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20#
21# http://www.alti.info/pages/iPhoneView
22#
23# ***** END LICENSE BLOCK *****
24
25$core->url->register(
26     'iphone-home',
27     'iphone-home',
28     '^iphone/?$',
29     array(
30          'iPhoneViewUrls',
31          'home'
32     )
33);
34$core->url->register(
35     'iphone-home-page',
36     'iphone-home-page',
37     '^iphone/page/(.+)$',
38     array(
39          'iPhoneViewUrls',
40          'home'
41     )
42);
43
44$core->url->register(
45     'iphone-post',
46     'iphone-post',
47     '^iphone/post/(.+)$',
48     array(
49          'iPhoneViewUrls',
50          'post'
51     )
52);
53
54$core->url->register(
55     'iphone-category',
56     'iphone-category',
57     '^iphone/category/(.+)$',
58     array(
59          'iPhoneViewUrls',
60          'category'
61     )
62);
63
64$core->url->register(
65     'iphone-category-page',
66     'iphone-category-page',
67     '^iphone/category/((.+)/page/(.+))$',
68     array(
69          'iPhoneViewUrls',
70          'category'
71     )
72);
73
74$core->url->register(
75     'iphone-tag',
76     'iphone-tag',
77     '^iphone/tag/(.+)$',
78     array(
79          'iPhoneViewUrls',
80          'tag'
81     )
82);
83
84$core->url->register(
85     'iphone-tag-page',
86     'iphone-tag-page',
87     '^iphone/tag/((.+)/page/(.+))$',
88     array(
89          'iPhoneViewUrls',
90          'tag'
91     )
92);
93
Note: See TracBrowser for help on using the repository browser.

Sites map