Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(feat): Favicon
· 465fef85
Emiliano Balbuena
authored
Sep 09, 2019
465fef85
(cs): prettier
· 8cf979f8
Emiliano Balbuena
authored
Sep 09, 2019
8cf979f8
Hide whitespace changes
Inline
Side-by-side
src/app/modules/pro/channel/channel.service.ts
View file @
8cf979f8
...
...
@@ -41,7 +41,6 @@ export class ProChannelService implements OnDestroy {
protected
isLoggedIn$
:
Subscription
;
constructor
(
protected
client
:
Client
,
protected
entitiesService
:
EntitiesService
,
...
...
src/index.php
View file @
8cf979f8
<?php
$meta
=
Minds\Core\SEO\Manager
::
get
();
$pro
=
Minds\Core\Di\Di
::
_
()
->
get
(
'Pro\Domain'
)
->
lookup
(
$_SERVER
[
'HTTP_HOST'
]
??
null
);
?>
<?php
...
...
@@ -12,11 +13,17 @@
<base
href=
"/"
/>
<meta
charset=
"utf-8"
>
<link
rel=
"icon"
type=
"image/svg"
href=
"
<?php
echo
Minds\Core\Config
::
_
()
->
get
(
'cdn_assets_url'
)
?>
assets/logos/bulb.svg"
/>
<link
rel=
"apple-touch-icon"
sizes=
"180x180"
href=
"
<?php
echo
Minds\Core\Config
::
_
()
->
get
(
'cdn_assets_url'
)
?>
assets/logos/bulb-apple-touch-icon.png"
>
<link
rel=
"icon"
type=
"image/png"
sizes=
"32x32"
href=
"
<?php
echo
Minds\Core\Config
::
_
()
->
get
(
'cdn_assets_url'
)
?>
assets/logos/bulb-32x32.png"
>
<link
rel=
"icon"
type=
"image/png"
sizes=
"16x16"
href=
"
<?php
echo
Minds\Core\Config
::
_
()
->
get
(
'cdn_assets_url'
)
?>
assets/logos/bulb-16x16.png"
>
<?php
if
(
$pro
)
:
?>
<link
rel=
"icon"
type=
"image/jpeg"
href=
"
<?php
echo
Minds\Core\Di\Di
::
_
()
->
get
(
'Pro\Domain'
)
->
getIcon
(
$pro
)
?>
"
/>
<?php
else
:
?>
<link
rel=
"icon"
type=
"image/svg"
href=
"
<?php
echo
Minds\Core\Config
::
_
()
->
get
(
'cdn_assets_url'
)
?>
assets/logos/bulb.svg"
/>
<link
rel=
"apple-touch-icon"
sizes=
"180x180"
href=
"
<?php
echo
Minds\Core\Config
::
_
()
->
get
(
'cdn_assets_url'
)
?>
assets/logos/bulb-apple-touch-icon.png"
>
<link
rel=
"icon"
type=
"image/png"
sizes=
"32x32"
href=
"
<?php
echo
Minds\Core\Config
::
_
()
->
get
(
'cdn_assets_url'
)
?>
assets/logos/bulb-32x32.png"
>
<link
rel=
"icon"
type=
"image/png"
sizes=
"16x16"
href=
"
<?php
echo
Minds\Core\Config
::
_
()
->
get
(
'cdn_assets_url'
)
?>
assets/logos/bulb-16x16.png"
>
<?php
endif
;
?>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no"
>
<?php
foreach
(
$meta
as
$name
=>
$content
){
$name
=
strip_tags
(
$name
);
...
...
@@ -130,7 +137,7 @@
"sale"
=>
Minds\Core\Config
::
_
()
->
get
(
'blockchain'
)[
'sale'
],
"last_tos_update"
=>
Minds\Core\Config
::
_
()
->
get
(
'last_tos_update'
)
?:
time
(),
"tags"
=>
Minds\Core\Config
::
_
()
->
get
(
'tags'
)
?:
[],
"pro"
=>
Minds\Core\Di\Di
::
_
()
->
get
(
'Pro\Domain'
)
->
lookup
(
$_SERVER
[
'HTTP_HOST'
]
??
null
)
,
"pro"
=>
$pro
,
"environment"
=>
getenv
(
'MINDS_ENV'
)
?:
'development'
,
];
...
...