コード例 #1
0
ファイル: rss.php プロジェクト: jamiew/fuckflickr
print FF_ANTI_FLICKR_MSG;
?>
</description>
		<language>en-us<?php 
// TODO in8l me
?>
</language>
		<generator>FuckFlickr</generator>
<?php 
// not indented so the raw XML looks nice
foreach ($this->ff_items as $item) {
    $item = str_replace('//', '/', $item);
    // bug in RSS feed collection, FIXME
    $filename = basename($item);
    $dirname = cleanDirname($item);
    $raw_dir = dirname(cleanDirname($item)) . '/';
    $dir = str_replace(FF_DATA_DIR, '', $raw_dir);
    // w/o the /data/
    $itemURL = $this->urlFor('anchor', $filename, $dir);
    /* nasty, should fix anchor urlFor... */
    ?>
		<item>
			<guid><?php 
    print $itemURL;
    ?>
</guid>
			<link><?php 
    print $itemURL;
    ?>
</link>
			<title><?php 
コード例 #2
0
ファイル: header.php プロジェクト: jamiew/fuckflickr
images/feed-icon32x32.png" border="0" /></a>		
		
		<!-- regular title -->
		<a href="http://fffff.at">FFFFF.AT</a> / <a href="<?php 
echo $this->dir_root;
?>
">FUCKFLICKR</a>
		<?php 
// TODO clean this up. could use a directory(), parent(), breadcrumbs(), navigation() etc.
if ($this->dir != FF_DATA_DIR) {
    $parent = str_replace(FF_DATA_DIR, '', $this->dir);
}
$built = '';
foreach (explode('/', str_replace(FF_DATA_DIR, '', $this->dir)) as $dir) {
    if (empty($dir)) {
        continue;
    }
    $path = FF_DATA_DIR . $built . $dir . '/';
    if (empty($this->dir_info[$path . $dir])) {
        $this->readDirInfo($path, $path);
    }
    $url = preg_replace('/\\/$/', '', $this->urlFor('dir', $built . cleanDirname($dir))) . '/';
    // strip possible trailing slash (?) and add again
    echo ' / <a href="' . $url . '">' . (!empty($this->dir_info[$path]['directory']['title']) ? $this->dir_info[$path]['directory']['title'] : $dir) . '</a>';
    $built .= $dir . '/';
}
?>
	</div>

	<div id="main">