Commit ec31d665 authored by agnez's avatar agnez

pro theme start adapt

parent e270683c
......@@ -42,6 +42,7 @@ get_header();?>
get_template_part( 'no-results' );
endif; ?>
</div>
<div class="clearfix"></div>
<div class="clearfix">
</div>
<?php get_footer(); ?>
......@@ -261,6 +261,7 @@ add_filter( 'wp_footer', 'cdx_handel_external_links', 999);
function vs_add_googleanalytics() { ?>
// Paste your Google Analytics code here
UA-12605197-11
<?php }
......
......@@ -17,8 +17,8 @@ get_header(); ?>
<div id="content-blog" class="container">
<div class="middle-align">
<?php while ( have_posts() ) : the_post(); ?>
<h1><?php the_title();?></h1>
<?php if(has_post_thumbnail()) { ?>
<h1><?php the_title();?></h1><?php
if(has_post_thumbnail()) { ?>
<div class="feature-box"><?php
$thumb_img = get_post_meta( get_post_thumbnail_id() );?>
<img src="<?php the_post_thumbnail_url('full'); ?>" width="100%" alt="<?php echo $thumb_img['_wp_attachment_image_alt']['0'];?>">
......@@ -26,9 +26,9 @@ get_header(); ?>
$img_legende = get_post(get_post_thumbnail_id())->post_excerpt;
if(!empty($img_legende)){
echo '<div class="legende">' . $img_legende . '</div>';
}?>
<?php } ?>
<?php the_content();
}
}
the_content();
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'multipurpose-blog' ) . '</span>',
......
/*!
Theme Name: Voisin Solidaires
Theme Name: Voisin Solidaires non pro
Theme URI: http://buywptemplates.com/multipurpose-blog-wordpress-theme
Description: Multipurpose-blog Child
Author: Lore Mipsum
......
<?php
/**
* The template for displaying Archive pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package multipurpose blog
*/
get_header();?>
<div class="container">
<h1 class="page-title"><?php single_cat_title();?></h1>
<div class="row">
<?php if ( have_posts() ) :
/* Start the Loop */
while ( have_posts() ) : the_post();?>
<div class="col-md-4 col-sm-4">
<div id="post-<?php the_ID(); ?>" <?php post_class('inner-service'); ?>>
<h3 class="section-title"><a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php the_title_attribute(); ?>"><?php the_title();?></a></h3>
<?php
// TODO trouver comment afficher date uniquement si page cat 1
if(has_post_thumbnail()) {
$thumb_img = get_post_meta( get_post_thumbnail_id() );
$img_alt = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true);
the_post_thumbnail( 'medium', array( 'alt' => $img_alt ) );
$img_legende = get_post(get_post_thumbnail_id())->post_excerpt;
if(!empty($img_legende)){
echo '<div class="legende">' . $img_legende . '</div>';
}
$img_description = get_post(get_post_thumbnail_id())->post_content;
if(!empty($img_description)){
echo '<div class="description">' . $img_description . '</div>';
}
}
if(!has_post_thumbnail()) {
get_template_part( 'template-parts/formatview',get_post_format() );
}?>
</div>
</div><?php
endwhile;
else :
get_template_part( 'no-results' );
endif; ?>
</div>
<div class="clearfix">
</div>
<?php get_footer(); ?>
/*!
Theme Name: CDE - ULB
Theme URI: http://example.com/radix-child/
Description: Education Hub Pro Child
Author: Lore Mipsum
Template: education-hub-pro
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, white, one-column, two-columns, left-sidebar, right-sidebar, fixed-layout, custom-background, custom-colors, custom-menu, featured-images, full-width-template, post-formats, sticky-post, translation-ready, responsive-layout, theme-options, threaded-comments
Text Domain: eduhubchild
*/#slider .slide-cap a.read-more{border-color:gold;display:inline-block}
/*# sourceMappingURL=style.css.map */
{
"version": 3,
"mappings": "AAAA;;;;;;;;;;;EAWE,AAEF,8BAA+B,CAC3B,YAAY,CAAC,IAAI,CACjB,OAAO,CAAE,YAAY",
"sources": ["../../multipurpose-blog-child_dev/sass/style.scss"],
"names": [],
"file": "style.css"
}
\ No newline at end of file
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package multipurpose blog
*/
?>
<div class="footer-wp">
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-4">
<?php dynamic_sidebar('footer-1');?>
</div>
<div class="col-md-4 col-sm-4">
<?php dynamic_sidebar('footer-2');?>
</div>
<div class="col-md-4 col-sm-4">
<?php dynamic_sidebar('footer-3');?>
</div>
</div>
</div>
</div>
<div class="inner">
<div class="copyright-wrapper">
<?php dynamic_sidebar('footer-b');?>
</div>
<div class="clear"></div>
</div>
<?php wp_footer(); ?>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="bwt_content">
*
* @package Multipurpose Blog Pro
* @subpackage multipurpose_blog_pro
* @since multipurpose_blog_pro 1.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<link href="https://fonts.googleapis.com/css?family=Dancing+Script" rel="stylesheet">
<?php wp_head(); ?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-107422631-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-107422631-1');
</script>
</head>
<body <?php body_class(); ?>>
<div id="header">
<?php // Top bar
get_template_part( 'template-parts/header/topbar' ); ?>
<div class="logo_bar">
<div class="logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/logoVS.jpg" alt="<?php esc_attr(bloginfo( 'name' )); ?>" title="<?php esc_attr(bloginfo( 'description' ));?> " />
</a>
</div>
</div>
<div class="container">
<div class="menus">
<div class="toggle"><a class="toggleMenu" href="#"><?php esc_html_e('Menu','multipurpose-blog'); ?></a></div>
<div class="menubox header">
<div class="nav">
<?php wp_nav_menu( array('theme_location' => 'primary') ); ?>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
\ No newline at end of file
This diff is collapsed.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/multipurpose-blog-"
"child\n"
"POT-Creation-Date: 2018-05-16 20:06+0200\n"
"PO-Revision-Date: 2018-05-16 20:13+0200\n"
"Last-Translator: Lore <lore@mipsum.be>\n"
"Language-Team: \n"
"Language: fr_FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.11\n"
"X-Poedit-Basepath: .\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: functions.php:48
msgid "Bottom footer"
msgstr "Bas de page"
#: functions.php:49
msgid "On the very bottom"
msgstr "Pied de page"
#: functions.php:65
msgctxt "taxonomy general name"
msgid "Special functions"
msgstr "Fonctionnements spécifiques"
#: functions.php:66
msgctxt "taxonomy singular name"
msgid "Special function"
msgstr "Fonctionnement spécifique"
#: functions.php:67
msgid "All Special functions"
msgstr "Tous fonctionnements spécifiques"
#: functions.php:70
msgid "Search Special functions"
msgstr "Chercher fonctionnements spécifiques"
#: functions.php:71
msgid "Edit Special function"
msgstr "Éditer le fonctionnement spécifique"
#: functions.php:72
msgid "Update Special function"
msgstr "Mettre le fonctionnement spécifique à jour"
#: functions.php:73
msgid "Add New Special function"
msgstr "Ajouter un fonctionnement spécifique"
#: functions.php:74
msgid "New special function Name"
msgstr "Nouveau fonctionnement spécifique"
#: functions.php:75
msgid "Special functions"
msgstr "Fonctionnement spécifique"
#: page-template/custom-home-page.php:57
msgid "Learn More"
msgstr "En savoir plus"
#: page-template/custom-home-page.php:113
msgid "Pages:"
msgstr "Pages :"
#: page-template/custom-home-page.php:117
msgid "Page"
msgstr ""
#. Theme Name of the plugin/theme
msgid "Voisin Solidaires"
msgstr ""
#. Theme URI of the plugin/theme
msgid "http://buywptemplates.com/multipurpose-blog-wordpress-theme"
msgstr ""
#. Description of the plugin/theme
msgid "Multipurpose-blog Child"
msgstr ""
#. Author of the plugin/theme
msgid "Lore Mipsum"
msgstr ""
#. Template Name of the plugin/theme
msgid "Custom Home Page"
msgstr "Page d'accueil"
#. Template Name of the plugin/theme
msgid "Page with Left Sidebar"
msgstr "Colonne gauche pour calendrier"
#. Template Name of the plugin/theme
msgid "Page with Right Sidebar"
msgstr "Page avec colonne de droite"
# Copyright (C) 2018 Lore Mipsum
# This file is distributed under the GNU General Public License.
msgid ""
msgstr ""
"Project-Id-Version: Voisin Solidaires 1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/multipurpose-blog-"
"child\n"
"POT-Creation-Date: 2018-05-16 18:04:42+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: functions.php:48
msgid "Bottom footer"
msgstr ""
#: functions.php:49
msgid "On the very bottom"
msgstr ""
#: functions.php:65
msgctxt "taxonomy general name"
msgid "Special functions"
msgstr ""
#: functions.php:66
msgctxt "taxonomy singular name"
msgid "Special function"
msgstr ""
#: functions.php:67
msgid "All Special functions"
msgstr ""
#: functions.php:70
msgid "Search Special functions"
msgstr ""
#: functions.php:71
msgid "Edit Special function"
msgstr ""
#: functions.php:72
msgid "Update Special function"
msgstr ""
#: functions.php:73
msgid "Add New Special function"
msgstr ""
#: functions.php:74
msgid "New special function Name"
msgstr ""
#: functions.php:75
msgid "Special functions"
msgstr ""
#: page-template/custom-home-page.php:57
msgid "Learn More"
msgstr ""
#: page-template/custom-home-page.php:113
msgid "Pages:"
msgstr ""
#: page-template/custom-home-page.php:117
msgid "Page"
msgstr ""
#. Theme Name of the plugin/theme
msgid "Voisin Solidaires"
msgstr ""
#. Theme URI of the plugin/theme
msgid "http://buywptemplates.com/multipurpose-blog-wordpress-theme"
msgstr ""
#. Description of the plugin/theme
msgid "Multipurpose-blog Child"
msgstr ""
#. Author of the plugin/theme
msgid "Lore Mipsum"
msgstr ""
#. Template Name of the plugin/theme
msgid "Custom Home Page"
msgstr ""
#. Template Name of the plugin/theme
msgid "Page with Left Sidebar"
msgstr ""
#. Template Name of the plugin/theme
msgid "Page with Right Sidebar"
msgstr ""
<?php
/**
* Template Name: Custom Home Page
*/
get_header(); ?>
<?php do_action( 'multipurpose_blog_before_slider' ); ?>
<?php /** slider section **/ ?>
<div class="slider-main">
<?php
// Get pages set in the customizer (if any)
$pages = array();
for ( $count = 1; $count <= 5; $count++ ) {
$mod = absint( get_theme_mod( 'multipurpose_blog_slidersettings-page-' . $count ) );
if ( 'page-none-selected' != $mod ) {
$pages[] = $mod;
}
}
if( !empty($pages) ) :
$args = array(
'posts_per_page' => 5,
'post_type' => 'page',
'post__in' => $pages,
'orderby' => 'post__in'
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) :
$count = 1;
?>
<div id="slider" class="nivoSlider">
<?php
$multipurpose_blog_n = 0;
while ( $query->have_posts() ) : $query->the_post();
$multipurpose_blog_n++;
$multipurpose_blog_slideno[] = $multipurpose_blog_n;
$multipurpose_blog_slidetitle[] = get_the_title();
$multipurpose_blog_slidelink[] = esc_url( get_permalink() );
?>
<img src="<?php the_post_thumbnail_url('full'); ?>" title="#slidecaption<?php echo esc_attr( $multipurpose_blog_n ); ?>" />
<?php
$count++;
endwhile;
?>
</div>
<?php
$multipurpose_blog_k = 0;
foreach( $multipurpose_blog_slideno as $multipurpose_blog_sln ){ ?>
<div id="slidecaption<?php echo esc_attr( $multipurpose_blog_sln ); ?>" class="nivo-html-caption">
<div class="slide-cap ">
<div class="container">
<a class="read-more" href="<?php echo esc_url( $multipurpose_blog_slidelink[$multipurpose_blog_k] ); ?>"><?php echo esc_html( $multipurpose_blog_slidetitle[$multipurpose_blog_k] ); ?></a>
</div>
</div>
</div>
<?php $multipurpose_blog_k++;
}
else : ?>
<div class="header-no-slider"></div>
<?php
endif;
else : ?>
<div class="header-no-slider"></div>
<?php
endif;
?>
</div>
<?php do_action( 'multipurpose_blog_after_slider' ); ?>
<div id="page-content" class="container">
<div class="middle-align">
<?php while ( have_posts() ) : the_post(); ?>
<!-- <h1><?php //the_title(); ?></h1> -->
<?php if(has_post_thumbnail()) { ?>
<div class="feature-box">
<img src="<?php the_post_thumbnail_url('full'); ?>" width="100%">
</div>
<?php } ?>
<?php the_content();
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'voisinssolidaires' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'voisinssolidaires' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
//If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
?>
<?php endwhile; // end of the loop. ?>
<div class="clear"></div>
</div>
</div>
<?php /** promoted post section **/
$page_query = new WP_Query(array( 'category_name' => get_theme_mod('multipurpose_blog_photo_setting','theblog')));
if ( $page_query->have_posts() ) :?>
<section id="photography" class="darkbox" >
<div class="container">
<div class="row">
<?php while( $page_query->have_posts() ) : $page_query->the_post(); ?>
<div class="col-md-4 col-sm-4">
<div class="imagebox"><a href="<?php the_permalink(); ?>">
<?php if(has_post_thumbnail()) { ?><?php the_post_thumbnail('imagebox'); ?><?php } ?>
<div class="contentbox">
<h4><?php the_title(); ?></h4>
</div></a>
</div>
</div>
<?php endwhile;
wp_reset_postdata();
?>
<div class="clearfix"></div>
</div>
</div>
</section>
<?php endif;?>
<?php do_action( 'multipurpose_blog_after_section1' ); ?>
<?php /** promoted page section **/ ?>
<section id="promoted-page" class="darkbox" >
<div class="container">
<div class="row">
<?php
$args_promoted_pages = array(
'post_type' => 'page',
'orderby'=> 'date',
'order' => 'DESC',
'tax_query' => array(
array(
'taxonomy' => 'pagetaxo',
'field' => 'term_id',
'terms' => 29
)
)
);
$promoted_page = new WP_Query( $args_promoted_pages );
while( $promoted_page->have_posts() ) : $promoted_page->the_post(); ?>
<div class="col-md-4 col-sm-4">
<div class="imagebox"><a href="<?php the_permalink(); ?>">
<?php if(has_post_thumbnail()) { ?><?php the_post_thumbnail('imagebox'); ?><?php } ?>
<div class="contentbox">
<h4><?php the_title(); ?></h4>
</div></a>
</div>
</div>
<?php endwhile;
wp_reset_postdata();
?>
<div class="clearfix"></div>
</div>
</div>
</section>
<?php get_footer(); ?>
\ No newline at end of file
<?php
/**
* Template Name:Page with Left Sidebar
*/
get_header(); ?>
<?php do_action( 'multipurpose_blog_header_pageleft' ); ?>
<div class="container">
<div class="middle-align">
<div class="row">
<div id="sidebar" class="col-md-4">
<?php dynamic_sidebar('sidebar-3'); ?>
</div>
<div class="col-md-8" id="content-blog" >
<?php while ( have_posts() ) : the_post(); ?>
<img src="<?php the_post_thumbnail_url(); ?>">
<h1><?php the_title();?></h1>
<?php the_content();
//If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
?>
<?php endwhile; // end of the loop. ?>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<?php do_action( 'multipurpose_blog_footer_pageleft' ); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php
/**
* Template Name:Page with Right Sidebar
*/
get_header(); ?>
<?php do_action( 'multipurpose_blog_header_pageright' ); ?>
<div class="container">
<div class="middle-align">
<div class="row">
<div class="col-md-8" id="content-blog">
<?php while ( have_posts() ) : the_post(); ?>
<img src="<?php the_post_thumbnail_url('full'); ?>" width="100%">
<h1><?php the_title();?></h1>
<?php the_content();
//If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
?>
<?php endwhile; // end of the loop. ?>
</div>
<div class="col-md-4">
<?php dynamic_sidebar('sidebar-2'); ?>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php do_action( 'multipurpose_blog_footer_page_right' ); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package multipurpose blog
*/
get_header(); ?>
<?php do_action( 'multipurpose_blog_header_page' ); ?>
<div id="content-blog" class="container">
<div class="middle-align">
<?php while ( have_posts() ) : the_post(); ?>
<h1><?php the_title();?></h1><?php
if(has_post_thumbnail()) { ?>
<div class="feature-box"><?php
$thumb_img = get_post_meta( get_post_thumbnail_id() );?>
<img src="<?php the_post_thumbnail_url('full'); ?>" width="100%" alt="<?php echo $thumb_img['_wp_attachment_image_alt']['0'];?>">
</div><?php
$img_legende = get_post(get_post_thumbnail_id())->post_excerpt;
if(!empty($img_legende)){
echo '<div class="legende">' . $img_legende . '</div>';
}
}
the_content();
wp_link_pages( array(