Задать вопрос

Тел: +7 965 3737 888

435

Просмотров

0

Ответов

simple tag-cloud Template Tag

<p>This Template Tag computes the font-size of two given arguments and returns a CSS-encoded string like "font-size: XXpx;", which can be used to format the font-size of link. (The minium font-size must be set with CSS.)</p>
<p>Requires two arguments: 
1. occurrence of the current tag
2. sum of all occurrences</p>
<p>It works great for my tag-cloud.</p>
<p><a href="http://www.php.de/php-fortgeschrittene/44928-tag-cloud-algorithmus-fuer-schriftgroessye.html">Source of the logarithmic formula</a></p>
<p><strong>Usage</strong></p>
<p>&lt;a href="http://www.anything.com" {% cloudify variable.occurrence overall. occurrence_sum %} title="anything"&gt;any tag&lt;/a&gt;</p>

Вопрос полезен? Да0/Нет0
file_5103.py(1.2Кб)
None