Changeset 930382
- Timestamp:
- 06/11/2014 01:34:14 PM (12 years ago)
- Location:
- allwebmenus-wordpress-menu-plugin/trunk
- Files:
-
- 4 edited
-
allwebmenus-wordpress-menu.php (modified) (4 diffs)
-
include.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
script.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
allwebmenus-wordpress-menu-plugin/trunk/allwebmenus-wordpress-menu.php
r902694 r930382 4 4 Plugin URI: http://www.likno.com/addins/wordpress-menu.html 5 5 Description: WordPress plugin for the AllWebMenus PRO Javascript Menu Maker - Create stylish drop-down menus or sliding menus for your blogs! 6 Version: 1.1.2 06 Version: 1.1.21 7 7 Author: Likno Software 8 8 Author URI: http://www.likno.com/ … … 68 68 $this->awm_table_name = $awm_table_name = $this->wpdb->prefix . "awm"; 69 69 $this->dataArray = $dataArray = array(); 70 $this->AWM_ver = $AWM_ver = '1.1.2 0';70 $this->AWM_ver = $AWM_ver = '1.1.21'; 71 71 72 72 $this->awm_total_tabs = $awm_total_tabs = get_option("AWM_total_menus",(int) 0); … … 98 98 if (!empty($this->databaseMessage)) 99 99 $this->databaseMessage = "<div class=\"updated fade\" style=\"margin-top: 20px;\"><strong>".$this->databaseMessage."</strong></div>"; 100 a dd_genre_column();101 a dd_revision_column();100 awm_add_genre_column(); 101 awm_add_revision_column(); 102 102 103 103 $this->awm_total_tabs = $awm_total_tabs; … … 284 284 <table id="uploader"> 285 285 286 <tr><td width="250"><strong>Browse for the "<span id='correct_filename'>awm<?php echo $myrows[get_option('AWM_selected_tab')]->name;?>.zip</span> </i>" file:</strong></td>286 <tr><td width="250"><strong>Browse for the "<span id='correct_filename'>awm<?php echo $myrows[get_option('AWM_selected_tab')]->name;?>.zip</span>" file:</strong></td> 287 287 <td> 288 288 <form method="post" enctype="multipart/form-data" id="theform1a" name="theform1a" action="<?php echo plugins_url('actions.php',__FILE__); ?>" > -
allwebmenus-wordpress-menu-plugin/trunk/include.php
r902699 r930382 19 19 } 20 20 if (substr_count($file,'AWM_generate_linking_code')==0) { 21 // genesis_markup case 22 if (substr_count($file,'genesis_markup')!=0) { 23 $file = str_replace("do_action( 'genesis_before' );", "if (function_exists('AWM_generate_linking_code'))AWM_generate_linking_code();\ndo_action( 'genesis_before' );", $file); 24 } 25 // generic case 26 else 27 { 21 28 preg_match ( "/<body([^\?>])*(<\?([^>])*\?>([^>\?])*)*>/", $file, $matches ); 22 29 if (count($matches)>0) { … … 24 31 if (count($pieces) == 2) { 25 32 $file =$pieces[0].$matches[0]."\n<?php if (function_exists('AWM_generate_linking_code'))AWM_generate_linking_code(); ?>".$pieces[1]; 33 } 34 } else { 35 if ($actualPerms < $wantedPerms) @chmod ( $file_path , $actualPerms ); 36 return false; 37 } 38 } 26 39 $fp = fopen($file_path, 'w'); 27 40 if (!$fp) { … … 34 47 return true; 35 48 } 36 } else {37 if ($actualPerms < $wantedPerms) @chmod ( $file_path , $actualPerms );38 return false;39 }40 }41 49 if ($actualPerms < $wantedPerms) @chmod ( $file_path , $actualPerms ); 42 50 return true; … … 236 244 } 237 245 238 function a dd_genre_column() {246 function awm_add_genre_column() { 239 247 global $awm_total_tabs, $awm_table_name, $wpdb; 240 248 if($wpdb->get_var("show columns from $awm_table_name LIKE 'menu_genre'")!= 'menu_genre'){ … … 245 253 } 246 254 247 function a dd_revision_column() {255 function awm_add_revision_column() { 248 256 global $awm_total_tabs, $awm_table_name, $wpdb; 249 257 if($wpdb->get_var("show columns from $awm_table_name LIKE 'menu_revisions'")!= 'menu_revisions'){ -
allwebmenus-wordpress-menu-plugin/trunk/readme.txt
r902696 r930382 5 5 Plugin URI: http://www.likno.com/addins/wordpress-menu.html 6 6 Tags: web menu, allwebmenus, drop down menu, javascript menu, dhtml menu, menu builder, navigation menu, css menu, ajax menu, responsive menu 7 Stable Tag: 1.1.2 07 Stable Tag: 1.1.21 8 8 Requires at least: 2.3 9 9 Tested up to: 3.9 10 10 11 11 12 Require dcommercial (paid) software: AllWebMenus PRO (v5.3.926)12 Requires commercial (paid) software: AllWebMenus PRO (v5.3.926) 13 13 14 14 … … 68 68 69 69 == Changelog == 70 = 1.1.21 (requires AllWebMenus Build #926 or above) = 71 * Supports the "Genesis Framework" (the menu is now linked to the posts/pages automatically, without any custom hook required). 70 72 = 1.1.20 (requires AllWebMenus Build #926 or above) = 71 73 * Improves the sessions usage on servers where certain permissions are not granted. -
allwebmenus-wordpress-menu-plugin/trunk/script.js
r902695 r930382 49 49 } else { 50 50 if (tmp=='') alert ("You have not selected the ZIP file yet. Please browse for it first."); 51 else alert("Wrong filename! The filename should be '"+document.getElementById('correct_filename').innerHTML+"' and it nowis '"+tmp+"'.");51 else alert("Wrong filename! The filename should be '"+document.getElementById('correct_filename').innerHTML+"' while now it is '"+tmp+"'."); 52 52 } 53 53 }
Note: See TracChangeset
for help on using the changeset viewer.