X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Ftheme.php;h=e0c382661a1be3b1099f626d9a9ffea4230537b8;hb=bc724f2b68004fc90729adba150360ab7456747d;hp=00c475e30179452ad324fd78a151ae547c5d137a;hpb=c2d8738285d24edad48ff04880f236f802fba4be;p=friendica.git diff --git a/view/theme/frio/theme.php b/view/theme/frio/theme.php index 00c475e301..e0c382661a 100644 --- a/view/theme/frio/theme.php +++ b/view/theme/frio/theme.php @@ -7,6 +7,8 @@ * */ +use Friendica\App; + $frio = "view/theme/frio"; global $frio; @@ -78,12 +80,12 @@ function frio_item_photo_links(App $a, &$body_info) { $occurence = 1; $p = bb_find_open_close($body_info['html'], ""); - while ($p !== false && ($occurence++ < 500)) { + while($p !== false && ($occurence++ < 500)) { $link = substr($body_info['html'], $p['start'], $p['end'] - $p['start']); $matches = array(); preg_match("/\/photos\/[\w]+\/image\/([\w]+)/", $link, $matches); - if ($matches) { + if($matches) { // Replace the link for the photo's page with a direct link to the photo itself $newlink = str_replace($matches[0], "/photo/{$matches[1]}", $link); @@ -130,7 +132,7 @@ function frio_item_photo_menu(App $a, &$arr) { * Additionally the profile, status and photo page links will be changed * to don't open in a new tab if the contact is a friendica contact. * - * @param app $a The app data + * @param App $a The app data * @param array $args Contains contact data and the original photo_menu */ function frio_contact_photo_menu(App $a, &$args){ @@ -182,7 +184,7 @@ function frio_contact_photo_menu(App $a, &$args){ * Some links will point to the local pages because the user would expect * local page (these pages are: search, community, help, apps, directory). * - * @param app $a The App class + * @param App $a The App class * @param array $nav The original nav menu */ function frio_remote_nav($a,&$nav) { @@ -240,7 +242,7 @@ function frio_remote_nav($a,&$nav) { } if(!local_user() && !empty($server_url)) { - $nav['logout'] = Array($server_url . '/logout',t('Logout'), "", t('End this session')); + $nav['logout'] = Array($server_url . '/logout', t('Logout'), "", t('End this session')); // user menu $nav['usermenu'][] = Array($server_url . '/profile/' . $a->user['nickname'], t('Status'), "", t('Your posts and conversations')); @@ -271,7 +273,7 @@ function frio_remote_nav($a,&$nav) { * @param App $a The app data @TODO Unused * @param array $results The array with the originals from acl_lookup() */ -function frio_acl_lookup($a, &$results) { +function frio_acl_lookup(App $a, &$results) { require_once("mod/contacts.php"); $nets = ((x($_GET,"nets")) ? notags(trim($_GET["nets"])) : "");