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