admin_url('admin-ajax.php'), 'images_path' => DBR_PLUGIN_DIR_PATH . "/images/", 'are_you_sure' => __('Are you sure to continue?', 'advanced-wp-reset'), 'warning_msg' => __('You are about to reset your database!', 'advanced-wp-reset'), 'irreversible_msg' => __('This operation is irreversible!', 'advanced-wp-reset'), 'custom_warning' => __('You are about to perform the following action:', 'advanced-wp-reset'), 'type_reset' => sprintf(__('Please type the word "%s" correctly in the text box','advanced-wp-reset'), "reset"), 'processing' => __('Processing...', 'advanced-wp-reset'), 'done' => __('Done!', 'advanced-wp-reset'), 'cancel' => __('Cancel', 'advanced-wp-reset'), 'Continue' => __('Continue', 'advanced-wp-reset'), 'keep_active_theme' => __('Keep active theme', 'advanced-wp-reset'), 'keep_this_plugin' => __('Keep current plugin', 'advanced-wp-reset'), 'unknown_error' => __('Unknown error!', 'advanced-wp-reset'), 'ajax_nonce' => wp_create_nonce('DBR_nonce'), )); //wp_enqueue_script('jquery'); //wp_enqueue_script('jquery-ui-dialog'); //wp_enqueue_style('wp-jquery-ui-dialog'); wp_enqueue_script( 'jquery-ui-sortable' ); } // Register activation of the plugin function DBR_activate_plugin(){ // Anything to do on deactivation? Maybe later... } // Register deactivation hook function DBR_deactivate_plugin($network_wide){ // Anything to do on deactivation? Maybe later... } // Register UNINSTALL hook public static function DBR_uninstall(){ // Anything to do on uninstall? Maybe later... } // Add admin notice to rate plugin function DBR_rate_notice(){ $DBR_upload_dir = wp_upload_dir(); $DBR_file_path = str_replace('\\' ,'/', $DBR_upload_dir['basedir']) . "/DBR.txt"; if(file_exists($DBR_file_path)){ $content = file_get_contents($DBR_file_path); // Return in case the file contains 0 if($content != "1") return; }else{ // Return in case the file does not exist return; } $DBR_new_URI = $_SERVER['REQUEST_URI']; $DBR_new_URI = add_query_arg('DBR_rate', "0", $DBR_new_URI); // Style should be done here because it is not loaded outside the plugin admin panel $style_botton = "background:#f0f5fa;padding:5px;text-decoration:none;margin-right:10px;border:1px solid #999;border-radius:4px"; ?>
|
|
Younes JFR.
|
" . DBR_PLUGIN_VERSION . "" ?>
|