Changeset 958328
- Timestamp:
- 07/31/2014 08:59:13 PM (11 years ago)
- Location:
- foodlist/trunk
- Files:
-
- 5 added
- 8 edited
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuIdShortcode.php (modified) (1 diff)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuItemIdShortcode.php (modified) (2 diffs)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuItemPermalinkShortcode.php (added)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuPermalinkShortcode.php (added)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuSectionPermalinkShortcode.php (added)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuSectionTitleShortcode.php (modified) (2 diffs)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuItemView.php (modified) (3 diffs)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuSectionView.php (modified) (4 diffs)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuView.php (modified) (3 diffs)
-
locale/foodlist-pl_PL.mo (added)
-
locale/foodlist-pl_PL.po (added)
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuIdShortcode.php
r792818 r958328 17 17 public function apply($attrs, $content = null) 18 18 { 19 /* @var MenuPost $curmenu */ 19 20 $curmenu = Manager::getInstance()->get('curmenu'); 20 /* @var $curmenu MenuPost */21 21 $postData = $curmenu->getPostData(); 22 22 $id = $postData['id']; -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuItemIdShortcode.php
r792818 r958328 5 5 use Artprima\Text\Shortcode; 6 6 use Artprima\Text\ShortcodeManager; 7 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Post\MenuItemPost; 7 8 use Foodlist\Project\WordPress\Plugin\Foodlist\Manager; 8 9 … … 16 17 public function apply($attrs, $content = null) 17 18 { 19 /** @var MenuItemPost $cur */ 18 20 $cur = Manager::getInstance()->get('curitem'); 19 21 $postData = $cur->getPostData(); -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuSectionTitleShortcode.php
r792818 r958328 5 5 use Artprima\Text\Shortcode; 6 6 use Artprima\Text\ShortcodeManager; 7 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Post\MenuSectionPost; 7 8 use Foodlist\Project\WordPress\Plugin\Foodlist\Manager; 8 9 … … 16 17 public function apply($attrs, $content = null) 17 18 { 19 /** @var MenuSectionPost $cur */ 18 20 $cur = Manager::getInstance()->get('cursection'); 19 21 $postData = $cur->getPostData(); -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuItemView.php
r792818 r958328 16 16 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemIdShortcode; 17 17 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemInstanceShortcode; 18 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemPermalinkShortcode; 18 19 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemPriceShortcode; 19 20 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemTagDescriptionShortcode; … … 34 35 $sm = new ShortcodeManager(); 35 36 $sm->registerShortcode(new MenuItemIdShortcode()); 37 $sm->registerShortcode(new MenuItemPermalinkShortcode()); 36 38 $sm->registerShortcode(new MenuItemInstanceShortcode()); 37 39 $sm->registerShortcode(new MenuItemTitleShortcode()); … … 44 46 $sm->registerShortcode(new MenuItemTagIconUrlShortcode()); 45 47 $sm->registerShortcode(new MenuItemTagDescriptionShortcode()); 48 49 self::$sm = $sm; 46 50 do_action('foodlist_register_menu_shortcode', self::$sm); 47 51 } 48 return $sm->applyShortcodes($content);52 return self::$sm->applyShortcodes($content); 49 53 } 50 54 -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuSectionView.php
r792818 r958328 8 8 namespace Foodlist\Project\WordPress\Plugin\Foodlist\Generic\View\Menu; 9 9 10 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Post\MenuSectionPost; 10 11 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Post\MenuSectionPostFactory; 11 12 use Artprima\WordPress\Helper\Settings as SettingsHelper; … … 16 17 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionIdShortcode; 17 18 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionInstanceShortcode; 19 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionPermalinkShortcode; 18 20 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionTitleShortcode; 19 21 use Foodlist\Project\WordPress\Plugin\Foodlist\Manager; … … 29 31 $sm = new ShortcodeManager(); 30 32 $sm->registerShortcode(new MenuSectionIdShortcode()); 33 $sm->registerShortcode(new MenuSectionPermalinkShortcode()); 31 34 $sm->registerShortcode(new MenuSectionInstanceShortcode()); 32 35 $sm->registerShortcode(new MenuSectionTitleShortcode()); … … 34 37 $sm->registerShortcode(new MenuItemsShortcode()); 35 38 $sm->registerShortcode(new MenuItemShortcode()); 39 self::$sm = $sm; 36 40 do_action('foodlist_register_menu_shortcode', self::$sm); 37 41 } 38 return $sm->applyShortcodes($content);42 return self::$sm->applyShortcodes($content); 39 43 } 40 44 41 45 public function getHtml() 42 46 { 47 /** @var MenuSectionPost $menuSection */ 43 48 $menuSection = MenuSectionPostFactory::getOne($this->getId()); 44 49 -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuView.php
r792818 r958328 13 13 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuExcerptShortcode; 14 14 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuIdShortcode; 15 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuPermalinkShortcode; 15 16 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionShortcode; 16 17 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionsShortcode; … … 28 29 $sm = new ShortcodeManager(); 29 30 $sm->registerShortcode(new MenuIdShortcode()); 31 $sm->registerShortcode(new MenuPermalinkShortcode()); 30 32 $sm->registerShortcode(new MenuTitleShortcode($args)); 31 33 $sm->registerShortcode(new MenuTitleTextShortcode()); … … 33 35 $sm->registerShortcode(new MenuSectionsShortcode()); 34 36 $sm->registerShortcode(new MenuSectionShortcode()); 37 self::$sm = $sm; 35 38 do_action('foodlist_register_menu_shortcode', self::$sm); 36 39 } 37 40 38 return $sm->applyShortcodes($content);41 return self::$sm->applyShortcodes($content); 39 42 } 40 43 -
foodlist/trunk/plugin.php
r940771 r958328 12 12 Author: Artprima 13 13 Author URI: http://artprima.eu/ 14 Version: 1. 514 Version: 1.6 15 15 */ 16 16 17 define('FOODLIST_VERSION', '1. 5');17 define('FOODLIST_VERSION', '1.6'); 18 18 define('FOODLIST_MIN_PHP_VERSION', '5.3.3'); 19 19 define('FOODLIST_MIN_WP_VERSION', '3.4.0'); -
foodlist/trunk/readme.txt
r940771 r958328 47 47 == ChangeLog == 48 48 49 = Version 1.6 = 50 51 * New shortcodes menu template shortcodes: menu_permalink, menu_section_permalink and menu_item_permalink (can be used in the corresponding templates) 52 * Polish language translation files (thanks to Paweł Krawczyk) 53 49 54 = Version 1.5 = 50 55
Note: See TracChangeset
for help on using the changeset viewer.