diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.feeds.php | 8 | ||||
-rw-r--r-- | templates/part.folderlist.php | 6 | ||||
-rw-r--r-- | templates/part.items.header.php | 2 | ||||
-rw-r--r-- | templates/part.items.php | 2 | ||||
-rw-r--r-- | templates/test.php | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/templates/part.feeds.php b/templates/part.feeds.php index 68ef70451..f78f641d8 100644 --- a/templates/part.feeds.php +++ b/templates/part.feeds.php @@ -1,17 +1,17 @@ <?php - function print_folder(OC_News_Folder $folder){ + function print_folder(OCA\News\Folder $folder){ $tmpl_folder = new OCP\Template("news", "part.listfolder"); $tmpl_folder->assign('folder', $folder); $tmpl_folder->printpage(); $children = $folder->getChildren(); foreach($children as $child) { - if ($child instanceOf OC_News_Folder){ + if ($child instanceOf OCA\News\Folder){ print_folder($child); } - elseif ($child instanceOf OC_News_Feed) { //onhover $(element).attr('id', 'newID'); - $itemmapper = new OC_News_ItemMapper(); + elseif ($child instanceOf OCA\News\Feed) { //onhover $(element).attr('id', 'newID'); + $itemmapper = new OCA\News\ItemMapper(); $items = $itemmapper->findAll($child->getId()); $counter = 0; diff --git a/templates/part.folderlist.php b/templates/part.folderlist.php index a5f9626c6..972b60143 100644 --- a/templates/part.folderlist.php +++ b/templates/part.folderlist.php @@ -1,9 +1,9 @@ <?php - function print_folder(OC_News_Folder $folder, $depth){ - echo '<li style="margin-left:' . 10*$depth . 'px;" class="menuItem" onclick="News.DropDownMenu.selectItem(this, ' . $folder->getId() . ')">' . strtoupper($folder->getName()) . '</li>'; + function print_folder(OCA\News\Folder $folder, $depth){ + echo '<li style="margin-left:' . 10*$depth . 'px;" class="menuItem" onclick="News.DropDownMenu.selectItem(this, ' . $folder->getId() . ')">' . $folder->getName() . '</li>'; $children = $folder->getChildren(); foreach($children as $child) { - if ($child instanceOf OC_News_Folder){ + if ($child instanceOf OCA\News\Folder){ print_folder($child, $depth+1); } } diff --git a/templates/part.items.header.php b/templates/part.items.header.php index 04b319533..c4c9666bb 100644 --- a/templates/part.items.header.php +++ b/templates/part.items.header.php @@ -1,7 +1,7 @@ <?php if(isset($_['feedid'])){ - $feedmapper = new OC_News_FeedMapper(); + $feedmapper = new OCA\News\FeedMapper(); $feed = $feedmapper->findById($_['feedid']); $feedTitle = $feed->getTitle(); } else { diff --git a/templates/part.items.php b/templates/part.items.php index 8c2ef15d2..20701fff9 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -2,7 +2,7 @@ $feedid = isset($_['feedid']) ? $_['feedid'] : ''; -$itemmapper = new OC_News_ItemMapper(); +$itemmapper = new OCA\News\ItemMapper(); $items = $itemmapper->findAll($feedid); echo '<ul>'; diff --git a/templates/test.php b/templates/test.php index d088fe02d..6796a8cdc 100644 --- a/templates/test.php +++ b/templates/test.php @@ -9,7 +9,7 @@ $title = $parser->getTitle(); $data = $parser->parse(); foreach ($data as $collection) { - if ($collection instanceof OC_News_Feed) { + if ($collection instanceof OCA\News\Feed) { echo $collection->getTitle() . '\n'; } else { echo 'NO\n'; |