echo "</div>"; } elseif ($type == "readers") { $page = MyTypechoTheme_Plugin::$_cache[0]["p_readers"]; if (!$page) { $page = readerWall($this->db, $this->options); MyTypechoTheme_Plugin::setcache("p_readers", $page); } echo "<div class=\"entry-content\">"; $this->content(); echo $page; echo "</div>"; } elseif ($type == "tags") { $page = MyTypechoTheme_Plugin::$_cache[0]["p_tags"]; if (!$page) { $page = TagArchive($this->db); MyTypechoTheme_Plugin::setcache("p_tags", $page); } echo "<style type=\"text/css\">#tag-nav ul li{display:inline-block;margin:10px}#tag-nav ul li a{border:1px solid #ddd;color:#3b5998;padding:5px 6px;text-align:center;width:20px;display:inline-block}#tag-nav ul li .noclick{background-color:#fafafa;border:1px solid #eee;color:#eee}.tags-all-list{margin:10px 20px}.tags-all-list dl{border-bottom:1px dashed #ccc;margin:20px 0;padding:10px 0}.tags-all-list dt{float:left;font-size:28px;line-height:23px;text-align:center;width:70px;font-style:oblique;margin-left:38px}.tags-all-list dd{margin-left:70px}ul.inline,ol.inline{list-style:none outside none;margin-left:0}.tags-all-list dd li a{color:#e74c3c}ul.inline>li,ol.inline>li{display:inline-block;padding-left:5px;padding-right:5px}.tags-all-list .set-tags{margin-left:5px;position:relative;top:-6px}</style>"; echo $page; } else { echo "<div class=\"entry-content\">"; $this->content(); echo "</div>"; } ?> </article> <?php } if ($allowComment && $this->allow("comment")) { if (!$isAjax) { ?>
function FeaturedSlider() { if (isset(MyTypechoTheme_Plugin::$_cache[0]["featured"])) { return MyTypechoTheme_Plugin::$_cache[0]["featured"]; } if (empty(MyTypechoTheme_Plugin::$_options->featured)) { return false; } $posts = MyTypechoTheme_Plugin::matchPost(@explode("\n", str_replace("\r", "", MyTypechoTheme_Plugin::$_options->featured))); if (empty($posts)) { return false; } $output = ""; $counter = 1; foreach ($posts as $cid => $post) { //Field $thumb = MyTypechoTheme_Plugin::getField($cid, 'featured'); if (empty($thumb)) { $thumb = scaleThumb($post[2], 960, 290); } if ($thumb) { $output .= '<li class="slide-' . $counter . '"><a href="' . $post[1] . '"><img src="' . $thumb . '" alt="' . $post[0] . '" /></a></li>'; } } MyTypechoTheme_Plugin::setcache("featured", $output); return $output; }