Commit 422fd6e6 authored by agnez's avatar agnez

search box and result page

parent d78773c6
......@@ -64,7 +64,7 @@ function create_post_types() {
'public' => false,
'has_archive' => false,
'show_ui' => true,
'exclude_from_search' => true,
'exclude_from_search' => false,
'hierarchical' => false,
'menu_icon' => 'dashicons-businessman',
'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt' ),
......
......@@ -344,6 +344,7 @@ main .uk-container{
}
}
#snippet_presse{
margin-bottom: 3em;
> div{
background: url(images/presse.png) right center no-repeat @global-muted-color;
background-size:auto 50%;
......
......@@ -194,15 +194,20 @@ function wp_get_attachment( $attachment_id ) {
);
}
// Register calendar widget area to use in home.php ?? obsolethe ?
/*
add_action( 'widgets_init', 'calendar_widget_areas' );
function calendar_widget_areas() {
// Register widget
add_action( 'widgets_init', 'header_widget_areas' );
function header_widget_areas() {
beans_register_widget_area( array(
'name' => __( 'Calendar Widget Area', 'beans_gasap' ),
'id' => 'calendar_widget_area',
'name' => __( 'Header Widget Area', 'beans_gasap' ),
'id' => 'header_widget_area',
) );
} */
}
add_action( 'beans_primary_menu_after_markup', 'gasap_header_widget_area' );
function gasap_header_widget_area() { ?>
<div class="uk-float-right"> <?php
echo beans_widget_area( 'header_widget_area' ); ?>
</div> <?php
}
//pour three_producers ?? obsolethe ?
/*
......
......@@ -71,7 +71,8 @@ add_action( 'beans_content_after_markup', 'gasap_bottom' );
function gasap_bottom() {
include (get_stylesheet_directory() . '/assets/template_parts/news_slider.php');
//include (get_stylesheet_directory() . '/assets/template_parts/latest_news.php');
//include (get_stylesheet_directory() . '/assets/template_parts/event_calendar.php');
//include (get_stylesheet_directory() . '/assets/template_parts/event_calendar.php');
include (get_stylesheet_directory() . '/assets/template_parts/contact_calendar.php');
include (get_stylesheet_directory() . '/assets/template_parts/footer.php');
}
......
......@@ -99,6 +99,10 @@ function get_gasap_details($id){
";
$items = $wpdb->get_results($sql);
$prepared_statement = $wpdb->prepare( "SELECT %f,long,lat FROM {$table_name} WHERE post_ID = %d", $id );
$values = $wpdb->get_col( $prepared_statement );
foreach ($items as $item) {
$test = absint( $item->street_number );
$long = absint( $item->long );?>
......
<?php
/**
* This core file 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
*/
beans_add_attribute( 'beans_post_body', 'class', 'largeur1' );
beans_remove_action( 'beans_post_image' );
......
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