Home >Backend Development >PHP Tutorial >Implementation code of Typecho color tag cloud

Implementation code of Typecho color tag cloud

WBOY
WBOYOriginal
2016-07-25 08:57:051230browse
  1. Typecho_Widget::widget('Widget_Metas_Tag_Cloud')->to($tags); ?>
  2. have()): ?> ;
  3. next()): ?>
  4. name(); ?>
Copy code

If the tag cloud is added to a single page, add it on the page.php page content(); ?> Replace with the following code:

  1. slug=="tags"): ?>to($tags); ?>have()): ?> next()): ?>
  2. name(); ?>
  3. content(); ?>
Copy the code

Create a new independent page with the abbreviation tags, and the effect of the colored tag cloud will be displayed on the independent page.

Principle: Determine whether the page abbreviation is tags, if so, execute the color tag cloud code, if not, display the page content.



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn