Skip to content
Snippets Groups Projects
  • Arthur Suzuki's avatar
    Merge branch... · 9b66e761
    Arthur Suzuki authored
    Merge branch 'hotline#122926_gpsea_p1_page_notice_ou_le_trouver__ajout_bouton_reserver' into 'hotline'
    
    hotline MT #122926 : Add hold link in items Ressources of Chili Theme
    
    See merge request !3773
    9b66e761
Settings.php 5.92 KiB
<?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 Chili_Library_Settings extends Intonation_Library_Settings {
  protected function _getDefaultSettings() {
    $settings = parent::_getDefaultSettings();
    $settings[$this->_template->withNameSpace('chili_css')] = 1;

    $custom_css_classes = $settings[$this->_template->withNameSpace('custom_css_class')];

    $custom_css_classes = array_merge($custom_css_classes,
                                      ['chili_widget',
                                       'chili_footer_widget',
                                       'chili_banner',
                                       'chili_logo',
                                       'chili_logo_footer',
                                       'chili_fixed_top',
                                       'chili_network_list_widget',
                                       'fond_gris',
                                       'fond_bleu',
                                       'fond_rouge',
                                       'fond_blanc',
                                       'mx_4rem',
                                       'ml-3',
                                       'mr-3',
                                       'mt-5',
                                       'order-lg-2',
                                       'order-lg-1',
                                       'order-1',
                                       'order-2',
                                       'my-3',
                                       'py-3',
                                       'px-3',
                                       'w-100']);

    $settings[$this->_template->withNameSpace('custom_css_class')] = $custom_css_classes;

    $hydrating_mapping = $settings[$this->_template->withNameSpace('hydrating_mapping')];

    $hydrating_mapping['div id site_web_wrapper'] = 'container align-self-center';

    $hydrating_mapping['li class result_count_results'] = 'order-1';
    $hydrating_mapping['li class result_search_order'] = 'order-2';
    $hydrating_mapping['li class result_list_mod'] = 'order-3';
    $hydrating_mapping['li class result_wall_mod'] = 'order-4';
    $hydrating_mapping['li class result_page_size'] = 'order-5';
    $hydrating_mapping['li class result_pager'] = 'order-6';
    $hydrating_mapping['li class result_select_records'] = 'order-7';
    $hydrating_mapping['li class result_follow_search'] = 'order-8';
    $hydrating_mapping['li class result_more_actions'] = 'order-9';
    $hydrating_mapping['div class wrapper_zendafi_form_custommultifacetsdoctype'] = 'col-2 order-1';
    $hydrating_mapping['div class zendafi_form_search_submit_button'] = 'col-2';
    $hydrating_mapping['div class wrapper_zendafi_form_expressionrecherche'] = 'order-2 col-md-5 col-lg-6';

    $hydrating_mapping['div class badge_group'] = 'order-2 row no-gutters';
    $hydrating_mapping['div class card_description'] = 'row no-gutters';
    $hydrating_mapping['div class card-text'] = 'row no-gutters';
    $hydrating_mapping['p class empty_list_message'] = 'px-4';

    $hydrating_mapping['div class card_body_Intonation_Library_View_Wrapper_ReviewInRecord'] = 'd-none';
    $hydrating_mapping['div class card_Intonation_Library_View_Wrapper_ReviewInRecord'] = 'd-none';

    $hydrating_mapping['a class record_doctype'] = 'order-3';
    $hydrating_mapping['a class record_edition_year'] = 'order-4';
    $hydrating_mapping['span class record_pro_reviews_count'] = 'order-2';
    $hydrating_mapping['span class record_pro_reviews_average_score'] = 'order-1';
    $hydrating_mapping['a class record_facets'] = 'order-5';
    $hydrating_mapping['span class record_facets'] = 'order-6';
    $hydrating_mapping['a class record_serie'] = 'badge-white no_truncate order-7';
    $hydrating_mapping['span class badge_record_editor'] = 'no_truncate order-5';
    $hydrating_mapping['a class badge_record_language'] = 'order-5';
    $hydrating_mapping['div class left_highlight_column'] = 'col-12 col-md-4 col-lg-5 rounded';
    $hydrating_mapping['div class left_carousel_columns'] = 'col-12 col-md-8 col-lg-7';
    $hydrating_mapping['div class top_highlight_column'] = 'col-12 rounded';
    $hydrating_mapping['div class top_carousel_columns'] = 'col-12';
    $hydrating_mapping['div class card_with_overlay'] = 'card';
    $hydrating_mapping['div class card_overlay'] = 'card-block card-img-overlay rounded text-white';
    $hydrating_mapping['div class big_buttons'] = 'chili_widget col-10 col-xl-9';
    $hydrating_mapping['div class big_buttons_sm'] = 'd-block d-lg-none';
    $hydrating_mapping['div class big_buttons_lg'] = 'd-none d-lg-block';
    $hydrating_mapping['div class user_informations_thumbnail'] = 'col-12 col-md-6 col-lg-3';
    $hydrating_mapping['div class user_informations_dl'] = 'col-12 col-md-6 col-lg-9';
    $hydrating_mapping['div class user_informations_fields'] = 'card-body pl-0 pt-2';
    $hydrating_mapping['dt class user_info'] = 'col-12';
    $hydrating_mapping['dd class user_info'] = 'col-12';
    $hydrating_mapping['div class items_hold_link'] = 'col-12 p-3 my-3 text-center';

    $settings[$this->_template->withNameSpace('hydrating_mapping')] = $hydrating_mapping;
    return $settings;
  }
}