Guest User

Untitled

a guest
Jul 15th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. protected function get_description()
  2. {
  3. if (get_query_var('paged')) {
  4. $paged = get_query_var('paged');
  5. } elseif (get_query_var('page')) {
  6. $paged = get_query_var('page');
  7. } else {
  8. $paged = 1;
  9. }
  10. if ($paged == 1) {
  11. if (!empty($this->current_category_obj->description)) { // is needed?
  12. return '<div class="td-category-description"><p>' . $this->current_category_obj->description . '</p></div>';
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment