Skip to content

Instantly share code, notes, and snippets.

function __construct() {
add_action( 'bcn_before_fill', array( &$this, 'prepare_state' ) );
add_action( 'bcn_after_fill', array( &$this, 'restore_state' ) );
}
<?php
/**
* @since 3.6.5
*/
class WPBDP_NavXT_Integration{
private $state = array();
private $doing = '';
@Glinkfr
Glinkfr / functions.php
Created October 7, 2019 10:58
Fichier fonctions thème enfant Sparkling
<?php
/**
* On enlève les scripts du thème parent
*/
function sparkling_child_dequeue_script() {
wp_dequeue_script( 'sparkling_scripts' );
}
add_action( 'wp_print_scripts', 'sparkling_child_dequeue_script()', 100 );
/**
@Glinkfr
Glinkfr / style.css
Created October 7, 2019 10:56
Thème enfant Sparkling fichier CSS
/*
Theme Name: Sparkling Child
Theme URI: http://colorlib.com/wp/themes/sparkling
Author: Colorlib
Author URI: http://colorlib.com/
Description: Sparkling is a clean minimal and responsive WordPress theme well suited for travel, health, business, finance, design, art, personal and any other creative websites and blogs. Developed using Bootstrap 3 that makes it mobile and tablets friendly. Theme comes with full-screen slider, social icon integration, author bio, popular posts widget and improved category widget. Sparkling incorporates latest web standards such as HTML5 and CSS3 and is SEO friendly thanks to its clean structure and codebase. It has dozens of Theme Options to change theme layout, colors, fonts, slider settings and much more. Theme is also translation and multilingual ready and is available in Spanish. Sparkling is a free WordPress theme with premium functionality and design.
Version: 1.5.0
Template: sparkling
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/license
@Glinkfr
Glinkfr / functions.php
Created October 7, 2019 10:54
Thème enfant de Sparkling, fichier functions.php
<?php
// On charge les styles parents et enfants
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 20);
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_dequeue_style('sparkling-style');
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array('parent-style')
@Glinkfr
Glinkfr / tabs.js
Created May 22, 2019 12:34
Onglets pour Thème Business Directory Plugin WordPress Fichier JS
jQuery(document).ready(function($) {
$('#tabs').tabs();
//hover states on the static widgets
$('#dialog_link, ul#icons li').hover(
function() { $(this).addClass('ui-state-hover'); },
function() { $(this).removeClass('ui-state-hover'); }
);
});
@Glinkfr
Glinkfr / styles.css
Last active May 22, 2019 13:51
Onglets pour Thème Business Directory Plugin WordPress Fichier CSS
/*
Theme: Glink Onglets
Auteur: Glink.fr
Auteur URL: https://www.glink.fr/
*/
/*--------------------------------------------------------------
>>> SOMMAIRE:
----------------------------------------------------------------
@Glinkfr
Glinkfr / single.tpl.php
Created May 22, 2019 10:46
Onglets pour Thème Business Directory Plugin WordPress
<?php
/**
* Template listing single view.
*
* @package BDP/Templates/Single
*/
// phpcs:disable
?>
<?php $main_links = wpbdp_main_links( $buttons ); ?>
@Glinkfr
Glinkfr / lettrine.css
Created April 1, 2019 11:03
Lettrine CSS partie 7
p:first-letter {
font-family: 'Rye', cursive;
font-size: 60px;
line-height:60px;
margin-right: 5px;
float: left;
color: #2E6F7B;
border: 1px solid #b0d7fc;
background: url(img/lettrine-fond2.png) #D2E8FD;
padding: 8px;
@Glinkfr
Glinkfr / lettrine.css
Created April 1, 2019 11:01
Lettrine CSS partie 6
p:first-letter {
font-family: 'Rye', cursive;
font-size: 60px;
line-height:60px;
margin-right: 5px;
float: left;
color: #F55E07;
border: 1px solid #faca8f;
background: url(img/lettrine-fond.png) #FFE0BA;
padding: 8px;