########################################################
# Prise en charge du Shortcode [section]
########################################################
function sc_section($atts, $content = null) {
extract(shortcode_atts(array(
"width" => ''
), $atts));
if($width == null){
return ''.do_shortcode($content).'';
}else{
return ''.do_shortcode($content).'';
}
}
add_shortcode("section", "sc_section");
# Fin de la prise en charge du Shortcode [section]
########################################################
# Prise en charge du Shortcode [block2]
########################################################
function sc_block2($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if ($class == null) {
return '
'.do_shortcode($content).'
';
}else {
return ''.do_shortcode($content).'
';
}
}
add_shortcode("block2", "sc_block2");
# Fin de la prise en charge du Shortcode [block2]
########################################################
# Prise en charge du Shortcode [block3]
########################################################
function sc_block3($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if ($class == null) {
return ''.do_shortcode($content).'
';
}else {
return ''.do_shortcode($content).'
';
}
}
add_shortcode("block3", "sc_block3");
# Fin de la prise en charge du Shortcode [block3]
########################################################
# Prise en charge du Shortcode [block4]
########################################################
function sc_block4($atts, $content = null) {
$template_url = get_bloginfo('template_url');
extract(shortcode_atts(array(
"class" => ''
), $atts));
if ($class == 'link' || $class == 'link last' || $class == 'last link'){
return '
'.do_shortcode($content).'
';
}else{
return ''.do_shortcode($content).'
';
}
}
add_shortcode("block4", "sc_block4");
# Fin de la prise en charge du Shortcode [block4]
########################################################
# Prise en charge du Shortcode [block5]
########################################################
function sc_block5($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
return ''.do_shortcode($content).'
';
}
add_shortcode("block5", "sc_block5");
# Fin de la prise en charge du Shortcode [block5]
########################################################
# Prise en charge du Shortcode [texteSlider]
########################################################
function sc_texteSlider($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if ($class == null) {
return ''.do_shortcode($content).'
';
}else {
return ''.do_shortcode($content).'
';
}
}
add_shortcode("texteSlider", "sc_texteSlider");
# Fin de la prise en charge du Shortcode [texteSlider]
########################################################
# Prise en charge du Shortcode [titrePage]
########################################################
function sc_titrePage($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if ($class == null) {
return ''.$content.'
';
}else {
return ''.$content.'
';
};
}
add_shortcode("titrePage", "sc_titrePage");
########################################################
# Prise en charge du Shortcode [sousTitre]
########################################################
function sc_sousTitre($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if ($class == null) {
return ''.$content.'
';
}else {
return ''.$content.'
';
};
}
add_shortcode("sousTitre", "sc_sousTitre");
########################################################
# Prise en charge du Shortcode [h2]
########################################################
function sc_h2($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if ($class == null) {
return ''.$content.'
';
}else {
return ''.$content.'
';
};
}
add_shortcode("h2", "sc_h2");
########################################################
# Prise en charge du Shortcode [titreSlider]
########################################################
function sc_titreSlider($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if ($class == null) {
return ''.$content.'
';
}else {
return ''.$content.'
';
};
}
add_shortcode("titreSlider", "sc_titreSlider");
########################################################
# Prise en charge du Shortcode [h3]
########################################################
function sc_h3($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if ($class == null) {
return ''.$content.'
';
}else {
return ''.$content.'
';
};
}
add_shortcode("h3", "sc_h3");
########################################################
# Prise en charge du Shortcode [exergue]
########################################################
function sc_exergue($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if ($class == null) {
return ''.$content.'
';
}else {
return ''.$content.'
';
};
}
add_shortcode("exergue", "sc_exergue");
########################################################
# Prise en charge du Shortcode [p]
########################################################
function sc_p($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if($class == null){
return ''.do_shortcode($content).'
';
}else{
return ''.do_shortcode($content).'
';
}
}
add_shortcode("p", "sc_p");
# Fin de la prise en charge du Shortcode [p]
########################################################
# Prise en charge du Shortcode [sl]
########################################################
function sc_sl($atts, $content = null) {
return '
';
}
add_shortcode("sl", "sc_sl");
# Fin de la prise en charge du Shortcode [sl]
########################################################
# Prise en charge du Shortcode [savoirPlus]
########################################################
function sc_savoirPlus($atts, $content = null) {
extract(shortcode_atts(array(
"link" => '',
"title" => ''
), $atts));
return ''.$content.'';
}
add_shortcode("savoirPlus", "sc_savoirPlus");
# Fin de la prise en charge du Shortcode [savoirPlus]
########################################################
# Prise en charge du Shortcode [download]
########################################################
function sc_download($atts, $content = null) {
extract(shortcode_atts(array(
"link" => ''
), $atts));
return ''.$content.'';
}
add_shortcode("download", "sc_download");
# Fin de la prise en charge du Shortcode [download]
########################################################
# Prise en charge du Shortcode [conclu]
########################################################
function sc_conclu($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if($class == null){
return ''.do_shortcode($content).'
';
}else {
return ''.do_shortcode($content).'
';
};
}
add_shortcode("conclu", "sc_conclu");
# Fin de la prise en charge du Shortcode [conclu]
########################################################
# Prise en charge du Shortcode [spacer]
########################################################
function sc_spacer($atts, $content = null) {
extract(shortcode_atts(array(
"class" => ''
), $atts));
if($class == null){
return '';
} else {
return '';
};
}
add_shortcode("spacer", "sc_spacer");
# Fin de la prise en charge du Shortcode [spacer]
?>