Author Topic: Light mod to widget - adding text after category counter  (Read 142 times)

iuliecom

  • Newbie
  • *
  • Posts: 4
Light mod to widget - adding text after category counter
« on: December 30, 2011, 07:34:01 AM »
Hello there,

I was wondering how I could modify the widget to insert a text right after the category post counter. Example:

Standard : Alinuta (11)
Custom: Alinuta (11 bancuri cu alinuta)

It would be ok to insert the category description in there, or a custom text.

PS.: Thank your for the widget.

Thanks!
Iulian

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Light mod to widget - adding text after category counter
« Reply #1 on: December 30, 2011, 01:54:17 PM »
Give this a try, I didn't test it though.

See the file:
class/avh-ec.core.php line 685
Code: [Select]
$link .= '<div class="avhec-widget-count"> (' . intval($category->count) . ')</div>';
New would be
Code: [Select]
$link .= '<div class="avhec-widget-count"> (' . intval($category->count) . ' '.$category->description.')</div>';
Peter van der Does
AVH Plugins developer

iuliecom

  • Newbie
  • *
  • Posts: 4
Re: Light mod to widget - adding text after category counter
« Reply #2 on: December 31, 2011, 03:57:40 AM »
That's great man, it's working.

Thank you for your quick reply, Peter.

Have a Happy New Year!
Iulian