Commit 09c8a3f0 authored by agnez's avatar agnez

styles etc

parent bb2739c4
......@@ -42,14 +42,7 @@
<!-- Results wrapper -->
<div class="gmw-posts-wrapper">
<h2>
<?php
if($_REQUEST['gmw_post']){
if(isset($_GET['lang']) == 'nl') { ?> Zoekresultaten <?php
} else if(isset($_GET['lang']) == 'en'){ ?> Search results <?php
} else { ?> Résultat de recherche <?php }
} ?>
</h2>
<h2><?php esc_html_e( 'Résultat de recherche', 'beans_gasap' ); ?></h2>
<div data-uk-grid>
<!-- this is where wp_query loop begins -->
<?php while ( $gmw_query->have_posts() ) : $gmw_query->the_post(); ?>
......@@ -93,12 +86,11 @@
<div id="wppl-taxes-wrapper" class="wppl-taxes-wrapper">
<?php gmw_pt_taxonomies( $gmw, $post ); ?>
</div>
<div class="result-button"><button class="uk-button uk-button-success post" data-uk-modal="{target:'#post_<?php echo $post->ID; ?>'}">
<?php
if(isset($_GET['lang']) == 'nl') { ?> Ontdek <?php
} else if(isset($_GET['lang']) == 'en'){ ?> Discover <?php
} else { ?> Découvrir <?php } ?>
</button></div>
<div class="result-button">
<button class="uk-button uk-button-success post" data-uk-modal="{target:'#post_<?php echo $post->ID; ?>'}">
<?php esc_html_e( 'Découvrir', 'beans_gasap' ); ?>
</button>
</div>
<div><?php edit_post_link( esc_html__( 'Edit gasap', 'beans_gasap' ), '<span class="edit-link">', '</span>' ); ?></div>
<?php do_action( 'gmw_search_results_loop_item_end' , $gmw, $post ); ?>
......
......@@ -5,7 +5,7 @@ msgstr ""
"Project-Id-Version: GASAP post types 1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gasap-posttypes\n"
"POT-Creation-Date: 2017-02-10 15:56:18+00:00\n"
"PO-Revision-Date: 2017-02-10 17:03+0100\n"
"PO-Revision-Date: 2017-04-15 16:25+0100\n"
"Last-Translator: Lore <lore@mipsum.be>\n"
"Language-Team: \n"
"Language: fr_FR\n"
......@@ -289,12 +289,12 @@ msgstr "Type"
#: gasap-posttypes.php:223
msgctxt "taxonomy general name"
msgid "GASAP Statuses"
msgstr "Statuts de GASAP"
msgstr "GASAP statut"
#: gasap-posttypes.php:224
msgctxt "taxonomy singular name"
msgid "GASAP Status"
msgstr "Statut de GASAP"
msgstr "Ce GASAP est "
#: gasap-posttypes.php:225
msgid "Search GASAP Status"
......@@ -332,7 +332,7 @@ msgstr "Types de GASAP"
#: gasap-posttypes.php:254
msgctxt "taxonomy singular name"
msgid "GASAP Type"
msgstr "Type de GASAP"
msgstr "Type de GASAP "
#: gasap-posttypes.php:255
msgid "Search GASAP Types"
......@@ -362,7 +362,7 @@ msgstr "Jours de livraison"
#: gasap-posttypes.php:292
msgctxt "taxonomy singular name"
msgid "GASAP day"
msgstr "Jour de livraison"
msgstr "Jour de livraison "
#: gasap-posttypes.php:293
msgid "Search GASAP days"
......
......@@ -18,12 +18,19 @@
.uk-button-success:hover{
background-color: @success-hover;
}
.uk-form input, .uk-form select, .uk-form textarea{
&.uk-button{
border-radius: 12px;
color: white;
}
}
/* headers */
h1, h2, h3, h4, h5, h6{
color: @global-muted-color;
margin: 15px 0;
&.serrer{
width: 50%;
width: 60%;
margin-left: auto !important;
margin-right: auto !important;
}
......@@ -56,7 +63,7 @@ h3{
line-height: 1;
}
h3.plus{
font-size: 40px;
font-size: 25px;
}
h4{
font-weight: bold;
......@@ -381,6 +388,7 @@ main .uk-container{
}
}
}
/* map */
#snippet_la_carte{
border: 1px solid @global-border;
.uk-panel-box {
......@@ -420,14 +428,66 @@ main .uk-container{
}
}
}
.gmw-posts-wrapper { /* partie liste GASAP ou producteurs - résultat recherche*/
.gmw-form-wrapper { /* ----------- formulaire */
background-color: none;
box-sizing:border-box;
display: table;
margin: 10px 0;
padding:10px;
width: 100%;
h2.uk-accordion-title{
margin-bottom: 0;
background-color: white;
text-align: left;
font-size: 25px;
.uk-icon-caret-down{
display: none;
}
&.uk-active {
.uk-icon-caret-right{
display: none;
}
.uk-icon-caret-down{
display: inline-block;
}
}
}
.checkbox {
background-color: @bleu-ciel;
border: 1px solid @global-border;
box-sizing: border-box;
color:@global-color;
cursor: pointer;
display: inline-block;
font-size: .9em;
margin:0 25px 15px 0;
padding: 8px 0 8px 35px;
position: relative;
text-align: left;
width: 180px;
input{
position: absolute;
right: 0;
}
}
.gmw-address-field-wrapper-1{
width: 100%
input{
width: 100%
}
}
}
.gmw-posts-wrapper { /* ----------- partie liste GASAP ou producteurs - résultat recherche*/
box-sizing: border-box;
height: 514px;
overflow: auto;
width: 100%;
.result-button{
text-align: center;
}
}
.uk-modal-dialog { /*popup*/
.uk-modal-dialog { /* ----------- popup*/
border: 3px solid @global-color;
a.uk-close {
color: @global-color;
......@@ -435,7 +495,6 @@ main .uk-container{
font-size: 30px;
margin:0;
text-decoration:none;
}
}
.hidden,
......@@ -444,60 +503,7 @@ main .uk-container{
.gmw-pt-pagination-wrapper.gmw-pt-top-pagination-wrapper,
.gmw-pt-pagination-wrapper.gmw-pt-bottom-pagination-wrapper {
display: none;
}
/*Smita map -----------------------------------------------------------------------------------------------------------------------------------*/
@width0: 83%; // Appears 4 times
.gmw-form-wrapper { /* ----------- formulaire */
background-color: none;
box-sizing:border-box;
display: table;
margin: 10px 0;
padding:10px;
width: 100%;
h2.uk-accordion-title{
margin-bottom: 0;
background-color: white;
text-align: left;
font-size: 25px;
.uk-icon-caret-down{
display: none;
}
&.uk-active {
.uk-icon-caret-right{
display: none;
}
.uk-icon-caret-down{
display: inline-block;
}
}
}
.checkbox {
background-color: @bleu-ciel;
border: 1px solid @global-border;
box-sizing: border-box;
color:@global-color;
cursor: pointer;
display: inline-block;
font-size: .9em;
margin:0 25px 15px 0;
padding: 8px 0 8px 35px;
position: relative;
text-align: left;
width: 180px;
input{
position: absolute;
right: 0;
}
}
}
/*end style Smita ---------------------------------------------------------------------------------------------*/
}
}
#snippet_contact_calendrier{
background-color: @bleu-ciel;
......
<?php beans_add_attribute( 'item_link', 'class', 'uk-width-1-1 uk-width-medium-1-2' ); ?>
<?php //sending mail -- provisoire en attendant config mailchimp
if(isset($_POST['sub'])){
// the message
$adresse = $_POST['EMAIL'];
$msg = "Adresse à abonner à la newsletter : " . $adresse;
// use wordwrap() if lines are longer than 70 characters
$msg = wordwrap($msg,70);
// send email
mail("agnez@gasap.be","Demande inscription",$msg);
// confirmation ou non
if(mail("agnez@gasap.be","Demande inscription",$msg)){
echo '<div class="uk-badge uk-badge-danger">Votre abonnement &agrave; bien &eacute;t&eacute; envoy&eacute;</div>';
}
else{
echo '<div class="uk-badge uk-badge-danger">Un erreur s&acute;est produit, votre abonnement n&acute;est pas enregistr&eacute;</div>';
}
}?>
<footer id="gasap-footer" class="uk-block" role="contentinfo" itemscope="itemscope" itemtype="http://schema.org/WPFooter">
<div class="uk-grid">
<div class="uk-width-1 uk-width-medium-1-3">
......@@ -11,13 +28,12 @@
<h4><?php esc_html_e( 'Nous suivre', 'beans_gasap' ) ?></h4>
<div><?php esc_html_e( 'Inscrivez-vous à notre newsletter pour recevoir nos prochaines actualités.', 'beans_gasap' ) ?></div>
<div id="nl_form">
<form class="uk-form">
<form class="uk-form" method="post" action="#">
<input type="email" name="EMAIL" placeholder="<?php esc_html_e( 'Votre adresse mail', 'beans_gasap' ) ?>" required />
<span class="uk-form-icon">
<i class="uk-icon-long-arrow-right"></i>
<input type="submit" value="" />
</span>
<span class="uk-form-icon">
<i class="uk-icon-long-arrow-right"></i>
<input type="submit" value="" name="sub" id="sub" />
</span>
</form>
</div>
</div>
......@@ -28,4 +44,4 @@
</div>
</footer>
<?php
wp_reset_postdata();
\ No newline at end of file
wp_reset_postdata();
......@@ -5,7 +5,7 @@
$etapes_intro = new WP_Query( array( 'post_type' => 'contentpiece','p' => 34) ); //FIX
while($etapes_intro->have_posts()) : $etapes_intro->the_post(); ?>
<div>
<h2 class="h1"><?php the_title(); ?></h2>
<h2 class="h1 serrer"><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php edit_post_link( esc_html__( 'Edit snippet', 'beans_gasap' ), '<span class="edit-link">', '</span>' ); ?>
</div>
......
<?php
add_action( 'beans_content_prepend_markup', 'gasap_newsslider' );
function gasap_newsslider() {
include (get_stylesheet_directory() . '/assets/template_parts/news_slider.php');
}
//function gasap_newsslider() {
// include (get_stylesheet_directory() . '/assets/template_parts/news_slider.php');
//}
add_action( 'beans_content_prepend_markup', 'gasap_latest_news' );
function gasap_latest_news() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment