Changeset 1912883
- Timestamp:
- 07/22/2018 12:51:29 AM (8 years ago)
- Location:
- tcard-wp/trunk
- Files:
-
- 14 edited
-
admin/TcardTables.php (modified) (2 diffs)
-
admin/css/tcard-admin.css (modified) (1 diff)
-
admin/css/tcard-admin.min.css (modified) (1 diff)
-
admin/js/tcard-admin.js (modified) (1 diff)
-
admin/js/tcard-admin.min.js (modified) (1 diff)
-
front/css/tcard.css (modified) (1 diff)
-
front/css/tcard.min.css (modified) (1 diff)
-
front/css/tcard_color.css (modified) (1 diff)
-
front/css/tcard_color.min.css (modified) (1 diff)
-
front/js/tcard.js (modified) (1 diff)
-
front/js/tcard.min.js (modified) (1 diff)
-
inc/elements-class/TcardSettings.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
tcard.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tcard-wp/trunk/admin/TcardTables.php
r1912560 r1912883 1 1 <?php 2 3 2 /** 4 3 * @since 1.0.0 … … 23 22 24 23 $tcards_version = "1.0"; 24 $tcard_table_db_version = get_option( "tcards_table_db_version" ); 25 25 26 $tcards = $wpdb->prefix . "tcards";26 if ( $tcard_table_db_version != $tcards_version ) { 27 27 28 if($wpdb->get_var('SHOW TABLE LIKE ' . $tcards) != $tcards) 29 { 30 $sql = "CREATE TABLE $tcards ( 31 group_id int(11) NOT NULL AUTO_INCREMENT, 32 skin_type varchar(25) NOT NULL, 33 skins_number tinyint(1) NOT NULL, 34 title varchar(255) NOT NULL, 35 publish_up datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, 36 modified datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, 37 settings text NOT NULL, 38 PRIMARY KEY (group_id) 39 )$charset_collate;"; 28 $tcards = $wpdb->prefix . "tcards"; 40 29 41 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 42 dbDelta($sql); 30 if ( $wpdb->get_var( "SHOW TABLES LIKE '{$tcards}'" ) != $tcards ) { 31 $sql = "CREATE TABLE $tcards ( 32 group_id int(11) NOT NULL AUTO_INCREMENT, 33 skin_type varchar(25) NOT NULL, 34 skins_number tinyint(1) NOT NULL, 35 title varchar(255) NOT NULL, 36 publish_up datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, 37 modified datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, 38 settings text NOT NULL, 39 PRIMARY KEY (group_id) 40 ) $charset_collate;"; 43 41 44 add_option('tcards_table_db_version',$tcards_version); 42 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 43 dbDelta($sql); 44 } 45 update_option('tcards_table_db_version',$tcards_version); 45 46 } 46 47 47 48 $tcard_skins_version = "1.0"; 49 $tcard_skin_db_version = get_option( "tcard_skin_db_version" ); 48 50 49 $tcard_skins = $wpdb->prefix . "tcard_skins";51 if ( $tcard_skin_db_version != $tcard_skins_version ) { 50 52 51 if($wpdb->get_var('SHOW TABLE LIKE ' . $tcard_skins) != $tcard_skins)52 {53 $sql= "CREATE TABLE $tcard_skins (54 skin_id int(11) NOT NULL AUTO_INCREMENT,55 group_id int(11) NOT NULL,56 closed tinyint(1) NOT NULL,57 elements text NOT NULL,58 header text NOT NULL,59 content mediumtext NOT NULL,60 footer text NOT NULL,61 gallery text NOT NULL,62 settings text NOT NULL,63 PRIMARY KEY (skin_id)64 )$charset_collate;";53 $tcard_skins = $wpdb->prefix . "tcard_skins"; 54 if ( $wpdb->get_var( "SHOW TABLES LIKE '{$tcard_skins}'" ) != $tcard_skins ) { 55 $sql_skin = "CREATE TABLE $tcard_skins ( 56 skin_id int(11) NOT NULL AUTO_INCREMENT, 57 group_id int(11) NOT NULL, 58 closed tinyint(1) NOT NULL, 59 elements text NOT NULL, 60 header text NOT NULL, 61 content mediumtext NOT NULL, 62 footer text NOT NULL, 63 gallery text NOT NULL, 64 settings text NOT NULL, 65 PRIMARY KEY (skin_id) 66 ) $charset_collate;"; 65 67 66 require_once(ABSPATH . 'wp-admin/includes/upgrade.php');67 dbDelta($sql);68 69 add_option('tcard_skin_db_version',$tcard_header_version);68 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 69 dbDelta($sql_skin); 70 } 71 update_option('tcard_skin_db_version',$tcard_skins_version); 70 72 } 71 72 73 } 73 74 } -
tcard-wp/trunk/admin/css/tcard-admin.css
r1912812 r1912883 3 3 Author: Cloanta Alexandru 4 4 Name: Tcard Wordpress 5 Version: 1.7. 65 Version: 1.7.7 6 6 7 7 */ -
tcard-wp/trunk/admin/css/tcard-admin.min.css
r1912812 r1912883 3 3 Author: Cloanta Alexandru 4 4 Name: Tcard Wordpress 5 Version: 1.7. 65 Version: 1.7.7 6 6 7 7 */ -
tcard-wp/trunk/admin/js/tcard-admin.js
r1912812 r1912883 3 3 Author: Cloanta Alexandru 4 4 Name: Tcard Wordpress 5 Version: 1.7. 65 Version: 1.7.7 6 6 7 7 */ -
tcard-wp/trunk/admin/js/tcard-admin.min.js
r1912812 r1912883 3 3 Author: Cloanta Alexandru 4 4 Name: Tcard Wordpress 5 Version: 1.7. 65 Version: 1.7.7 6 6 7 7 */ -
tcard-wp/trunk/front/css/tcard.css
r1912812 r1912883 3 3 Author: Cloanta Alexandru 4 4 Name: Tcard Wordpress 5 Version: 1.7. 65 Version: 1.7.7 6 6 7 7 */ 8 9 8 @import url('https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i,700,700i,900,900i'); 10 9 -
tcard-wp/trunk/front/css/tcard.min.css
r1912812 r1912883 3 3 Author: Cloanta Alexandru 4 4 Name: Tcard Wordpress 5 Version: 1.7. 65 Version: 1.7.7 6 6 7 7 */ -
tcard-wp/trunk/front/css/tcard_color.css
r1912812 r1912883 3 3 Author: Cloanta Alexandru 4 4 Name: Tcard Wordpress 5 Version: 1.7. 65 Version: 1.7.7 6 6 7 7 */ -
tcard-wp/trunk/front/css/tcard_color.min.css
r1912812 r1912883 3 3 Author: Cloanta Alexandru 4 4 Name: Tcard Wordpress 5 Version: 1.7. 65 Version: 1.7.7 6 6 7 7 */ -
tcard-wp/trunk/front/js/tcard.js
r1912812 r1912883 3 3 Author: Cloanta Alexandru 4 4 Name: Tcard Wordpress 5 Version: 1.7. 65 Version: 1.7.7 6 6 7 7 */ -
tcard-wp/trunk/front/js/tcard.min.js
r1912812 r1912883 3 3 Author: Cloanta Alexandru 4 4 Name: Tcard Wordpress 5 Version: 1.7. 65 Version: 1.7.7 6 6 7 7 */ -
tcard-wp/trunk/inc/elements-class/TcardSettings.php
r1912812 r1912883 29 29 $output = unserialize($output[$skin]->settings); 30 30 } 31 }else{32 $output = "";33 31 } 34 32 -
tcard-wp/trunk/readme.txt
r1912813 r1912883 137 137 138 138 == Changelog == 139 Tcard v1.7.7 140 Change: 141 - File fixed: change TcardTables.php 142 - Bug fixed: unexpected output during activation. 143 139 144 Tcard v1.7.6 140 145 Change: -
tcard-wp/trunk/tcard.php
r1912812 r1912883 5 5 * Plugin URI: https://www.addudev.com/tcard 6 6 * Description: Tcard plugin create multiple type of cards: profile, contact, address, login, register etc. 7 * Version: 1.7. 67 * Version: 1.7.7 8 8 * Author: Cloanta Alexandru 9 9 * Author URI: https://www.addudev.com … … 39 39 $this->plugin_name = 'tcard'; 40 40 41 $this->version = '1.7. 6';41 $this->version = '1.7.7'; 42 42 43 43 $this->constants();
Note: See TracChangeset
for help on using the changeset viewer.