Sfoglia il codice sorgente

cookie e carousel sistemato

master 20.09
Mattia MWG 4 anni fa
parent
commit
2cb6f9fd26
  1. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-java.jar
  2. 1
      liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/.gitignore
  3. 2
      liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/src/content/Language.properties
  4. 2
      liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/src/content/Language_en.properties
  5. 10
      liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/css/main.css
  6. 37
      liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/view.jsp
  7. 1
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/WEB-INF/.gitignore
  8. 54
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/css/component/carousel.scss
  9. 6
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/css/component/cookie.scss
  10. 4
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/css/component/variable.scss
  11. BIN
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/images/logo-rs-testo.png
  12. 54
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/css/component/carousel.scss
  13. 6
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/css/component/cookie.scss
  14. 4
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/css/component/variable.scss
  15. BIN
      liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/images/logo-rs-testo.png

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-java.jar

File binario non mostrato.

1
liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/.gitignore vendored

@ -0,0 +1 @@
/classes/

2
liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/src/content/Language.properties

@ -1 +1 @@
cookie.accepted.message.accept=Accept cookie.accepted.message.accept=Accetto

2
liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/src/content/Language_en.properties

@ -1 +1 @@
cookie.accepted.message.accept=Accept cookie.accepted.message.accept=Accetto

10
liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/css/main.css

@ -11,6 +11,7 @@
position: fixed; position: fixed;
width: calc(100% - 40px); width: calc(100% - 40px);
z-index: 9999; z-index: 9999;
font-family: "Montserrat", sans-serif;
} }
#cookies.cookiesHide { #cookies.cookiesHide {
@ -19,14 +20,16 @@
#cookies.cookiesShow { #cookies.cookiesShow {
display: block; display: block;
text-align:center;
} }
#cookies .notifications-content { #cookies .notifications-content {
padding-top:12px;
} }
#cookies .notifications-button { #cookies .notifications-button {
float: right; float: right;
padding: 5px 10px 10px 15px; padding: 5px 10px 5px 15px;
} }
#cookies .notifications-content p span.title { #cookies .notifications-content p span.title {
@ -74,4 +77,9 @@ input[type="button"].btn-primary:hover {
#cookies a { #cookies a {
text-decoration: none; text-decoration: none;
color: #fff;
}
#cookies a:hover {
text-decoration: underline;
} }

37
liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/view.jsp

@ -3,12 +3,12 @@
<%@page import="com.liferay.portal.kernel.util.StringPool"%> <%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.model.Group"%> <%@page import="com.liferay.portal.model.Group"%>
<%@ page import="com.liferay.portal.service.PortletLocalServiceUtil"%> <%@ page import="com.liferay.portal.service.PortletLocalServiceUtil" %>
<%@ page import="com.liferay.portal.model.Portlet"%> <%@ page import="com.liferay.portal.model.Portlet" %>
<%@ page import="com.liferay.portal.kernel.util.GetterUtil"%> <%@ page import="com.liferay.portal.kernel.util.GetterUtil" %>
<%@ page import="com.liferay.portal.kernel.util.PropsUtil"%> <%@ page import="com.liferay.portal.kernel.util.PropsUtil" %>
<%@ include file="/init.jsp"%> <%@ include file="/init.jsp" %>
<% <%
if(PortalUtil.getControlPanelPlid(company.getCompanyId()) != themeDisplay.getPlid()){ if(PortalUtil.getControlPanelPlid(company.getCompanyId()) != themeDisplay.getPlid()){
@ -24,7 +24,8 @@
if (Validator.isNotNull(articleId)) { if (Validator.isNotNull(articleId)) {
%> %>
<aui:script use="aui-base aui-io-request"> <aui:script use="aui-base aui-io-request">
if (leggiCookie("accepted_cookie") != "true") { if (leggiCookie("accepted_cookie") != "true") {
AUI().one('#cookies').removeClass('cookiesHide'); AUI().one('#cookies').removeClass('cookiesHide');
AUI().one('#cookies').addClass('cookiesShow'); AUI().one('#cookies').addClass('cookiesShow');
@ -33,25 +34,25 @@
AUI().one('#cookies').removeClass('cookiesShow'); AUI().one('#cookies').removeClass('cookiesShow');
} }
Liferay.provide(window, 'cookiesAccepted', function() { Liferay.provide(
window,
'cookiesAccepted',
function() {
AUI().one('#cookies').hide(); AUI().one('#cookies').hide();
scriviCookie("accepted_cookie", "true", 10519200); scriviCookie("accepted_cookie", "true", 10519200);
}); }
</aui:script> );
</aui:script>
<div id="cookies" class="cookies cookiesHide"> <div id="cookies" class="cookies cookiesHide">
<div class="notifications-button"> <div class="notifications-button">
<aui:button id="cookiesClose" name="cookiesClose" type="button" cssClass="btn btn-primary" <aui:button id="cookiesClose" name="cookiesClose" type="button" cssClass="btn btn-primary"
inputCssClass="btn btn-primary" value="cookie.accepted.message.accept" onclick="cookiesAccepted()" /> inputCssClass="btn btn-primary" value="cookie.accepted.message.accept" onclick="cookiesAccepted()"/>
</div>
<div class="notifications-content">
Il sito utilizza cookies. Navigando ne accetti l'uso. <a href="#">Informazioni</a>
</div>
</div> </div>
<div class="notifications-content">Per migliorare l'esperienza di navigazione delle pagine e di
fruizione dei servizi online, questo sito utilizza cookie tecnici e analitici. Per informazioni sui cookie
dei siti di Regione Siciliana e su come eventualmente disabilitarli, leggi la "privacy policy". Chiudendo
questo banner, scorrendo questa pagina o cliccando qualunque altro link nella pagina acconsenti all'uso dei
cookie.</div>
</div>
<% <%
} }
} }

1
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/WEB-INF/.gitignore vendored

@ -0,0 +1 @@
/classes/

54
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/css/component/carousel.scss

@ -38,6 +38,53 @@
top: 0; top: 0;
right: 0; right: 0;
padding-right: 0px; padding-right: 0px;
width: 100%;
.list-group-item {
position: relative;
.info-item {
position: relative;
top: 50%;
h4 {
font-weight:bold;
font-size:16px;
}
p {
font-size:13px;
}
}
.btn-carousel {
position: absolute;
right: 0;
top: 50%;
@include transform(translate3D(0, -50%, 0));
}
}
}
#myCarousel .list-group-item {
border-radius: 0px;
cursor: pointer;
}
#myCarousel .list-group-item.active {
background-color: transparent !important;
border-color: #ddd !important;
color: $header-menu !important;
}
/*
#myCarousel .list-group {
opacity: 0;
position: absolute;
top: 0;
right: 0;
width: 100%;
padding-right: 0px;
transition: opacity $speed; transition: opacity $speed;
@ -115,7 +162,7 @@
#myCarousel .list-group .active { #myCarousel .list-group .active {
background-color: rgba( 52, 52, 52, 0.7 ); background-color: rgba( 52, 52, 52, 0.7 );
} }*/
.carousel-inner { .carousel-inner {
@ -162,10 +209,11 @@
} }
@media (max-width: 991px) { @media (max-width: 991px) {
.carousel-caption p, .carousel-caption p {
#myCarousel .list-group {
display: none; display: none;
} }
/* ,#myCarousel .list-group*/
} }
.carousel-controls { .carousel-controls {

6
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/css/component/cookie.scss

@ -8,7 +8,9 @@
} }
button { button {
background-color: $red-logo; background-color: $green-logo;
border-color: $red-logo; border-color: $green-logo;
border-radius: 0;
} }
} }

4
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/css/component/variable.scss

@ -11,6 +11,7 @@ $footer-link: #aaa;
$header-menu: #333; $header-menu: #333;
$text-news: #555; $text-news: #555;
$red-logo: #E2001A; $red-logo: #E2001A;
$green-logo: #2ABE31;
$date-news: #b4b4b4; $date-news: #b4b4b4;
$red-selected: #e2001a; $red-selected: #e2001a;
$table-header: #e2001a; $table-header: #e2001a;
@ -33,7 +34,7 @@ $second-font: 'Montserrat', sans-serif;
$base_font_size:14px; $base_font_size:14px;
/* SIZE */ /* SIZE */
$height-header: 60px; $height-header: auto;
$f: 100%; $f: 100%;
$desktop: 1200px; $desktop: 1200px;
$tablet: 992px; $tablet: 992px;
@ -42,4 +43,3 @@ $mobile: 768px;
/* VARIUS */ /* VARIUS */
$speed: .5s; $speed: .5s;

BIN
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/_diffs/images/logo-rs-testo.png

File binario non mostrato.

Dopo

Larghezza:  |  Altezza:  |  Dimensione: 8.9 KiB

54
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/css/component/carousel.scss

@ -38,6 +38,53 @@
top: 0; top: 0;
right: 0; right: 0;
padding-right: 0px; padding-right: 0px;
width: 100%;
.list-group-item {
position: relative;
.info-item {
position: relative;
top: 50%;
h4 {
font-weight:bold;
font-size:16px;
}
p {
font-size:13px;
}
}
.btn-carousel {
position: absolute;
right: 0;
top: 50%;
@include transform(translate3D(0, -50%, 0));
}
}
}
#myCarousel .list-group-item {
border-radius: 0px;
cursor: pointer;
}
#myCarousel .list-group-item.active {
background-color: transparent !important;
border-color: #ddd !important;
color: $header-menu !important;
}
/*
#myCarousel .list-group {
opacity: 0;
position: absolute;
top: 0;
right: 0;
width: 100%;
padding-right: 0px;
transition: opacity $speed; transition: opacity $speed;
@ -115,7 +162,7 @@
#myCarousel .list-group .active { #myCarousel .list-group .active {
background-color: rgba( 52, 52, 52, 0.7 ); background-color: rgba( 52, 52, 52, 0.7 );
} }*/
.carousel-inner { .carousel-inner {
@ -162,10 +209,11 @@
} }
@media (max-width: 991px) { @media (max-width: 991px) {
.carousel-caption p, .carousel-caption p {
#myCarousel .list-group {
display: none; display: none;
} }
/* ,#myCarousel .list-group*/
} }
.carousel-controls { .carousel-controls {

6
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/css/component/cookie.scss

@ -8,7 +8,9 @@
} }
button { button {
background-color: $red-logo; background-color: $green-logo;
border-color: $red-logo; border-color: $green-logo;
border-radius: 0;
} }
} }

4
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/css/component/variable.scss

@ -11,6 +11,7 @@ $footer-link: #aaa;
$header-menu: #333; $header-menu: #333;
$text-news: #555; $text-news: #555;
$red-logo: #E2001A; $red-logo: #E2001A;
$green-logo: #2ABE31;
$date-news: #b4b4b4; $date-news: #b4b4b4;
$red-selected: #e2001a; $red-selected: #e2001a;
$table-header: #e2001a; $table-header: #e2001a;
@ -33,7 +34,7 @@ $second-font: 'Montserrat', sans-serif;
$base_font_size:14px; $base_font_size:14px;
/* SIZE */ /* SIZE */
$height-header: 60px; $height-header: auto;
$f: 100%; $f: 100%;
$desktop: 1200px; $desktop: 1200px;
$tablet: 992px; $tablet: 992px;
@ -42,4 +43,3 @@ $mobile: 768px;
/* VARIUS */ /* VARIUS */
$speed: .5s; $speed: .5s;

BIN
liferay-plugins-sdk-6.2/themes/portos-public-theme/docroot/images/logo-rs-testo.png

File binario non mostrato.

Dopo

Larghezza:  |  Altezza:  |  Dimensione: 8.9 KiB

Caricamento…
Annulla
Salva