git submodules
Этот коммит содержится в:
родитель
4c5c2fa137
Коммит
7adc7ba554
3
.gitmodules
поставляемый
Обычный файл
3
.gitmodules
поставляемый
Обычный файл
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "css/ShortCSS"]
|
||||||
|
path = css/ShortCSS
|
||||||
|
url = https://github.com/IgorVBelousov/ShortCSS.git
|
12
batch.php
12
batch.php
@ -2,13 +2,13 @@
|
|||||||
/**
|
/**
|
||||||
* Plugin Name: Batch operations
|
* Plugin Name: Batch operations
|
||||||
* Description: My version Drupal Batch API for WordPress.
|
* Description: My version Drupal Batch API for WordPress.
|
||||||
* Version: 0.1.0a
|
* Version: 0.1.0
|
||||||
* Author: Igor V Belousov
|
* Author: Igor V Belousov
|
||||||
* Author URI: http://belousovv.ru/
|
* Author URI: http://belousovv.ru/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Create table on activate
|
// Create table on activate
|
||||||
register_activation_hook(ABSPATH.PLUGINDIR.'/batch-operations/bath.php','batch_operations_install');
|
register_activation_hook(ABSPATH.PLUGINDIR.'/batch_operations/batch.php','batch_operations_install');
|
||||||
|
|
||||||
// Add backend page without menu item
|
// Add backend page without menu item
|
||||||
add_action( 'admin_menu', 'batch_operations_add_page' );
|
add_action( 'admin_menu', 'batch_operations_add_page' );
|
||||||
@ -27,7 +27,7 @@ function batch_operations_install () {
|
|||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
$table_name = $wpdb->prefix . 'batch_operations';
|
$table_name = $wpdb->prefix . 'batch_operations';
|
||||||
|
//WP>=3.5
|
||||||
$charset_collate = $wpdb->get_charset_collate();
|
$charset_collate = $wpdb->get_charset_collate();
|
||||||
|
|
||||||
$sql = "CREATE TABLE $table_name (
|
$sql = "CREATE TABLE $table_name (
|
||||||
@ -52,10 +52,10 @@ function batch_operations_add_page() {
|
|||||||
* View batch operations page
|
* View batch operations page
|
||||||
*/
|
*/
|
||||||
function batch_operations_page_view() {
|
function batch_operations_page_view() {
|
||||||
//WP 3.3
|
//WP>=3.3
|
||||||
wp_enqueue_script( 'jquery' );
|
wp_enqueue_script( 'jquery' );
|
||||||
wp_enqueue_script( 'batch_operations_script', plugin_dir_url('') . 'batch-operations/js/batch.min.js' );
|
wp_enqueue_script( 'batch_operations_script', plugin_dir_url('') . 'batch_operations/js/batch.min.js' );
|
||||||
wp_enqueue_style( 'batch_operations_script', plugin_dir_url('') . 'batch-operations/css/batch.css' );
|
wp_enqueue_style( 'batch_operations_script', plugin_dir_url('') . 'batch_operations/css/batch.css' );
|
||||||
$id = ( intval( $_REQUEST["id"] ) < 0 )? 0 : intval( $_REQUEST["id"] );
|
$id = ( intval( $_REQUEST["id"] ) < 0 )? 0 : intval( $_REQUEST["id"] );
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
=== Batch operations ===
|
=== Batch operations ===
|
||||||
Contributors: igor-v-belousov
|
Contributors: igor-v-belousov
|
||||||
Tags: batch
|
Tags: batch
|
||||||
Requires at least: 3.3
|
Requires at least: 3.5
|
||||||
Tested up to: 3.3
|
Tested up to: 3.5
|
||||||
|
|
||||||
My version Drupal Batch API for WordPress.
|
My version Drupal Batch API for WordPress.
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user