root/taggingreloaded/files/lib/page/PublicSEORewriterTagging.class.php @ 814

Revision 814, 0.8 kB (checked in by d0nut, 4 years ago)

tagging has no need for publicseorewriter

Line 
1<?php
2
3/**
4 * Rewrites links to normal or seo urls
5 *
6 * @author      Torben Brodt
7 * @package     de.easy-coding.wcf.taggingreloaded
8 * @license     GNU General Public License <http://opensource.org/licenses/gpl-3.0.html>
9 */
10class PublicSEORewriterTagging {
11
12        /**
13        * Parses a single tag
14        *
15        * @param       string          $tag
16        * @param       string          $string
17        *
18        * @return      string
19        */
20        public function publicParseTagURLs($tag, $string = null) {
21                if(defined('SEO_ENABLE') && SEO_ENABLE && defined('SEO_REWRITE_TAGGING') && SEO_REWRITE_TAGGING) {
22                        if($string === null) $string = SEO_REWRITE_TAGGING_FORMAT;
23                       
24                        $string = str_replace('{TAG}', $tag, $string);
25                        return $string;
26                } else {
27                        return sprintf('index.php?page=Tagging&amp;tag=%s', urlencode($tag));
28                }
29        }
30}
31?>
Note: See TracBrowser for help on using the browser.