url_to() static public method

static public url_to ( $part = null, $htmlsafe = true )
Example #1
0
    ?>
><?php 
    echo h($page->title);
    ?>
</a>
						</li>
					<?php 
}
?>
					<li class="divider"></li>
					<?php 
foreach (gb::categories() as $name => $objnames) {
    ?>
						<li class="category">
							<a href="<?php 
    echo gb::url_to('categories') . h($name);
    ?>
"
								<?php 
    echo gb::$is_categories && in_array($name, $categories) ? 'class="current"' : '';
    ?>
								><?php 
    echo h(ucfirst($name));
    ?>
</a>
						</li>
					<?php 
}
?>
				</ul>
			</div>
Example #2
0
				<li><a href="<?php 
echo gb::url_to('/examples');
?>
" <?php 
echo selected('examples');
?>
					title="Introduction to Smisk by example">examples</a></li>
				<li><a href="<?php 
echo gb::url_to('/docs');
?>
" <?php 
echo selected('docs');
?>
					title="Documentation of the Python API, the C API as well as general usage and guidelines">docs</a></li>
				<li><a href="<?php 
echo gb::url_to('/downloads');
?>
" <?php 
echo selected('downloads');
?>
					title="How and where to download Smisk">downloads</a></li>
				<li><a href="http://github.com/rsms/smisk/issues"
					title="List of all the horrible bugs... or wait a minute... no bugs?!">issues</a></li>
				<li><a href="http://github.com/rsms/smisk/tree/master"
					title="The master repository at GitHub, including all source code and information about the current development process">code</a></li>
			</ul>
		</div>
		<?php 
if (gb::$is_page && !gb::$is_404) {
    require '_page.php';
} else {
Example #3
0
    echo h($post->url());
    ?>
</id>
		<published><?php 
    echo $post->published;
    ?>
</published>
		<updated><?php 
    echo $post->modified;
    ?>
</updated>
		<?php 
    echo $post->tagLinks('', '', '<category scheme="' . gb::url_to('tags') . '" term="%n" />', "\n\t\t", "\n\t\t") . ($post->tags ? "\n" : '');
    ?>
		<?php 
    echo $post->categoryLinks('', '', '<category scheme="' . gb::url_to('categories') . '" term="%n" />', "\n\t\t", "\n\t\t") . ($post->categories ? "\n" : '');
    ?>
		<comments><?php 
    echo $post->comments;
    ?>
</comments>
		<gb:version><?php 
    echo $post->id;
    ?>
</gb:version>
		<?php 
    if ($post->excerpt) {
        ?>
		<summary type="html"><![CDATA[<?php 
        echo $post->excerpt;
        ?>