Commit 0ebdd0df authored by John Punzalan's avatar John Punzalan

Update ESI, change ability to tags

parent e5f1c365
......@@ -199,7 +199,7 @@ add_thickbox();
</tr>
<tr class="row-tag-id">
<th scope="row"><dsw
<label for="tag_id"><?php _e( 'Ability', 'esi' ); ?></label>
<label for="tag_id"><?php _e( 'Tag', 'esi' ); ?></label>
</th>
<td>
<select id="tag_id" class="chosen-select" name="tag_id[]" multiple="multiple">
......
......@@ -243,7 +243,7 @@ class Esi_Management_Activator {
)";
dbDelta( $sql );
// Create Ability table
// Create Tag table
$table_name = $wpdb->prefix . 'esi_tag';
$sql = "CREATE TABLE $table_name (
id INT NOT NULL AUTO_INCREMENT,
......@@ -254,7 +254,7 @@ class Esi_Management_Activator {
)";
dbDelta( $sql );
// Create Ability Entity liaison table
// Create Tag Entity liaison table
$table_name = $wpdb->prefix . 'esi_tag_entity';
$sql = "CREATE TABLE $table_name (
tag_id INT NOT NULL,
......@@ -264,7 +264,7 @@ class Esi_Management_Activator {
dbDelta( $sql );
// Create Ability News liaison table
// Create Tag News liaison table
$table_name = $wpdb->prefix . 'esi_tag_news';
$sql = "CREATE TABLE $table_name (
tag_id INT NOT NULL,
......
......@@ -166,7 +166,7 @@ class Esi_Management {
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/modules/region/class-esi-management-region-list.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/modules/region/class-esi-management-region-form.php';
// Ability
// Tag
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/modules/tag/class-esi-management-tag.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/modules/tag/class-esi-management-tag-list.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/modules/tag/class-esi-management-tag-form.php';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment