</wfw:commentRSS> </item> <?php } ?> </channel> </rss> <?php exit; } //end if format == rss20 || rss echo ' <a style="float:right;" href="http://' . $_SERVER['HTTP_HOST'] . '/?xn_auth=no&format=rss20' . ($_REQUEST['user'] ? '&user='******'user'] : '') . ($_REQUEST['tag'] ? '&tag=' . $_REQUEST['tag'] : '') . ($_REQUEST['q'] ? '&q=' . urlencode($_REQUEST['q']) : '') . '" rel="alternate"><img src="http://wrinks.ning.com/feedicon12x12.png" alt="[feed]" /></a>'; echo '<p>' . nl2br($setup->my->homepageblurb) . '</p>'; echo '<h2 class="pagetitle">' . $title . ' (' . $from . ' - ' . $to . ' of ' . $total . ')</h2>'; echo '<xn:head><title>' . XN_Application::load()->name . ' - ' . $title . '</title></xn:head>'; echo '<ul>'; foreach ($items as $item) { echo '<li><a href="/xn/detail/' . $item->id . '">' . $item->h('title') . '</a>' . ($item->description ? ' - ' : '') . substr(strip_tags($item->description), 0, 100) . (strlen(strip_tags($item->description)) > 100 ? '...' : '') . '</li>'; } //end foreach echo '</ul>'; if ($to < $total) { echo '<p><a href="/?' . $_SERVER['QUERY_STRING'] . '&start=' . $to . '">More »</a></p>'; } echo '<h2 class="pagetitle">Tags</h2>'; if ($_REQUEST['user']) { echo XNC_HTML::buildMap(getTagCount(), '/user/' . $_REQUEST['user'] . '/?tag=%s', '', true, 60, 300); } else { echo XNC_HTML::buildMap(getTagCount(), '/?tag=%s', '', true, 60, 300); }
display:block; width:250px; float:right; clear:both; margin: 0px; } </style> </xn:head> <?php require_once 'tagFunctions.php'; require_once 'XNC/HTML.php'; $item = XN_Content::load(intval($_REQUEST['id'])); $item->focus(); echo '<xn:head><title>Wrinks - Site : ' . $item->title . '</title></xn:head>'; echo '<h2 class="pagetitle">Site : ' . $item->title . '</h2>' . "\n"; echo XNC_HTML::buildMap(fetchTagsWithCount($item), 'sites.php?tag=%s', '', true, 70, 120) . "\n"; if (XN_Profile::current()->isLoggedIn()) { ?> <form method="get" action="editSite.php"><div id="tag_form" style="margin:0px;background-color:transparent;padding:0px;width:250px;"><br /> <?php echo ' <input type="hidden" name="id" value="' . $item->id . '" />'; ?> <input type="text" name="tags" /> <input type="submit" value="Add Tags" /> </div></form> <?php } //end if isLoggedIn echo '<p style="font-style:italic;">' . $item->description . '</p>' . "\n"; if (XN_Profile::current()->screenName == $item->contributorName) { echo '<p><a href="javascript:toggleitem("editsite");">Edit</a></p>' . "\n";
<?php $pathvars = array_reverse(explode('/', $_SERVER['SCRIPT_URI'])); if (!$pathvars[0]) { $pathvars[0] = $pathvars[1]; $pathvars[1] = $pathvars[2]; } $query = XN_Query::create('Content')->filter('owner', '=')->filter('type', 'eic', 'TagGroup')->alwaysReturnTotalCount(true); if ($pathvars[1] == 'tag' || $pathvars[0] == 'tag') { if (!$pathvars[0] || $pathvars[0] == 'tag') { require_once 'tagFunctions.php'; require_once 'XNC/HTML.php'; echo '<xn:head><title>tagging / tag</title></xn:head>'; echo '<h2>Tags</h2>'; echo XNC_HTML::buildMap(getTagCount(), 'index.php/tag/%s', '', true, 60, 300); exit; } //end if ! pathvars[0] if (!isset($_REQUEST['auto']) && !$_REQUEST['format']) { echo '<xn:head><title>tagging / tag / ' . htmlspecialchars($pathvars[0]) . '</title></xn:head>'; echo '<h2>Tag Groups With Related Tag of ' . htmlspecialchars($pathvars[0]) . '</h2>'; } //end if ! isset auto $_REQUEST['tag'] = $pathvars[0]; } //end if pathvars[1] == tag if ($pathvars[1] == 'tags') { if (!isset($_REQUEST['auto']) && !$_REQUEST['format']) { echo '<xn:head><title>tagging / tags / ' . htmlspecialchars($pathvars[0]) . '</title></xn:head>'; echo '<h2>Tag Groups With GroupTag of ' . htmlspecialchars($pathvars[0]) . '</h2>'; }