Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by trkr ( 13 years ago )
// get all pages
$pages = $this->CI->{$this->model}->get_all_contents();
foreach ($pages as $k => $page) {
$page->status = ($page->status == '0') ? 'Bekliyor' : 'Yayında';
// get page categories
$cats = $this->CI->{$this->model}->get_content_categories($page->idcontents);
foreach ($cats as $cat) {
$c = $this->CI->{$this->model}->get_category(array('idcontents_category' => $cat));
$category[] = $c->title;
}
if (is_array($category)) $category = implode(', ', $category);
// get page tags
$tags = $this->CI->{$this->model}->get_content_tags($page->idcontents);
foreach ($tags as $tag) {
$t = $this->CI->{$this->model}->get_tag(array('idcontents_tag' => $tag));
$allTags[] = $t->title;
}
if (is_array($allTags)) $allTags = implode(', ', $allTags);
$pages[$k] = $page;
} // foreach
Revise this Paste