update UGC logo

This commit is contained in:
2019-02-24 17:29:41 +01:00
parent 52cde4af12
commit 2b8a9118b8
6 changed files with 56 additions and 54 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -7,7 +7,7 @@ define('UGC_URL', 'https://www.ugc.fr');
function getPage($sPath, $asVars, $sType) function getPage($sPath, $asVars, $sType)
{ {
$bSavePage = Settings::DEBUG; $bSavePage = !Settings::DEBUG;
if($bSavePage) if($bSavePage)
{ {
$asFileIds = array_filter($asVars); $asFileIds = array_filter($asVars);
@@ -34,10 +34,11 @@ function getPage($sPath, $asVars, $sType)
} }
else $sContent = file_get_contents($sFileName); else $sContent = file_get_contents($sFileName);
//Remove scripting & image source (avoid http request) //Remove scripting, header & image source (avoid http request)
if($sType=='html') if($sType=='html')
{ {
$sContent = preg_replace('/<script(.*)<\/script>/sU', '', $sContent); $sContent = preg_replace('/<script(.*)<\/script>/sU', '', $sContent);
$sContent = preg_replace('/<head>(.*)<\/head>/sU', '', $sContent);
$sContent = preg_replace('/src=("|\')(.*)("|\')/sU', 'source="$2"', $sContent); $sContent = preg_replace('/src=("|\')(.*)("|\')/sU', 'source="$2"', $sContent);
} }

View File

@@ -390,7 +390,6 @@ function Ugc()
oFilm.safe(oFilm.name($Film.find('.title > a').text())); oFilm.safe(oFilm.name($Film.find('.title > a').text()));
//Poster //Poster
https://www.ugc.fr/dynamique/films/57/11757/fr/poster/small/107472_white.jpg
var sPosterUrl = $Film.find('.movie-img').attr('source').replace('palegrey.jpg', 'white.jpg'); var sPosterUrl = $Film.find('.movie-img').attr('source').replace('palegrey.jpg', 'white.jpg');
oFilm.poster(sPosterUrl); oFilm.poster(sPosterUrl);
oFilm.backgroundPoster(sPosterUrl.replace('/small/', '/large/')); oFilm.backgroundPoster(sPosterUrl.replace('/small/', '/large/'));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -8,6 +8,8 @@
/* Variables */ /* Variables */
$poster_size: 175px; $poster_size: 175px;
$ugc_color: #08288B;
$comp_color: #666;
/* Default Tags */ /* Default Tags */
@@ -26,11 +28,11 @@ a {
color:#222; color:#222;
} }
a:hover { a:hover {
color:#08288B; color: $ugc_color;
} }
h1 { h1 {
color:#08288B; color: $ugc_color;
margin:0 0 0.8em 0; margin:0 0 0.8em 0;
} }
@@ -42,7 +44,7 @@ h2 {
select { select {
border:none; border:none;
background:transparent; background:transparent;
color:#666; color: $comp_color;
} }
/* Common Classes */ /* Common Classes */
@@ -56,14 +58,14 @@ select {
} }
.button { .button {
background:#666; background: $comp_color;
color:white; color:white;
padding:0.1em 0.4em; padding:0.1em 0.4em;
border-radius:3px; border-radius:3px;
cursor: pointer; cursor: pointer;
} }
.button:hover, .button.clicked { .button:hover, .button.clicked {
background:#08288B; background: $ugc_color;
color:white; color:white;
} }
.button.square { .button.square {
@@ -71,11 +73,11 @@ select {
} }
.button.no_bg { .button.no_bg {
background:none; background:none;
color:#666; color: $comp_color;
} }
.button.no_bg:hover, .button.no_bg.clicked { .button.no_bg:hover, .button.no_bg.clicked {
background:inherit; background:inherit;
color:#08288B; color: $ugc_color;
} }
/* Font Awesome Classes */ /* Font Awesome Classes */
@@ -90,7 +92,7 @@ select {
content: "\f007"; content: "\f007";
} }
.fa-spinner { .fa-spinner {
color:#08288B; color: $ugc_color;
font-size:2em; font-size:2em;
} }
.fa-spinner:before { .fa-spinner:before {
@@ -161,7 +163,7 @@ header #nav #btn_settings {
} }
header .title { header .title {
color:#08288B; color: $ugc_color;
display:inline-block; display:inline-block;
padding-left:113px; padding-left:113px;
background:url(../images/logo_ugc.png) 0 50% no-repeat; background:url(../images/logo_ugc.png) 0 50% no-repeat;
@@ -176,14 +178,14 @@ header .title time {
/* Section - Nav */ /* Section - Nav */
nav a { nav a {
color: #08288B; color: $ugc_color;
&.hidden { &:hover, &.hidden {
color:#666; color: $comp_color;
} }
&.hidden:hover { &.hidden:hover {
color: #08288B; color: $ugc_color;
} }
} }
@@ -319,7 +321,7 @@ main {
footer { footer {
font-size: 0.8em; font-size: 0.8em;
margin: 1em 0 0 0; margin: 1em 0 0 0;
color:#08288B; color: $ugc_color;
} }
/* Section - Settings */ /* Section - Settings */
@@ -349,45 +351,45 @@ footer {
-moz-box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.5); -moz-box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.5);
box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.5); box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.5);
z-index: 4; z-index: 4;
}
#settings h1 { h1 {
position:relative; position:relative;
}
#settings h1 .button { .button {
position:absolute; position:absolute;
right:0; right:0;
} }
}
#settings #buffer_settings { #buffer_settings {
text-align:center; text-align:center;
margin:2em auto; margin:2em auto;
} }
#settings ul.cinemas { ul.cinemas {
-webkit-column-count: 2; -webkit-column-count: 2;
-moz-column-count: 2; -moz-column-count: 2;
column-count: 2; column-count: 2;
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
}
#settings ul.cinemas li { li {
cursor: pointer; cursor: pointer;
}
#settings ul.cinemas li.include { &:hover, &.include {
font-weight: bold; font-weight: bold;
} }
}
#settings .switches { }
.switches {
margin-top: 1em; margin-top: 1em;
} }
#settings .switches .fa-on + span { .switches .fa-on + span {
font-weight: bold; font-weight: bold;
} }
}
/* Mobile Support */ /* Mobile Support */