Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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: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 );
/**
<?php
/**
* @since 3.6.5
*/
class WPBDP_NavXT_Integration{
private $state = array();
private $doing = '';
function __construct() {
add_action( 'bcn_before_fill', array( &$this, 'prepare_state' ) );
add_action( 'bcn_after_fill', array( &$this, 'restore_state' ) );
}
$this->compat = new WPBDP_Compat();
$this->rewrite = new WPBDP__Rewrite();
do_action( 'wpbdp_loaded' );
// supprime toutes les actions de BD sur le plugin NavXT
add_action( 'wpbdp_loaded', function(){
remove_all_actions('bcn_before_fill');
remove_all_actions('bcn_after_fill');
});