Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gasap
wp
Commits
83236555
Commit
83236555
authored
Mar 24, 2017
by
agnez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
three producers internal link
parent
a611dfba
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
497 additions
and
110 deletions
+497
-110
plugins/gasap-posttypes/gasap-posttypes.php
plugins/gasap-posttypes/gasap-posttypes.php
+2
-5
themes/tm-beans-child4gasap/assets/less/gasap.less
themes/tm-beans-child4gasap/assets/less/gasap.less
+384
-1
themes/tm-beans-child4gasap/assets/less/style.less
themes/tm-beans-child4gasap/assets/less/style.less
+5
-1
themes/tm-beans-child4gasap/assets/template_parts/gasap_map.php
.../tm-beans-child4gasap/assets/template_parts/gasap_map.php
+69
-89
themes/tm-beans-child4gasap/assets/template_parts/three_producers.php
...ans-child4gasap/assets/template_parts/three_producers.php
+8
-7
themes/tm-beans-child4gasap/functions.php
themes/tm-beans-child4gasap/functions.php
+13
-7
themes/tm-beans-child4gasap/header.php
themes/tm-beans-child4gasap/header.php
+16
-0
No files found.
plugins/gasap-posttypes/gasap-posttypes.php
View file @
83236555
...
...
@@ -474,7 +474,7 @@ function gasap_prods( $post ) {
}
function
render_producers_content
(
$post
)
{
wp_nonce_field
(
plugin_basename
(
__FILE__
),
'render_producers_content_nonce'
);
$selected_producers
=
get_post_meta
(
$post
->
ID
,
'_producer'
);
$selected_producers
=
get_post_meta
(
$post
->
ID
,
'_producer'
,
true
);
$producers
=
get_posts
(
array
(
'post_type'
=>
'producer'
,
...
...
@@ -515,10 +515,7 @@ function save_producer_field($post_id) {
// save
if
(
isset
(
$_POST
[
'producer'
]
)
)
{
$custom
=
$_POST
[
'producer'
];
//$custom = array(
// 'prodid' => '$_POST['producer']'
//);
$custom
=
$_POST
[
'producer'
];
$old_meta
=
get_post_meta
(
$post
->
ID
,
'_producer'
,
true
);
// Update post meta
if
(
!
empty
(
$old_meta
)){
...
...
themes/tm-beans-child4gasap/assets/less/gasap.less
View file @
83236555
...
...
@@ -250,7 +250,390 @@ main .uk-container{
border-radius: 4px;
color: #666;
padding: 15px;
}
}
h4{
margin-bottom: 0;
}
/*Smita map -----------------------------------------------------------------------------------------------------------------------------------*/
// Width variables (appears count calculates by raw css)
@width0: 83%; // Appears 4 times
.gmw-distance-select.gmw-distance-select-2 {
max-width:inherit;
width:110px;
}
.uk-tab {
border-bottom: 1px solid @global-border;
margin-top: 7px !important;
& > li {
&.uk-active > a {
border-top-left-radius: 20px;
border-top-right-radius: 20px;
}
> a {
&:hover {
padding-bottom: 4px !important;
}
&:focus {
padding-bottom: 4px !important;
}
}
&.uk-open &:not(.uk-active) > a {
padding-bottom: 4px !important;
}
}
}
input.gmw-address.gmw-full-address.gmw-address-2 {
max-width: inherit;
width: 100%;
}
.gmw-address-field-wrapper.gmw-address-field-wrapper-2 {
width: 100%;
}
div.gmw-form-wrapper {
div.gmw-locator-btn-within-wrapper {
right: 5px;
top: 8px;
}
.gmw-address-field-wrapper {
margin-bottom: 15px;
position: relative;
}
}
.dark-green-btn {
background:@global-muted-color;
border-radius:10px;
color:white;
}
.light-green-btn {
background:@global-warning-background;
border-radius:10px;
color:white;
}
.light-orange-btn {
background:#ff8f73;
border-radius:10px;
color:white;
}
.uk-button.post {
background:@global-warning-background !important;
border-radius:10px;
color:white !important;
}
.wppl-taxes-wrapper {
color: #2f2b2b;
}
.uk-modal-dialog {
border: 3px solid @global-color;
}
.uk-modal-dialog > .uk-close {
&:first-child {
color: @global-color !important;
float: right;
font-size: 30px !important;
margin:0px !important;
text-decoration:none;
}
}
.champ.contenu_adresse {
font-size: 16px;
line-height: 24px;
padding-right: 30px;
}
.crayon.gasap-ville-184.ville {
font-size: 16px;
margin-top:20px;
}
.champ.contenu_pays {
font-size:16px;
}
.crayon.gasap-code_postal-101.code_postal {
font-size: 16px;
margin-top: 20px;
}
.champ.contenu_ville {
font-size: 16px;
}
.crayon.gasap-pays-101.pays {
margin-top: 20px;
}
.gmw-submit.gmw-submit-2,
.gmw-submit.gmw-submit-1 {
background:@global-warning-background !important;
border-radius:10px;
border:none;
color:white;
cursor: pointer;
outline:none;
padding:7px 20px;
}
.gmw-submit-wrapper.gmw-submit-wrapper-2 {
margin-bottom: 20px;
text-align: center;
}
.checkbox-div {
display: inline-block;
width: @width0;
}
.gmw-form-wrapper.gmw-form-wrapper-1.gmw-pt-form-wrapper.gmw-pt-default-form-wrapper > a,
.gmw-form-wrapper.gmw-form-wrapper-2.gmw-pt-form-wrapper.gmw-pt-default-form-wrapper > a {
background: transparent url("images/right-arrow.png") no-repeat scroll 10px 10px;
box-sizing: border-box;
color: @global-muted-color;
float: left;
font-size: 24px;
margin-left: 13.333%;
padding: 10px 10px 10px 40px;
text-decoration: none;
width: @width0;
}
.gmw-form-wrapper.gmw-form-wrapper-1.gmw-pt-form-wrapper.gmw-pt-default-form-wrapper > a.open,
.gmw-form-wrapper.gmw-form-wrapper-2.gmw-pt-form-wrapper.gmw-pt-default-form-wrapper > a.open {
background: transparent url("assets/img/down-arrow.png") no-repeat scroll 10px 10px;
box-sizing: border-box;
color: @global-muted-color;
float: left;
font-size: 24px;
margin-left: 13.333%;
padding: 10px 10px 10px 40px;
text-decoration: none;
width: @width0;
}
.gmw-form-wrapper.gmw-form-wrapper-1.gmw-pt-form-wrapper.gmw-pt-default-form-wrapper > div,
.gmw-single-taxonomy-wrapper.gmw-dropdown-taxonomy-wrapper.gmw-dropdown-producertype-wrapper {
clear: left;
float: left;
margin-top: 20px;
width: 100%;
}
.gmw-distance-select.gmw-distance-select-1 {
width: 100%;
}
.gmw-radius-dropdown-wrapper {
width: 100%;
}
.gmw-submit-wrapper.gmw-submit-wrapper-1 {
margin-bottom: 20px;
text-align: center;
}
.gmw-address-field-wrapper.gmw-address-field-wrapper-1 {
width: 100%;
}
.gmw-address.gmw-full-address.gmw-address-1 {
width: 100%;
}
div.gmw-pt-default-form-wrapper {
border: 2px solid @global-border;
background-color: none;
box-sizing:border-box;
display: table;
margin: 10px 0;
padding:10px;
width: 100%;
span {
float: left;
margin-bottom: 10px;
padding-top:8px;
width: 110px;
}
label {
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;
&::before {
background-color: white;
border: 1px solid @global-border;
bottom: 10px;
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3) inset, 0 1px 0 0 rgba(255, 255, 255, 0.8);
content: "";
display: inline-block;
height: 16px;
left: 8px;
margin-right: 3px;
position: absolute;
width: 16px;
border-radius: 0;
}
}
input[type=radio] {
display: none;
&:checked+label::before {
color: #f3f3f3;
content: "\2022";
font-size: 30px;
line-height: 18px;
text-align: center;
}
}
input[type=checkbox] {
display: none;
&:checked+label {
before {
color: @global-muted-color;
content: "\2713";
font-size: 15px;
font-weight:bold;
line-height: 15px;
text-align: center;
text-shadow: 0px 0px 0px rgba(0, 0, 0, .2);
}
}
}
}
.gmw-results-count,
.gmw-pt-pagination-wrapper.gmw-pt-top-pagination-wrapper,
.gmw-pt-pagination-wrapper.gmw-pt-bottom-pagination-wrapper {
display: none;
}
.wppl-single-result {
box-sizing: border-box;
margin: 10px;
width: 47%;
.wppl-info {
display:none;
}
}
.gmw-posts-wrapper {
border: 2px solid @global-muted-color;
box-sizing: border-box;
height: 514px;
overflow: auto;
width: 100%;
}
.results-count {
span {
box-sizing: border-box;
color: @global-muted-color;
display: table;
font-size: 24px;
font-weight: bold;
line-height: 30px;
padding: 20px;
width: 100%;
}
}
span.input-group-btn {
background: transparent url("assets/img/search-icon.png") no-repeat scroll left top;
left: 115px;
position: absolute;
top: 10px;
width: 25px !important;
}
#custom-search-input {
color:@global-color;
margin-top: 10px;
padding: 0;
position:relative;
&:-ms-input-placeholder {
color: @global-color !important;
}
&:-moz-placeholder {
color: @global-color;
}
&:-webkit-input-placeholder {
color: @global-color;
}
&:disabled {
-ms-input-placeholder {
color: @global-color !important;
}
}
.search-query {
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
color:@global-color !important;
font-family:Arial, Helvetica, sans-serif;
margin-bottom: 0;
padding-left: 4px \9;
padding-left:150px;
padding-right: 3px;
padding-right: 4px \9;
width:110px;
}
button {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
background: none;
border-radius: 3px;
border: 0;
color:@attention;
cursor: pointer;
height: 28px;
left: -28px;
margin-bottom: 0;
margin-top: 0;
padding: 2px 5px;
position: relative;
top: -5px;
width: 38px;
}
}
#custom-search-input:disabled {
&:-moz-placeholder {
color: @global-color;
}
&:-webkit-input-placeholder {
color: @global-color;
}
}
.search-query {
&:focus+button {
z-index: 3;
}
}
.gmw-unit-distance-wrapper {
margin-bottom: 15px;
}
.hidden {
display: none;
}
.result-button {
text-align:center;
}
.uk-width-1-1.uk-width-medium-1-3.leftmap {
border: 1px solid #cccccc;
margin-top: 20px;
padding-left: 0;
}
.uk-switcher.uk-margin {
margin: 0 10px 0 0px;
}
.wppl-title-holder {
.wppl-h2:hover {
background:none !important;
}
}
@media (max-width: 991px){
.wppl-single-result {
width: 100% !important;
box-sizing:border-box;
}
}
@media (min-width: 768px) and (max-width: 1219px){
.uk-width-1-1.uk-width-medium-2-3 {
padding-right: 15px;
}
}
@media (max-width: 767px){
.uk-width-1-1.uk-width-medium-1-3.leftmap .gmw-map-wrapper {
height: 400px !important;
}
}
margin-bottom:15px;
/*end style Smita ---------------------------------------------------------------------------------------------*/
}
#snippet_contact_calendrier{
background-color: @bleu-ciel;
...
...
themes/tm-beans-child4gasap/assets/less/style.less
View file @
83236555
...
...
@@ -14,7 +14,9 @@
@base-body-font-family: 'Raleway', Verdana, Arial, sans-serif;
@base-heading-font-family: 'Raleway', Verdana, Arial, sans-serif;
@global-color: #95989a; // gris texte
// @global-color: #95989a; // gris texte
@global-color: #7f8080; // gris texte + foncé
@global-muted-color: #00686b; //petrol
@global-link-color: #ff8f73; //rose
@global-link-hover-color: #c69285;
...
...
@@ -28,6 +30,8 @@
@global-warning-background: #99ccbb; //petrol claire ou #99ccbb
@global-danger-background: #ff8f73; //rose
@attention: #d9230f; // orange Smita
//
// Icon
...
...
themes/tm-beans-child4gasap/assets/template_parts/gasap_map.php
View file @
83236555
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"
></script>
<script>
jQuery
(
document
).
ready
(
function
()
{
/* jQuery('input[type="checkbox"]').on('change', function() {
alert($(this).attr('name'));
if($(this).attr('name') != 'tax_gasaptype[]')
{
jQuery(this).siblings('input[type="checkbox"]').not(this).prop('checked', false);
}else if($(this).attr('name') != 'tax_producertype[]')
{
jQuery(this).siblings('input[type="checkbox"]').not(this).prop('checked', false);
}
});
*/
<?php
if
(
isset
(
$_REQUEST
[
'gmw_post'
]))
{
if
(
$_REQUEST
[
'gmw_post'
]
==
'gasap'
){
?>
jQuery
(
'
input[type="checkbox"]
'
).
on
(
'
change
'
,
function
()
{
if
(
$
(
this
).
attr
(
'
name
'
)
!=
'
tax_gasaptype[]
'
)
{
jQuery
(
this
).
siblings
(
'
input[type="checkbox"]
'
).
not
(
this
).
prop
(
'
checked
'
,
false
);
}
});
<?php
}
else
if
(
$_REQUEST
[
'gmw_post'
]
==
'producer'
){
?>
jQuery
(
'
input[type="checkbox"]
'
).
on
(
'
change
'
,
function
()
{
if
(
$
(
this
).
attr
(
'
name
'
)
!=
'
tax_producertype[]
'
)
{
jQuery
(
this
).
siblings
(
'
input[type="checkbox"]
'
).
not
(
this
).
prop
(
'
checked
'
,
false
);
}
});
<?php
}
?>
$
(
function
()
{
$
(
'
html, body
'
).
animate
({
scrollTop
:
$
(
"
#uk-grid
"
).
offset
().
top
},
2000
);
});
<?php
}
?>
$
(
"
#getmap1
"
).
click
(
function
()
{
window
.
location
.
href
=
"
?gmw_post=gasap
"
;
});
$
(
"
#getmap2
"
).
click
(
function
()
{
window
.
location
.
href
=
"
?gmw_post=producer
"
;
});
});
</script>
<section
id=
"snippet_la_carte"
>
<div
class=
"uk-grid"
>
<h2>
<?php
esc_html_e
(
'Trouvez'
,
'beans_gasap'
)
?>
</h2>
<div
class=
"uk-grid"
id=
"uk-grid"
>
<div
class=
"uk-width-1-1 uk-width-medium-2-3"
>
<!-- left side -->
<ul
class=
"uk-tab"
data-uk-tab=
"{connect:'#tab-content'}"
>
<li><a
href=
"#"
><h4>
<?php
esc_html_e
(
'Trouvez un GASAP près de chez vous !
'
,
'beans_gasap'
)
?>
</h4></a></li>
<li><a
href=
"#"
><h4>
<?php
esc_html_e
(
'Trouvez un producteur du réseau
'
,
'beans_gasap'
)
?>
</h4></a></li>
<li><a
href=
"#"
id=
"getmap1"
><h4>
<?php
esc_html_e
(
'un GASAP
'
,
'beans_gasap'
)
?>
</h4></a></li>
<li><a
href=
"#"
id=
"getmap2"
><h4>
<?php
esc_html_e
(
'un producteur
'
,
'beans_gasap'
)
?>
</h4></a></li>
</ul>
<div
id=
"tab-content"
class=
"uk-switcher uk-margin"
>
<div>
<div
class=
"largeur3"
>
<h6>
<?php
esc_html_e
(
'Mieux comprendre'
,
'beans_gasap'
)
?>
</h6>
<?php
$argsmieux_comprendre
=
array
(
'post_type'
=>
'contentpiece'
,
'orderby'
=>
'date'
,
'order'
=>
'ASC'
,
'tax_query'
=>
array
(
array
(
'taxonomy'
=>
'contentpiecetype'
,
'field'
=>
'term_id'
,
'terms'
=>
41
//FIX
)
)
);
$mieux_comprendre
=
new
WP_Query
(
$argsmieux_comprendre
);
?>
<div
class=
"uk-grid uk-grid-match"
>
<?php
while
(
$mieux_comprendre
->
have_posts
()
)
:
$mieux_comprendre
->
the_post
();
?>
<div
class=
"uk-width-1 uk-width-medium-1-2"
>
<h4>
<?php
the_title
();
?>
</h4>
<div>
<?php
the_content
();
?>
</div>
<?php
edit_post_link
(
esc_html__
(
'Edit snippet'
,
'beans_gasap'
),
'<span class="edit-link">'
,
'</span>'
);
?>
</div>
<?php
endwhile
;
wp_reset_postdata
();
?>
</div>
</div>
<?php
$gasap
=
new
WP_Query
(
array
(
'post_type'
=>
'gasap'
,
'order_by'
=>
'title'
));
?>
<div>
Search GASAP
<br
/>
Filters
</div>
<div
data-uk-grid
>
<?php
if
(
$gasap
->
have_posts
()){
while
(
$gasap
->
have_posts
()
)
:
$gasap
->
the_post
();
global
$post
;
?>
<div
class=
"uk-width-1-1 uk-width-medium-1-2"
>
<div
class=
"uk-panel uk-panel-box"
>
<h3
class=
"uk-panel-title"
>
<?php
echo
get_the_title
();
?>
</h3>
<?php
the_content
()
?>
<!-- Contact form popup -->
<button
class=
"uk-button"
data-uk-modal=
"{target:'#contac-gasap-form'}"
>
<?php
esc_html_e
(
'Contacter ce GASAP'
,
'beans_gasap'
)
?>
</button>
<div
id=
"contac-gasap-form"
class=
"uk-modal"
>
<div
class=
"uk-modal-dialog"
>
<a
class=
"uk-modal-close uk-close"
></a>
<?php
echo
do_shortcode
(
'[contact-form-7 id="147" title="Contact form 1"]'
);
?>
</div>
</div>
<div>
<?php
edit_post_link
(
esc_html__
(
'Edit gasap'
,
'beans_gasap'
),
'<span class="edit-link">'
,
'</span>'
);
?>
</div>
</div>
</div>
<?php
endwhile
;
wp_reset_postdata
();
}
?>
</div>
<?php
echo
do_shortcode
(
'[gmw form="1" name="form_id_1"]'
);
?>
</div>
<div>
<?php
$producer
=
new
WP_Query
(
array
(
'post_type'
=>
'producer'
,
'order_by'
=>
'rand'
));
?>
<div
data-uk-grid
>
<?php
while
(
$producer
->
have_posts
()
)
:
$producer
->
the_post
();
?>
<div
class=
"uk-width-1 uk-width-medium-1-2"
>
<h2>
<?php
echo
get_the_title
();
?>
</h2>
<?php
echo
get_the_term_list
(
get_the_ID
(),
'producertype'
,
'<div>'
,
', '
,
'</div>'
);
?>
<a
class=
"uk-button uk-button-success"
href=
"#prod
<?php
echo
get_the_ID
()
?>
"
data-uk-modal
>
<?php
esc_html_e
(
'Discover'
,
'beans_gasap'
);
?>
</a>
<!-- This is the modal -->
<div
id=
"prod
<?php
echo
get_the_ID
()
?>
"
class=
"uk-modal"
>
<div
class=
"uk-modal-dialog uk-modal-dialog-lightbox"
>
<h2>
<?php
the_title
();
?>
</h2>
<?php
the_content
();
edit_post_link
(
esc_html__
(
'Edit producer'
,
'beans_gasap'
),
'<span class="edit-link">'
,
'</span>'
);
the_post_thumbnail
();
?>
<a
href=
""
class=
"uk-modal-close uk-close uk-close-alt"
></a>
</div>
</div>
</div>
<?php
endwhile
;
wp_reset_postdata
();
?>
</div>
<?php
echo
do_shortcode
(
'[gmw form="2" name="form_id_2"]'
);
?>
</div>
</div>
<!-- #tab-content -->
</div>
<!-- end left side -->
<div
class=
"uk-width-1-1 uk-width-medium-1-3"
>
<?php
echo
do_shortcode
(
'[gmw_post_info]'
);
?>
<div
class=
"uk-width-1-1 uk-width-medium-1-3 leftmap"
>
<span
id=
"map1"
>
<?php
echo
do_shortcode
(
'[gmw map="1"]'
);
?>
</span>
<span
id=
"map2"
>
<?php
echo
do_shortcode
(
'[gmw map="2"]'
);
?>
</span>
</div>
</div>
</section>
\ No newline at end of file
themes/tm-beans-child4gasap/assets/template_parts/three_producers.php
View file @
83236555
<section
id=
"3producteurs"
class=
"uk-block
largeur1
"
>
<div
class=
"largeur
2
"
>
<section
id=
"3producteurs"
class=
"uk-block"
>
<div
class=
"largeur
1
"
>
<div
class=
"uk-text-center"
>
<?php
$producteurs_nourrissent
=
new
WP_Query
(
array
(
'post_type'
=>
'contentpiece'
,
'p'
=>
204
)
);
//FIX db entry
while
(
$producteurs_nourrissent
->
have_posts
())
:
$producteurs_nourrissent
->
the_post
();
?>
...
...
@@ -12,11 +12,11 @@
<?php
//deux producteurs
$do_not_duplicate
=
array
();
$active_prod
=
get_query_var
(
'
choix_prod
'
);
$active_prod
=
get_query_var
(
'
prod'
,
'
'
);
$short_producteurs
=
new
WP_Query
(
array
(
'post_type'
=>
'producer'
,
'order
_
by'
=>
'rand'
,
'orderby'
=>
'rand'
,
'posts_per_page'
=>
'2'
,
'post__not_in'
=>
array
(
$active_prod
)
));
...
...
@@ -28,7 +28,7 @@
if
(
has_post_thumbnail
()
)
{
the_post_thumbnail
(
'medium2'
);
}
?>
<h2>
<?php
echo
get_the_title
();
?>
</h2>
<?php
echo
get_the_term_list
(
get_the_ID
(),
'producertype'
,
'<div>'
,
', '
,
'</div>'
);
?>
<a
class=
"uk-button uk-button-success"
href=
"
<?php
echo
esc_url
(
add_query_arg
(
'
choix_prod'
,
get_the_ID
(),
'#presentation_producteur'
)
)
?>
"
data-uk-smooth-scroll
>
<?php
esc_html_e
(
'Discover'
,
'beans_gasap'
);
?>
</a>
<a
class=
"uk-button uk-button-success"
href=
"
<?php
echo
esc_url
(
add_query_arg
(
'
prod'
,
get_the_ID
(),
''
)
)
?>
#presentation_producteur
"
data-uk-smooth-scroll
>
<?php
esc_html_e
(
'Discover'
,
'beans_gasap'
);
?>
</a>
<?php
edit_post_link
(
esc_html__
(
'Edit producer'
,
'beans_gasap'
),
'<span class="edit-link">'
,
'</span>'
);
?>
</div>
<?php
$do_not_duplicate
[]
=
get_the_ID
();
...
...
@@ -36,13 +36,13 @@
wp_reset_postdata
();
?>
</div>
<?php
// fiche proucteur
// fiche pro
d
ucteur
if
(
get_query_var
(
$active_prod
)
!==
''
)
{
$fiche_producteur
=
new
WP_Query
(
array
(
'p'
=>
$active_prod
)
);
}
else
{
$fiche_producteur
=
new
WP_Query
(
array
(
'post_type'
=>
'producer'
,
'order
_
by'
=>
'rand'
,
'orderby'
=>
'rand'
,
'posts_per_page'
=>
1
,
'post__not_in'
=>
$do_not_duplicate
));
...
...
@@ -60,6 +60,7 @@
</div>
</div>
</div>
<?php
$active_prod
=
get_the_ID
();
endwhile
;
wp_reset_postdata
();
?>
</div>
...
...
themes/tm-beans-child4gasap/functions.php
View file @
83236555
...
...
@@ -36,13 +36,6 @@ function gasap_enqueue_uikit_assets() {
//beans_uikit_dequeue_components( array( 'breadcrumb', 'comment', 'pagination', 'form', 'table' ) );
}
// Remove this action and callback function if you are not adding CSS in the style.css file.
// add_action( 'wp_enqueue_scripts', 'beans_child_enqueue_assets' );
// function beans_child_enqueue_assets() {
// wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css' );
//}
// Setup document fragements, markups and attributes
add_action
(
'wp'
,
'gasap_setup_document'
);
function
gasap_setup_document
()
{
...
...
@@ -105,3 +98,16 @@ function calendar_widget_areas() {
'id'
=>
'calendar_widget_area'
,
)
);
}
// GASAP map - code by Smita
add_action
(
'gmw_before_no_results'
,
'nen_communities_no_results_show_map'
);
function
nen_communities_no_results_show_map
(
$form
)
{
//exit;
$form
[
'your_lat'
]
=
"51.103210"
;
$form
[
'your_lng'
]
=
"4.729270"
;
$form
[
'results_map'
][
'zoom_level'
]
=
"7"
;
$gmw
=
new
GMW
(
$form
);
$gmw
->
map_element
();
}
// End GASAP map
\ No newline at end of file
themes/tm-beans-child4gasap/header.php
0 → 100644
View file @
83236555
<?php
/**
* This file content is situated in /lib/templates/structure/header.php and should
* strictly be overwritten via your child theme.
*
* We strongly recommend to read Beans documentation to find out more how to
* customize Beans theme.
*
* @author Beans
* @link http://www.getbeans.io
*/
// Template situated in /lib/templates/structure/header.php
beans_load_default_template
(
__FILE__
);
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment