WordPress.org

Ready to get started?Download WordPress

Forums

Configurable Tag Cloud (CTC)
postcount in base.php (3 posts)

  1. ssonali
    Member
    Posted 2 years ago #

    Hello this plugin is very nice. Just one query I have in base.php. I want to add "postcount" within tag means before in below code which is in base.php of plugin. (('yes' == $showcount ? " $postcount" : "") and ('yes' == $showcount ? " $postcount" : ""))

    Can you pls help. Thanks in advance.

    if ($format=='list') {
    $a[] = "<li class=\"ctc-tag-li\"><a href=\"$tag_link\" class=\"ctc-tag tag-link-$tag_id\" title=\"".attribute_escape(sprintf(__('%d topics'), $count))."\"$rel style=\"font-size: ".$tag_weight
    ."$unit;".(isset($tag_color) ? " color: $tag_color;" : "")
    ."\">$tag".('yes' == $showcount ? " $postcount" : "")."";
    } elseif ($format=='drop') {
    $a[] = "<option value='$tag_link'>$tag".('yes' == $showcount ? " $postcount" : "")."</option>";
    } else {
    $a[] = "<a href=\"$tag_link\" class=\"ctc-tag tag-link-$tag_id\" title=\"".attribute_escape(sprintf(__('%d topics'), $count))."\"$rel style=\"font-size: ".$tag_weight
    ."$unit;".(isset($tag_color) ? " color: $tag_color;" : "")
    ."\">$tag"."".('yes' == $showcount ? " $postcount" : "");
    }

    http://wordpress.org/extend/plugins/configurable-tag-cloud-widget/

  2. ssonali
    Member
    Posted 2 years ago #

    sorry in above post there is error of "tag means before".

    I want to add $postcount before closing the a tag. (Pls check below)

    ."\">$tag".('yes' == $showcount ? " $postcount" : "")."";

    and

    ."\">$tag"."".('yes' == $showcount ? " $postcount" : "");

    Thanks,
    Sonali

  3. ssonali
    Member
    Posted 2 years ago #

    Any Solution ???

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic