diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-09-07 15:21:03 +0200 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-09-07 15:21:03 +0200 |
commit | a59854cc809828501371dc934362c81a82e83cee (patch) | |
tree | 24e9172389f9fdf3aaaac50452f90c8dc9e77ed1 /templates | |
parent | ce2e3bd0cba51d5625c53d14bd58204eca89eaf2 (diff) |
adding space between) and {
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 4 | ||||
-rw-r--r-- | templates/part.feeds.php | 6 | ||||
-rw-r--r-- | templates/part.items.php | 8 | ||||
-rw-r--r-- | templates/part.listfeed.php | 2 | ||||
-rw-r--r-- | templates/part.listfolder.php | 2 | ||||
-rw-r--r-- | templates/subscribelet.php | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/templates/main.php b/templates/main.php index 06729ad4a..b220f14d1 100644 --- a/templates/main.php +++ b/templates/main.php @@ -3,11 +3,11 @@ <!-- End of Dialogs --> <?php -if ($_['feedid']){ +if ($_['feedid']) { $showAll = OCP\Config::getUserValue(OCP\USER::getUser(), 'news', 'showAll'); -if($showAll){ +if($showAll) { $viewButtonImg = 'eye_all.svg'; $viewButtonTitle = $l->t('Show everything'); $viewButtonClass = 'show_all'; diff --git a/templates/part.feeds.php b/templates/part.feeds.php index 0ee45ad0c..edcc0de83 100644 --- a/templates/part.feeds.php +++ b/templates/part.feeds.php @@ -3,7 +3,7 @@ function print_collection_list($list) { foreach($list as $collection) { - if ($collection instanceOf OCA\News\Folder){ + if ($collection instanceOf OCA\News\Folder) { $tmpl_folder = new OCP\Template("news", "part.listfolder"); $tmpl_folder->assign('folder', $collection); $tmpl_folder->printpage(); @@ -40,13 +40,13 @@ $starredCount = $itemMapper->countEveryItemByStatus(OCA\News\StatusFlag::IMPORTA ?> -<li class="subscriptions <?php if($feedType == OCA\News\FeedType::SUBSCRIPTIONS){ echo "active"; }; ?>"> +<li class="subscriptions <?php if($feedType == OCA\News\FeedType::SUBSCRIPTIONS) { echo "active"; }; ?>"> <a class="title" href="#" ><?php echo $l->t('New articles'); ?></a> <span class="buttons"> <button class="svg action feeds_markread" title="<?php echo $l->t('Mark all read'); ?>"></button> </span> </li> -<li class="starred <?php if($feedType == OCA\News\FeedType::STARRED){ echo "active"; }; ?>"> +<li class="starred <?php if($feedType == OCA\News\FeedType::STARRED) { echo "active"; }; ?>"> <a class="title" href="#" ><?php echo $l->t('Starred'); ?></a> <span class="unread_items_counter"><?php echo $starredCount ?></span> </li> diff --git a/templates/part.items.php b/templates/part.items.php index 6d6369ab7..b44a2688c 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -14,7 +14,7 @@ if ($feedId == -1 || $feedId == -2) { //TODO: change this values, too obscure $items = $itemMapper->findEveryItemByStatus($status); } else { - if($showAll){ + if($showAll) { $items = $itemMapper->findAll($feedId); } else { $items = $itemMapper->findAllStatus($feedId, OCA\News\StatusFlag::UNREAD); @@ -24,13 +24,13 @@ else { echo '<ul>'; foreach($items as $item) { - if($item->isRead()){ + if($item->isRead()) { $newsItemClass = "read"; } else { $newsItemClass = ""; } - if($item->isImportant()){ + if($item->isImportant()) { $starClass = 'important'; $startTitle = $l->t('Mark as unimportant'); } else { @@ -51,7 +51,7 @@ foreach($items as $item) { echo '<h1 class="item_title"><a target="_blank" href="' . $item->getUrl() . '">' . htmlspecialchars($item->getTitle(), ENT_QUOTES, 'UTF-8') . '</a></h1>'; - if(($item->getAuthor() !== null) && (trim($item->getAuthor()) != '')){ + if(($item->getAuthor() !== null) && (trim($item->getAuthor()) != '')) { echo '<h2 class="item_author">'. $l->t('by') . ' ' . htmlspecialchars($item->getAuthor(), ENT_QUOTES, 'UTF-8') . '</h2>'; } diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php index cfa49b82d..cf4277dbd 100644 --- a/templates/part.listfeed.php +++ b/templates/part.listfeed.php @@ -2,7 +2,7 @@ $l = new OC_l10n('news'); -if(isset($_['mock'])){ +if(isset($_['mock'])) { $feedTitle = ''; $feedId = -1; $unreadItemsCount = -1; diff --git a/templates/part.listfolder.php b/templates/part.listfolder.php index 6e8ea6350..93cc96c98 100644 --- a/templates/part.listfolder.php +++ b/templates/part.listfolder.php @@ -2,7 +2,7 @@ $l = new OC_l10n('news'); -if(isset($_['mock'])){ +if(isset($_['mock'])) { $folderId = -1; $folderName = ''; } else { diff --git a/templates/subscribelet.php b/templates/subscribelet.php index 4db1c55e7..d4a8994fc 100644 --- a/templates/subscribelet.php +++ b/templates/subscribelet.php @@ -3,6 +3,6 @@ function createSubscribelet() { $l = OC_L10N::get('news'); echo '<small>' . $l->t('Drag this to your browser bookmarks and click on it whenever you want to subscribe to a webpage quickly:') . '</small>' - . '<a class="button bookmarklet" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open(\'' . OCP\Util::linkToAbsolute('news', 'subscribe.php') . '?output=popup&url=\'+c(b.location),\'bkmk_popup\',\'left=\'+((a.screenX||a.screenLeft)+10)+\',top=\'+((a.screenY||a.screenTop)+10)+\',height=150px,width=360px,resizable=1,alwaysRaised=1\');a.setTimeout(function(){d.focus()},300);})();">' + . '<a class="button bookmarklet" href="javascript:(function() {var a=window,b=document,c=encodeURIComponent,d=a.open(\'' . OCP\Util::linkToAbsolute('news', 'subscribe.php') . '?output=popup&url=\'+c(b.location),\'bkmk_popup\',\'left=\'+((a.screenX||a.screenLeft)+10)+\',top=\'+((a.screenY||a.screenTop)+10)+\',height=150px,width=360px,resizable=1,alwaysRaised=1\');a.setTimeout(function() {d.focus()},300);})();">' . $l->t('Subscribe') . '</a>'; } |