Commit 2f310ad1 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

wip on theme store

parent f8483014
Pipeline #9371 canceled with stage
in 3 minutes and 37 seconds
......@@ -27,9 +27,10 @@ class Class_Template_Loader {
public function getTemplates() {
return [new Historic_Template,
new Intonation_Template,
new Muscle_Template,
new MyBibApp_Template,
new Polygone_Template,
new TerreDuMilieu_Template,
new Muscle_Template
];
}
......
......@@ -204,6 +204,19 @@ class Intonation_Library_View_Wrapper_Record extends Intonation_Library_View_Wra
->setTitle($facet->getTitle())
->setUrl($facet->getUrlForLink()));
if ( $this->_model->hasTome()) {
$serie = $this->_model->getClefChapeau() . '-' . $this->_model->getTypeDoc();
$label = Class_Codification::getLibelleForSerie($this->_model);
$badges [] = (new Intonation_Library_Badge)
->setTag('a')
->setUrl($this->_view->url((new Class_CriteresRecherche)->getNewUrlCriteresSerie($serie), null, true))
->setClass('white')
->setText($label)
->setTitle($this->_view->_('Lancer une recherche pour %s', lcfirst($label)));
}
return $this->_view->renderBadges($badges);
}
......
......@@ -81,10 +81,10 @@ class Intonation_View_TagAction extends ZendAfi_View_Helper_BaseHelper {
return '';
if ($action->getNoButtonText())
return $this->_tag('div', $text, ['class' => ' d-inline text-left']);
return $this->_tag('div', $text, ['class' => 'd-inline text-left']);
if (!$img)
return $this->_tag('div', $text, ['class' => ' d-inline button_text text-left']);
return $this->_tag('div', $text, ['class' => 'd-inline button_text text-left']);
return $this->_tag('div', $text, ['class' => 'd-none d-md-inline text-left button_text']);
}
......
......@@ -126,7 +126,6 @@ class Muscle_Library_ProfilePatcher extends Intonation_Library_ProfilePatcher {
'menus' => [
['type_menu' => 'URL',
'libelle' => $this->_('Comment accéder à mon compte'),
'use_profil' => $this->_help_menu,
'picto' => 'class fas fa-id-card',
'url' => ''],
......
@import url('https://fonts.googleapis.com/css?family=Titillium+Web:300,400,700,900|Ubuntu+Condensed|Ubuntu:300,400,500,700&display=swap');
:root {
}
body {
font-family: 'Ubuntu';
font-size: 16px;
background: white;
color: #010202;
font-weight: 300;
}
#site_web_wrapper {
background-image: url('../images/body.png');
background-repeat: repeat-y;
background-position: top right;
background-color: transparent;
}
.ui-widget *:not(i) {
font-family: 'Roboto';
font-size: 16px;
}
.widget.login .dropdown-toggle,
.nav nav .nav-link,
.widget-header,
h1,
h2,
h3 {
font-size: 2em;
font-weight: bold;
}
header {
background: url(../images/banner.png);
background-position: top right;
background-repeat: no-repeat;
background-size: contain;
background-color: #ededed;
}
.widget.justify-content-end * {
justify-content: flex-end;
text-align: right;
}
.widget.justify-content-start * {
justify-content: flex-start;
text-align: left;
}
.widget.justify-content-center * {
justify-content: center;
}
.login .dropdown {
display: flex;
}
.menu_buttons .button_text {
display: none !important;
}
.menu_buttons .nav-link,
.menu_buttons .nav-link:hover {
}
.login .dropdown-toggle,
.login .dropdown-menu {
}
.ui-state-active,
.btn:active,
a:active,
.btn:focus,
a:focus,
.btn:hover,
a:hover {
opacity: 0.8;
text-decoration: underline;
}
.btn-sm,
col-form-label-sm,
.form-control-sm {
font-size: 1em;
}
.rech_simple.widget form div {
padding: 0;
margin: 0;
}
.rech_simple.widget input,
.rech_simple.widget button {
line-height: 1em;
vertical-align: middle;
margin: 0;
padding: 5px;
height: 40px;
min-width: 50px;
font-size: 1.5em;
}
.rech_simple .dropdown-menu {
left: -33% !important;
}
.rech_simple.widget button[type='submit'] {
}
.rech_simple.widget ::placeholder {
}
.widget.card,
.widget-header,
.breadcrumb,
nav {
}
.nav nav .nav-link {
font-size: 1.8em;
border-right: 1px solid var(--polygone-black) !important;
line-height: 0.8em;
}
nav .nav-item:last-child .nav-link {
border-right: 0px !important;
}
.widget.nav {
margin-top: 4em;
}
.widget.nav .navbar-toggler {
margin-top: -4em;
}
#site_web_wrapper {
box-shadow: var(--polygone-grey) 0px 0px 5px;
}
body,
#site_web_wrapper {
}
footer {
font-size: 0.875em;
}
footer .nav-link {
border-right: 1px solid var(--polygone-red) !important;
line-height: 0.8em;
text-align: center;
}
.nav-item:last-child .nav-link {
border-right-width: 0 !important;
}
.ui-autocomplete,
.ui-autocomplete *,
.ui-autocomplete *:hover {
border: none !important;
}
.widget.login {
padding: 0;
}
.widget.login * {
}
.widget.login input {
}
.widget.login form * {
text-align: left;
}
.widget.login .text-secondary {
}
.widget.login .dropdown-toggle,
.widget.login .dropdown-toggle:after {
font-size: 20px;
margin-right: 0;
color: white;
background: #223a7e;
}
.widget.login .dropdown-toggle {
padding-right: 1em;
}
.widget.login .dropdown-menu {
position: absolute;
right: 0;
left: auto;
}
header .card-body {
padding: 0;
}
.widget.login a {
}
.widget.login #login {
position: absolute;
bottom: 4em;
left: 0.875em;
}
.widget.login a {
font-weight: bold;
}
.widget.login a[href*="/auth/lostpass"] {
display: block;
margin-top: 4em;
}
.widget.login form {
max-width: 200px;
}
.widget-footer a.btn-secondary {
}
.widget-footer {
text-align: right;
}
.badge-group .badge {
}
.badge-group a.badge {
}
a,
a:hover {
}
a.text-primary,
a.text-primary:hover {
}
.carousel-item .card-footer {
margin: 0 1rem;
}
.widget > .card-footer,
.card-footer {
}
.masonry-content > .card > .card-footer {
padding: 5px;
}
.list-group-item.active,
.nav-tabs,
.border-primary {
}
.nav-tabs .nav-item {
border-bottom: 1px solid transparent;
}
.card-footer {
border-top: none;
}
.no_badges .badge-group,
.no_badget .badge {
display: none;
}
.no_card_footer .card-footer {
display: none !important;
}
.polygone_widget {
background-image: url('../images/widget_bg.png');
background-repeat: no-repeat;
background-position: top left;
background-color: transparent;
}
.widget > .card-footer, .card-footer {
background: none;
}
footer {
background-image: url('../images/footer_corner.png');
background-repeat: no-repeat;
background-position: bottom right;
background-color: #31ade4;
}
.card-header {
background: transparent;
}
.polygone_big_menu_buttons .nav-item {
width: 33.33%;
}
.polygone_big_menu_buttons .nav-link {
position: relative;
padding: 0 !important;
}
.polygone_big_menu_buttons .nav-item + .nav-item .nav-link {
margin-left: 10px;
}
.polygone_big_menu_buttons .nav-link div {
display: block !important;
background: var(--widget-shadow);
padding: 1em 0em;
text-align: center !important;
color: white;
font-weight: bold;
text-transform: uppercase;
position: absolute;
width: 100%;
bottom: 0;
left: 0;
}
.polygone_big_menu_buttons .navbar {
padding: 0;
}
.polygone_big_menu_buttons .nav-link img {
width: 100%;
height: auto;
}
a,
a:hover,
a:focus,
a:visited {
color: #223a7e;
}
[class*="-primary"],
[class*="-primary"]:hover,
[class*="-primary"]:focus,
[class*="-primary"]:visited,
[class*="-secondary"],
[class*="-secondary"]:hover,
[class*="-secondary"]:focus,
[class*="-secondary"]:visited,
[class*="-info"],
[class*="-info"]:hover,
[class*="-info"]:focus,
[class*="-info"]:visited{
color: #223a7e !important;
background-color: transparent !important;
}
.scroll_search {
position: fixed;
top: 0;
right: 0;
left: 0;
margin: auto;
background: #1884c7;
color: #fff;
display: none;
z-index: 3;
text-align: center;
opacity: 0.9;
}
.scroll_search .dropdown-menu {
background: #1884c7;
}
.scroll_search * {
background-color: transparent;
}
.scroll_search .expressionRecherche {
background: white;
}
.scroll_search form {
width: 40%;
display: inline-block;
}
.navbar {
padding: 0;
}
.flying_widget .navbar-collapse.collapsing,
.flying_widget .navbar-collapse.collapse,
.flying_widget a {
background-color: #1884c7;
text-transform: uppercase;
}
.flying_widget .navbar-collapse.collapsing,
.flying_widget .navbar-collapse.collapse {
padding: 2em 0.5em;
height: 30000px;
overflow:visible;
}
.flying_widget .navbar-collapse {
height: 30000px;
background-color: #1884c7;
}
.flying_widget .navbar.navbar-collapse {
display: block;
padding: 0;
}
.flying_widget .navbar-brand {
display: inline-block;
}
.flying_widget .navbar-header {
padding: 1em;
padding-top: 150px;
}
.flying_widget * {
transition-delay: unset;
transition-duration: unset;
}
.flying_widget {
display: block;
min-width: 8.33%;
}
.z-index-11 {
z-index: 11;
}
\ No newline at end of file
/**
* Copyright (c) 2018, Agence Française Informatique (AFI). All rights reserved.
*
* BOKEH is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* BOKEH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
(function ( $ ) {
$.fn.scroll_search = function () {
var search_widget = $(this);
var visible = function(element) {
var rect = element.getBoundingClientRect(),
top = rect.top,
height = rect.height;
return top + height > 0;
};
var update = function() {
return visible($('.rech_simple.main_title')[0])
? search_widget.hide()
: search_widget.show();
}
$(window).on('scroll', update);
update();
}
} (jQuery));
<?php
/**
* Copyright (c) 2012-2019, Agence Française Informatique (AFI). All rights reserved.
*
* BOKEH is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* BOKEH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class Polygone_Library_FormCustomizer extends Intonation_Library_FormCustomizer {
public function getTemplateForm($form) {
return (new Polygone_Library_FormCustomizer_Template($this->_template, $form))->getForm();
}
}
<?php
/**
* Copyright (c) 2012-2019, Agence Française Informatique (AFI). All rights reserved.
*