hello
Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : chryzalihi ( 621211) PHP Version : 8.3.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/c/h/r/chryzalihi/www/wp-contentOLD/themes/rakiya/library/inc/ |
<?php
/**
* Functions for handling JavaScript in the framework. Themes can add support for the
* 'hybrid-core-scripts' feature to allow the framework to handle loading the stylesheets into
* the theme header or footer at an appropriate time.
*
* @package HybridCore
* @subpackage Includes
* @author Justin Tadlock <justin@justintadlock.com>
* @copyright Copyright (c) 2008 - 2015, Justin Tadlock
* @link http://themehybrid.com/hybrid-core
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
# Register Hybrid Core scripts.
add_action( 'wp_enqueue_scripts', 'hybrid_register_scripts', 0 );
# Load Hybrid Core scripts.
add_action( 'wp_enqueue_scripts', 'hybrid_enqueue_scripts', 5 );
/**
* Registers JavaScript files for the framework. This function merely registers scripts with WordPress using
* the wp_register_script() function. It does not load any script files on the site. If a theme wants to register
* its own custom scripts, it should do so on the 'wp_enqueue_scripts' hook.
*
* @since 1.2.0
* @access public
* @return void
*/
function hybrid_register_scripts() {
// Register the 'mobile-toggle' script'.
wp_register_script( 'hybrid-mobile-toggle', HYBRID_JS . 'mobile-toggle' . hybrid_get_min_suffix() . '.js', array( 'jquery' ), '20130528', true );
}
/**
* Tells WordPress to load the scripts needed for the framework using the wp_enqueue_script() function.
*
* @since 1.2.0
* @access public
* @return void
*/
function hybrid_enqueue_scripts() {
// Load the comment reply script on singular posts with open comments if threaded comments are supported.
if ( is_singular() && get_option( 'thread_comments' ) && comments_open() )
wp_enqueue_script( 'comment-reply' );
}