Changeset 940771
- Timestamp:
- 06/30/2014 08:32:56 AM (12 years ago)
- Location:
- foodlist/trunk
- Files:
-
- 6 edited
-
assets/js/menu-manager.js (modified) (3 diffs)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Menu/MenuManager.php (modified) (2 diffs)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Menu/SectionManager.php (modified) (2 diffs)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Metabox/MenuItem/TagsMetabox.php (modified) (2 diffs)
-
plugin.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
foodlist/trunk/assets/js/menu-manager.js
r792818 r940771 1 1 (function($) { 2 'use strict ;'2 'use strict'; 3 3 4 4 var context; 5 5 var flMenuManager = { 6 6 7 init : function() {8 var rem, sidebars = $('div.widgets-sortables'), isRTL = !! ( 'undefined' != typeof isRtl && isRtl ),9 margin = ( isRtl ? 'marginRight' : 'marginLeft' ), the_id;7 init : function() { 8 var rem, sidebars = $('div.widgets-sortables'), isRTL = !! ( 'undefined' != typeof isRtl && isRtl ), 9 margin = ( isRtl ? 'marginRight' : 'marginLeft' ), the_id; 10 10 11 11 context = $('#fl-manager-context').data('context'); 12 12 13 $('#widgets-right').children('.widgets-holder-wrap').children('.sidebar-name').click(function(){ 14 var c = $(this).siblings('.widgets-sortables'), p = $(this).parent(); 15 if ( !p.hasClass('closed') ) { 16 c.sortable('disable'); 17 p.addClass('closed'); 18 } else { 19 p.removeClass('closed'); 20 c.sortable('enable').sortable('refresh'); 21 } 22 }); 23 24 $('#widgets-left').children('.widgets-holder-wrap').children('.sidebar-name').click(function() { 25 $(this).parent().toggleClass('closed'); 26 }); 27 28 sidebars.each(function(){ 29 if ( $(this).parent().hasClass('inactive') ) 30 return true; 31 32 var h = 50, H = $(this).children('.widget').length; 33 h = h + parseInt(H * 48, 10); 34 $(this).css( 'minHeight', h + 'px' ); 35 }); 36 37 $(document.body).bind('click.widgets-toggle', function(e){ 38 var target = $(e.target), css = {}, widget, inside, w; 39 40 if ( target.parents('.widget-top').length && ! target.parents('#available-widgets').length ) { 41 widget = target.closest('div.widget'); 42 inside = widget.children('.widget-inside'); 43 w = parseInt( widget.find('input.widget-width').val(), 10 ); 44 45 if ( inside.is(':hidden') ) { 46 if ( w > 250 && inside.closest('div.widgets-sortables').length ) { 47 css['width'] = w + 30 + 'px'; 48 if ( inside.closest('div.widget-liquid-right').length ) 49 css[margin] = 235 - w + 'px'; 50 widget.css(css); 51 } 52 flMenuManager.fixLabels(widget); 53 inside.slideDown('fast'); 54 } else { 55 inside.slideUp('fast', function() { 56 widget.css({'width':'', margin:''}); 57 }); 58 } 59 e.preventDefault(); 60 } else if ( target.hasClass('widget-control-save') ) { 61 flMenuManager.save( target.closest('div.widget'), 0, 1, 0 ); 62 e.preventDefault(); 63 } else if ( target.hasClass('widget-control-remove') ) { 64 flMenuManager.save( target.closest('div.widget'), 1, 1, 0 ); 65 e.preventDefault(); 66 } else if ( target.hasClass('widget-control-close') ) { 67 flMenuManager.close( target.closest('div.widget') ); 68 e.preventDefault(); 69 } 70 }); 71 72 sidebars.children('.widget').each(function() { 73 flMenuManager.appendTitle(this); 74 if ( $('p.widget-error', this).length ) 75 $('a.widget-action', this).click(); 76 }); 77 78 $('#widget-list').children('.widget').draggable({ 79 connectToSortable: 'div.widgets-sortables', 80 handle: '> .widget-top > .widget-title', 81 distance: 2, 82 helper: 'clone', 83 zIndex: 100, 84 containment: 'document', 85 start: function(e,ui) { 86 ui.helper.find('div.widget-description').hide(); 87 the_id = this.id; 88 }, 89 stop: function(e,ui) { 90 if ( rem ) 91 $(rem).hide(); 92 93 rem = ''; 94 } 95 }); 96 97 sidebars.sortable({ 98 placeholder: 'widget-placeholder', 99 items: '> .widget', 100 handle: '> .widget-top > .widget-title', 101 cursor: 'move', 102 distance: 2, 103 containment: 'document', 104 start: function(e,ui) { 105 ui.item.children('.widget-inside').hide(); 106 ui.item.css({margin:'', 'width':''}); 107 //the_id = this.id; 108 }, 109 stop: function(e,ui) { 110 if ( ui.item.hasClass('ui-draggable') && ui.item.data('draggable') ) 111 ui.item.draggable('destroy'); 112 113 if ( ui.item.hasClass('deleting') ) { 114 flMenuManager.save( ui.item, 1, 0, 1 ); // delete widget 115 ui.item.remove(); 116 return; 117 } 118 119 var add = ui.item.find('input.add_new').val(), 120 n = ui.item.find('input.multi_number').val(), 121 id = the_id, 122 sb = $(this).attr('id'); 123 124 ui.item.css({margin:'', 'width':''}); 125 the_id = ''; 126 127 if ( add ) { 128 if ( 'multi' == add ) { 129 ui.item.html( ui.item.html().replace(/<[^<>]+>/g, function(m){ return m.replace(/__i__|%i%/g, n); }) ); 130 ui.item.attr( 'id', id.replace('__i__', n) ); 131 n++; 132 $('div#' + id).find('input.multi_number').val(n); 133 } else if ( 'single' == add ) { 134 ui.item.attr( 'id', 'new-' + id ); 135 rem = 'div#' + id; 136 } 137 flMenuManager.save( ui.item, 0, 0, 1 ); 138 ui.item.find('input.add_new').val(''); 139 ui.item.find('a.widget-action').click(); 140 return; 141 } 142 flMenuManager.saveOrder(sb); 143 }, 144 receive: function(e, ui) { 145 var sender = $(ui.sender); 146 147 if ( !$(this).is(':visible') || this.id.indexOf('orphaned_widgets') != -1 ) 148 sender.sortable('cancel'); 149 150 if ( sender.attr('id').indexOf('orphaned_widgets') != -1 && !sender.children('.widget').length ) { 151 sender.parents('.orphan-sidebar').slideUp(400, function(){ $(this).remove(); }); 152 } 153 } 154 }).sortable('option', 'connectWith', 'div.widgets-sortables').parent().filter('.closed').children('.widgets-sortables').sortable('disable'); 155 156 $('#available-widgets').droppable({ 157 tolerance: 'pointer', 158 accept: function(o){ 159 return $(o).parent().attr('id') != 'widget-list'; 160 }, 161 drop: function(e,ui) { 162 ui.draggable.addClass('deleting'); 163 $('#removing-widget').hide().children('span').html(''); 164 }, 165 over: function(e,ui) { 166 ui.draggable.addClass('deleting'); 167 $('div.widget-placeholder').hide(); 168 169 if ( ui.draggable.hasClass('ui-sortable-helper') ) 170 $('#removing-widget').show().children('span') 171 .html( ui.draggable.find('div.widget-title').children('h4').html() ); 172 }, 173 out: function(e,ui) { 174 ui.draggable.removeClass('deleting'); 175 $('div.widget-placeholder').show(); 176 $('#removing-widget').hide().children('span').html(''); 177 } 178 }); 179 }, 180 181 saveOrder : function(sb) { 182 if ( sb ) 183 $('#' + sb).closest('div.widgets-holder-wrap').find('.spinner').css('display', 'inline-block'); 184 185 var a = { 186 action: 'foodlist_'+context, 13 //$('#widgets-right').children('.widgets-holder-wrap').children('.sidebar-name').click(function(){ 14 $('#widgets-right .widgets-holder-wrap .sidebar-name').click(function(){ 15 var c = $(this).siblings('.widgets-sortables'), p = $(this).parent(); 16 if ( !p.hasClass('closed') ) { 17 c.sortable('disable'); 18 p.addClass('closed'); 19 } else { 20 p.removeClass('closed'); 21 c.sortable('enable').sortable('refresh'); 22 } 23 }); 24 25 $('#widgets-left').children('.widgets-holder-wrap').children('.sidebar-name').click(function() { 26 $(this).parent().toggleClass('closed'); 27 }); 28 29 sidebars.each(function(){ 30 if ( $(this).parent().hasClass('inactive') ) 31 return true; 32 33 //var h = 50, H = $(this).children('.widget').length; 34 //h = h + parseInt(H * 48, 10); 35 //$(this).css( 'minHeight', h + 'px' ); 36 }); 37 38 $(document.body).bind('click.widgets-toggle', function(e){ 39 var target = $(e.target), css = {}, widget, inside, w; 40 41 if ( target.parents('.widget-top').length && ! target.parents('#available-widgets').length ) { 42 widget = target.closest('div.widget'); 43 inside = widget.children('.widget-inside'); 44 /* 45 w = parseInt( widget.find('input.widget-width').val(), 10 ); 46 47 if ( inside.is(':hidden') ) { 48 if ( w > 250 && inside.closest('div.widgets-sortables').length ) { 49 css['width'] = w + 30 + 'px'; 50 if ( inside.closest('div.widget-liquid-right').length ) 51 css[margin] = 235 - w + 'px'; 52 widget.css(css); 53 } 54 flMenuManager.fixLabels(widget); 55 inside.slideDown('fast'); 56 } else { 57 inside.slideUp('fast', function() { 58 widget.css({'width':'', margin:''}); 59 }); 60 } 61 */ 62 e.preventDefault(); 63 } else if ( target.hasClass('widget-control-save') ) { 64 flMenuManager.save( target.closest('div.widget'), 0, 1, 0 ); 65 e.preventDefault(); 66 } else if ( target.hasClass('widget-control-remove') ) { 67 flMenuManager.save( target.closest('div.widget'), 1, 1, 0 ); 68 e.preventDefault(); 69 } else if ( target.hasClass('widget-control-close') ) { 70 flMenuManager.close( target.closest('div.widget') ); 71 e.preventDefault(); 72 } 73 }); 74 75 sidebars.children('.widget').each(function() { 76 flMenuManager.appendTitle(this); 77 if ( $('p.widget-error', this).length ) 78 $('a.widget-action', this).click(); 79 }); 80 81 $('#widget-list').children('.widget').draggable({ 82 connectToSortable: 'div.widgets-sortables', 83 handle: '> .widget-top > .widget-title', 84 distance: 2, 85 helper: 'clone', 86 zIndex: 100, 87 containment: 'document', 88 start: function(e,ui) { 89 ui.helper.find('div.widget-description').hide(); 90 the_id = this.id; 91 }, 92 stop: function(e,ui) { 93 if ( rem ) 94 $(rem).hide(); 95 96 rem = ''; 97 } 98 }); 99 100 sidebars.sortable({ 101 placeholder: 'widget-placeholder', 102 items: '> .widget', 103 handle: '> .widget-top > .widget-title', 104 cursor: 'move', 105 distance: 2, 106 containment: 'document', 107 start: function(e,ui) { 108 ui.item.children('.widget-inside').hide(); 109 ui.item.css({margin:'', 'width':''}); 110 //the_id = this.id; 111 }, 112 stop: function(e,ui) { 113 if ( ui.item.hasClass('ui-draggable') && ui.item.data('draggable') ) 114 ui.item.draggable('destroy'); 115 116 if ( ui.item.hasClass('deleting') ) { 117 flMenuManager.save( ui.item, 1, 0, 1 ); // delete widget 118 ui.item.remove(); 119 return; 120 } 121 122 var add = ui.item.find('input.add_new').val(), 123 n = ui.item.find('input.multi_number').val(), 124 id = the_id, 125 sb = $(this).attr('id'); 126 127 //ui.item.css({margin:'', 'width':''}); 128 ui.item.attr( 'style', '' ).removeClass('ui-draggable'); 129 the_id = ''; 130 131 if ( add ) { 132 if ( 'multi' == add ) { 133 ui.item.html( ui.item.html().replace(/<[^<>]+>/g, function(m){ return m.replace(/__i__|%i%/g, n); }) ); 134 ui.item.attr( 'id', id.replace('__i__', n) ); 135 n++; 136 $('div#' + id).find('input.multi_number').val(n); 137 } else if ( 'single' == add ) { 138 ui.item.attr( 'id', 'new-' + id ); 139 rem = 'div#' + id; 140 } 141 flMenuManager.save( ui.item, 0, 0, 1 ); 142 ui.item.find('input.add_new').val(''); 143 ui.item.find('a.widget-action').click(); 144 return; 145 } 146 flMenuManager.saveOrder(sb); 147 }, 148 receive: function(e, ui) { 149 var sender = $(ui.sender); 150 151 if ( !$(this).is(':visible') || this.id.indexOf('orphaned_widgets') != -1 ) 152 sender.sortable('cancel'); 153 154 if ( sender.attr('id').indexOf('orphaned_widgets') != -1 && !sender.children('.widget').length ) { 155 sender.parents('.orphan-sidebar').slideUp(400, function(){ $(this).remove(); }); 156 } 157 } 158 }).sortable('option', 'connectWith', 'div.widgets-sortables').parent().filter('.closed').children('.widgets-sortables').sortable('disable'); 159 160 $('#available-widgets').droppable({ 161 tolerance: 'pointer', 162 accept: function(o){ 163 return $(o).parent().attr('id') != 'widget-list'; 164 }, 165 drop: function(e,ui) { 166 ui.draggable.addClass('deleting'); 167 $('#removing-widget').hide().children('span').html(''); 168 }, 169 over: function(e,ui) { 170 ui.draggable.addClass('deleting'); 171 $('div.widget-placeholder').hide(); 172 173 if ( ui.draggable.hasClass('ui-sortable-helper') ) 174 $('#removing-widget').show().children('span') 175 .html( ui.draggable.find('div.widget-title').children('h4').html() ); 176 }, 177 out: function(e,ui) { 178 ui.draggable.removeClass('deleting'); 179 $('div.widget-placeholder').show(); 180 $('#removing-widget').hide().children('span').html(''); 181 } 182 }); 183 }, 184 185 saveOrder : function(sb) { 186 if ( sb ) 187 $('#' + sb).closest('div.widgets-holder-wrap').find('.spinner').css('display', 'inline-block'); 188 189 var a = { 190 action: 'foodlist_'+context, 187 191 method: 'SaveOrder', 188 192 args: { … … 190 194 items: {} 191 195 } 192 };193 194 $('div.widgets-sortables').each( function() {195 if ( $(this).sortable ) {196 //a['sidebars[' + $(this).attr('id') + ']'] = $(this).sortable('toArray').join(',');196 }; 197 198 $('div.widgets-sortables').each( function() { 199 if ( $(this).sortable ) { 200 //a['sidebars[' + $(this).attr('id') + ']'] = $(this).sortable('toArray').join(','); 197 201 a.args.items[$(this).data('item-id')] = $(this).sortable('toArray').join(','); 198 202 } 199 });200 201 $.post( ajaxurl, a, function() {202 $('.spinner').hide();203 });204 205 this.resize();206 },207 208 save : function(widget, del, animate, order) {209 var sb = widget.closest('div.widgets-sortables').data('item-id'),203 }); 204 205 $.post( ajaxurl, a, function() { 206 $('.spinner').hide(); 207 }); 208 209 this.resize(); 210 }, 211 212 save : function(widget, del, animate, order) { 213 var sb = widget.closest('div.widgets-sortables').data('item-id'), 210 214 data = widget.find('form').serialize(), 211 215 a; 212 widget = $(widget);213 $('.spinner', widget).show();214 215 a = {216 action: 'foodlist_'+context,216 widget = $(widget); 217 $('.spinner', widget).show(); 218 219 a = { 220 action: 'foodlist_'+context, 217 221 method: 'SaveList', 218 222 args: { … … 220 224 item: sb 221 225 } 222 };223 224 if (del) {225 a['args']['delete_widget'] = 1;226 }; 227 228 if (del) { 229 a['args']['delete_widget'] = 1; 226 230 } 227 231 228 data += '&' + $.param(a);229 230 $.post( ajaxurl, data, function(r){231 var id;232 233 if ( del ) {234 if ( !$('input.widget_number', widget).val() ) {235 id = $('input.widget-id', widget).val();236 $('#available-widgets').find('input.widget-id').each(function(){237 if ( $(this).val() == id )238 $(this).closest('div.widget').show();239 });240 }241 242 if ( animate ) {243 order = 0;244 widget.slideUp('fast', function(){245 $(this).remove();246 flMenuManager.saveOrder();247 });248 } else {249 widget.remove();250 flMenuManager.resize();251 }252 } else {253 $('.spinner').hide();254 if ( r && r.length > 2 ) {255 $('div.widget-content', widget).html(r);256 flMenuManager.appendTitle(widget);257 flMenuManager.fixLabels(widget);258 }259 }232 data += '&' + $.param(a); 233 234 $.post( ajaxurl, data, function(r){ 235 var id; 236 237 if ( del ) { 238 if ( !$('input.widget_number', widget).val() ) { 239 id = $('input.widget-id', widget).val(); 240 $('#available-widgets').find('input.widget-id').each(function(){ 241 //if ( $(this).val() == id ) 242 // $(this).closest('div.widget').show(); 243 }); 244 } 245 246 if ( animate ) { 247 order = 0; 248 widget.slideUp('fast', function(){ 249 $(this).remove(); 250 flMenuManager.saveOrder(); 251 }); 252 } else { 253 widget.remove(); 254 flMenuManager.resize(); 255 } 256 } else { 257 $('.spinner').hide(); 258 if ( r && r.length > 2 ) { 259 $('div.widget-content', widget).html(r); 260 flMenuManager.appendTitle(widget); 261 flMenuManager.fixLabels(widget); 262 } 263 } 260 264 261 if (order) { 262 flMenuManager.saveOrder(); 263 } 264 }); 265 }, 266 267 appendTitle : function(widget) { 268 var title = $('input[id*="-title"]', widget).val() || ''; 269 270 if ( title ) 271 title = ': ' + title.replace(/<[^<>]+>/g, '').replace(/</g, '<').replace(/>/g, '>'); 272 273 $(widget).children('.widget-top').children('.widget-title').children() 274 .children('.in-widget-title').html(title); 275 276 }, 277 278 resize : function() { 279 $('div.widgets-sortables').each(function(){ 280 if ( $(this).parent().hasClass('inactive') ) 281 return true; 282 283 var h = 50, H = $(this).children('.widget').length; 284 h = h + parseInt(H * 48, 10); 285 $(this).css( 'minHeight', h + 'px' ); 286 }); 287 }, 288 289 fixLabels : function(widget) { 290 widget.children('.widget-inside').find('label').each(function(){ 291 var f = $(this).attr('for'); 292 if ( f && f == $('input', this).attr('id') ) 293 $(this).removeAttr('for'); 294 }); 295 }, 296 297 close : function(widget) { 298 widget.children('.widget-inside').slideUp('fast', function(){ 299 widget.css({'width':'', margin:''}); 300 }); 301 } 265 if (order) { 266 flMenuManager.saveOrder(); 267 } 268 }); 269 }, 270 271 appendTitle : function(widget) { 272 var title = $('input[id*="-title"]', widget).val() || ''; 273 274 if ( title ) 275 title = ': ' + title.replace(/<[^<>]+>/g, '').replace(/</g, '<').replace(/>/g, '>'); 276 277 $(widget).children('.widget-top').children('.widget-title').children() 278 .children('.in-widget-title').html(title); 279 280 }, 281 282 resize : function() { 283 $('div.widgets-sortables').each(function(){ 284 if ( $(this).parent().hasClass('inactive') ) 285 return true; 286 287 //var h = 50, H = $(this).children('.widget').length; 288 //h = h + parseInt(H * 48, 10); 289 //$(this).css( 'minHeight', h + 'px' ); 290 }); 291 }, 292 293 fixLabels : function(widget) { 294 widget.children('.widget-inside').find('label').each(function(){ 295 var f = $(this).attr('for'); 296 if ( f && f == $('input', this).attr('id') ) 297 $(this).removeAttr('for'); 298 }); 299 }, 300 301 close : function(widget) { 302 widget.children('.widget-inside').slideUp('fast', function(){ 303 //widget.attr( 'style', '' ); 304 widget.css({'width':'', margin:''}); 305 }); 306 } 302 307 }; 303 308 -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Menu/MenuManager.php
r792818 r940771 127 127 128 128 if ($query->have_posts()) { 129 $i = 1; 130 $result1 = ''; 131 $result2 = ''; 129 132 while ($query->have_posts()) { 130 133 $query->the_post(); 131 $result .= ' 132 <div class="widgets-holder-wrap" id="widget-post-'.get_the_ID().'"> 134 $closed = $i > 1 ? ' closed' : ''; 135 $col = (++$i % 2)+1; 136 137 138 ${'result'.$col} .= ' 139 <div class="widgets-holder-wrap'.$closed.'" id="widget-post-'.get_the_ID().'"> 133 140 <div class="sidebar-name"> 134 141 <div class="sidebar-name-arrow"><br/></div> … … 143 150 </div> 144 151 '; 152 } 153 154 for ($j = 1; $j <= 2; $j++) { 155 $result .= '<div class="sidebars-column-'.$j.'">'; 156 $result .= ${'result'.$j}; 157 $result .= '</div>'; 145 158 } 146 159 } -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Menu/SectionManager.php
r938796 r940771 127 127 128 128 if ($query->have_posts()) { 129 $i = 1; 130 $result1 = ''; 131 $result2 = ''; 129 132 while ($query->have_posts()) { 130 133 $query->the_post(); 131 $result .= ' 132 <div class="widgets-holder-wrap" id="widget-post-'.get_the_ID().'"> 134 $closed = $i > 1 ? ' closed' : ''; 135 $col = (++$i % 2)+1; 136 137 ${'result'.$col} .= ' 138 <div class="widgets-holder-wrap'.$closed.'" id="widget-post-'.get_the_ID().'"> 133 139 <div class="sidebar-name"> 134 140 <div class="sidebar-name-arrow"><br/></div> … … 143 149 </div> 144 150 '; 151 } 152 153 for ($j = 1; $j <= 2; $j++) { 154 $result .= '<div class="sidebars-column-'.$j.'">'; 155 $result .= ${'result'.$j}; 156 $result .= '</div>'; 145 157 } 146 158 } -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Metabox/MenuItem/TagsMetabox.php
r792818 r940771 93 93 return; 94 94 } 95 95 96 96 $data = $_POST['fl_menu_item']['tags']; 97 97 98 98 if (!isset($data['nonce']) || !wp_verify_nonce($data['nonce'], 'tags_meta_box_nonce')) { 99 99 return; … … 104 104 } 105 105 106 if (isset($data['data'])) { 107 wp_set_post_terms($postId, $data['data'], 'fl-menu-tag'); 108 //var_dump($data['data']);die(); 109 //$menuItem = new MenuItem($postId); 110 //$menuItem->setPrice($data['default']); 111 } 106 wp_set_post_terms($postId, empty($data['data']) ? '' : $data['data'], 'fl-menu-tag'); 112 107 } 113 108 } -
foodlist/trunk/plugin.php
r938796 r940771 12 12 Author: Artprima 13 13 Author URI: http://artprima.eu/ 14 Version: 1. 414 Version: 1.5 15 15 */ 16 16 17 define('FOODLIST_VERSION', '1. 4');18 define('FOODLIST_MIN_PHP_VERSION', '5.3. 0');17 define('FOODLIST_VERSION', '1.5'); 18 define('FOODLIST_MIN_PHP_VERSION', '5.3.3'); 19 19 define('FOODLIST_MIN_WP_VERSION', '3.4.0'); 20 20 … … 23 23 function foodlist_lib_admin_notice_php() { 24 24 echo sprintf( 25 __('<div class="error"><p><strong>Food List plugin error</strong>: php version %1$s detected, while %2$s or later expected! This plugin will not work, please upgrade.</p></div>', 'foodlist'),25 __('<div class="error"><p><strong>Foodlist plugin error</strong>: php version %1$s detected, while %2$s or later expected! This plugin will not work, please upgrade.</p></div>', 'foodlist'), 26 26 PHP_VERSION, FOODLIST_MIN_PHP_VERSION); 27 27 } … … 29 29 add_action('admin_notices', 'foodlist_lib_admin_notice_wp'); 30 30 function foodlist_lib_admin_notice_wp() { 31 echo sprintf(__('<div class="error"><p><strong>Food List plugin error</strong>: WordPress version %1$s detected, while %2$s or later expected!</p></div>', 'foodlist'),31 echo sprintf(__('<div class="error"><p><strong>Foodlist plugin error</strong>: WordPress version %1$s detected, while %2$s or later expected!</p></div>', 'foodlist'), 32 32 get_bloginfo('version'), FOODLIST_MIN_WP_VERSION 33 33 ); -
foodlist/trunk/readme.txt
r938796 r940771 47 47 == ChangeLog == 48 48 49 = Version 1.5 = 50 51 * Fixed inability to minimize menus and sections in menu and section managers 52 * Fixed inability to remove tags from menu items 53 * Made the look of menu and section managers closer to WP 3.9 widget manager 54 49 55 = Version 1.4 = 50 56
Note: See TracChangeset
for help on using the changeset viewer.