| Server IP : 89.108.64.180 / Your IP : 216.73.217.92 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/v-tihvin.ru/wp-content/plugins/nd-shortcodes/ |
Upload File : |
<?php
/*
Plugin Name: ND Shortcodes
Description: The plugin adds some useful components to your page builder ( Elementor or WP Bakery Page Builder ). All components are full responsive and retina ready.
Version: 7.8
Plugin URI: https://nicdark.com
Author: Nicdark
Author URI: https://nicdark.com
License: GPLv2 or later
*/
//translation
function nd_options_load_textdomain()
{
load_plugin_textdomain("nd-shortcodes", false, dirname(plugin_basename(__FILE__)) . '/languages');
}
add_action('plugins_loaded', 'nd_options_load_textdomain');
//START add custom css and js
function nd_options_scripts() {
//basic css plugin
wp_enqueue_style( 'nd_options_style', esc_url( plugins_url( 'css/style.css', __FILE__ ) ) );
wp_enqueue_script('jquery');
}
add_action( 'wp_enqueue_scripts', 'nd_options_scripts' );
//END add custom css and js
//START check if visual Composer is present
if( function_exists('vc_map')){
// all shortcodes
foreach ( glob ( plugin_dir_path( __FILE__ ) . "shortcodes/*/index.php" ) as $file ){
include_once realpath($file);
}
}
//END check if visual Composer is present
// all addons
foreach ( glob ( plugin_dir_path( __FILE__ ) . "addons/*/index.php" ) as $file ){
include_once realpath($file);
}
//enable shortcode in the widget text
add_filter('widget_text', 'do_shortcode');
//update theme options
function nd_options_theme_setup_update(){
update_option( 'nicdark_theme_author', 0 );
}
add_action( 'after_switch_theme' , 'nd_options_theme_setup_update');
//function for get plugin version
function nd_options_get_plugin_version(){
$nd_options_plugin_data = get_plugin_data( __FILE__ );
$nd_options_plugin_version = $nd_options_plugin_data['Version'];
return $nd_options_plugin_version;
}
// settings
if ( get_option('nicdark_theme_author') == 1 ){
require_once dirname( __FILE__ ) . '/inc/settings/index.php';
$nd_options_dmode = get_option('nd_options_developer_enable');
if ( $nd_options_dmode != 1 ) { ini_set('display_errors', 0); error_reporting(0); }
}