| @@ 37-41 (lines=5) @@ | ||
| 34 | * @return string |
|
| 35 | */ |
|
| 36 | public function recent_comments(array $widget = []) { |
|
| 37 | if ($widget['settings'] === FALSE) { |
|
| 38 | $settings = $this->defaults; |
|
| 39 | } else { |
|
| 40 | $settings = $widget['settings']; |
|
| 41 | } |
|
| 42 | ||
| 43 | $this->db->select('comments.*'); |
|
| 44 | $this->db->select("IF(route.parent_url <> '', concat(route.parent_url, '/', route.url), route.url) as url", FALSE); // page full url |
|
| @@ 127-131 (lines=5) @@ | ||
| 124 | * @return string |
|
| 125 | */ |
|
| 126 | public function recent_product_comments(array $widget = []) { |
|
| 127 | if ($widget['settings'] === FALSE) { |
|
| 128 | $settings = $this->defaults; |
|
| 129 | } else { |
|
| 130 | $settings = $widget['settings']; |
|
| 131 | } |
|
| 132 | ||
| 133 | $this->db->select('comments.*'); |
|
| 134 | $this->db->select("IF(route.parent_url <> '', concat(route.parent_url, '/', route.url), route.url) as url", FALSE); // page full url |
|
| @@ 22-26 (lines=5) @@ | ||
| 19 | // Display recent or popular news |
|
| 20 | ||
| 21 | public function tags_cloud($widget = []) { |
|
| 22 | if ($widget['settings'] == FALSE) { |
|
| 23 | $settings = $this->defaults; |
|
| 24 | } else { |
|
| 25 | $settings = $widget['settings']; |
|
| 26 | } |
|
| 27 | ||
| 28 | $this->load->module('tags'); |
|
| 29 | $this->tags->prepare_tags(); |
|
| @@ 37-41 (lines=5) @@ | ||
| 34 | // Display recent or popular news |
|
| 35 | ||
| 36 | public function pages_tags_cloud($widget = []) { |
|
| 37 | if ($widget['settings'] == FALSE) { |
|
| 38 | $settings = $this->defaults; |
|
| 39 | } else { |
|
| 40 | $settings = $widget['settings']; |
|
| 41 | } |
|
| 42 | ||
| 43 | $this->load->module('tags'); |
|
| 44 | $this->tags->prepare_tags(); |
|
| @@ 35-39 (lines=5) @@ | ||
| 32 | * @return string |
|
| 33 | */ |
|
| 34 | public function recent_news($widget = []) { |
|
| 35 | if ($widget['settings'] == FALSE) { |
|
| 36 | $settings = $this->defaults; |
|
| 37 | } else { |
|
| 38 | $settings = $widget['settings']; |
|
| 39 | } |
|
| 40 | ||
| 41 | $this->db->select("IF(route.parent_url <> '', concat(route.parent_url, '/', route.url), route.url) as full_url, content.id, content.title, prev_text, publish_date, showed, content.position, comments_count, author, category.name as cat_name", FALSE); |
|
| 42 | $this->db->join('category', 'category.id=content.category'); |
|