Plugin Directory

Changeset 958328


Ignore:
Timestamp:
07/31/2014 08:59:13 PM (11 years ago)
Author:
v-media
Message:

Version 1.6

Location:
foodlist/trunk
Files:
5 added
8 edited

Legend:

Unmodified
Added
Removed
  • foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuIdShortcode.php

    r792818 r958328  
    1717    public function apply($attrs, $content = null)
    1818    {
     19        /* @var MenuPost $curmenu */
    1920        $curmenu = Manager::getInstance()->get('curmenu');
    20         /* @var $curmenu MenuPost */
    2121        $postData = $curmenu->getPostData();
    2222        $id = $postData['id'];
  • foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuItemIdShortcode.php

    r792818 r958328  
    55use Artprima\Text\Shortcode;
    66use Artprima\Text\ShortcodeManager;
     7use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Post\MenuItemPost;
    78use Foodlist\Project\WordPress\Plugin\Foodlist\Manager;
    89
     
    1617    public function apply($attrs, $content = null)
    1718    {
     19        /** @var MenuItemPost $cur */
    1820        $cur = Manager::getInstance()->get('curitem');
    1921        $postData = $cur->getPostData();
  • foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuSectionTitleShortcode.php

    r792818 r958328  
    55use Artprima\Text\Shortcode;
    66use Artprima\Text\ShortcodeManager;
     7use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Post\MenuSectionPost;
    78use Foodlist\Project\WordPress\Plugin\Foodlist\Manager;
    89
     
    1617    public function apply($attrs, $content = null)
    1718    {
     19        /** @var MenuSectionPost $cur */
    1820        $cur = Manager::getInstance()->get('cursection');
    1921        $postData = $cur->getPostData();
  • foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuItemView.php

    r792818 r958328  
    1616use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemIdShortcode;
    1717use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemInstanceShortcode;
     18use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemPermalinkShortcode;
    1819use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemPriceShortcode;
    1920use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemTagDescriptionShortcode;
     
    3435            $sm = new ShortcodeManager();
    3536            $sm->registerShortcode(new MenuItemIdShortcode());
     37            $sm->registerShortcode(new MenuItemPermalinkShortcode());
    3638            $sm->registerShortcode(new MenuItemInstanceShortcode());
    3739            $sm->registerShortcode(new MenuItemTitleShortcode());
     
    4446            $sm->registerShortcode(new MenuItemTagIconUrlShortcode());
    4547            $sm->registerShortcode(new MenuItemTagDescriptionShortcode());
     48
     49            self::$sm = $sm;
    4650            do_action('foodlist_register_menu_shortcode', self::$sm);
    4751        }
    48         return $sm->applyShortcodes($content);
     52        return self::$sm->applyShortcodes($content);
    4953    }
    5054   
  • foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuSectionView.php

    r792818 r958328  
    88namespace Foodlist\Project\WordPress\Plugin\Foodlist\Generic\View\Menu;
    99
     10use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Post\MenuSectionPost;
    1011use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Post\MenuSectionPostFactory;
    1112use Artprima\WordPress\Helper\Settings as SettingsHelper;
     
    1617use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionIdShortcode;
    1718use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionInstanceShortcode;
     19use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionPermalinkShortcode;
    1820use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionTitleShortcode;
    1921use Foodlist\Project\WordPress\Plugin\Foodlist\Manager;
     
    2931            $sm = new ShortcodeManager();
    3032            $sm->registerShortcode(new MenuSectionIdShortcode());
     33            $sm->registerShortcode(new MenuSectionPermalinkShortcode());
    3134            $sm->registerShortcode(new MenuSectionInstanceShortcode());
    3235            $sm->registerShortcode(new MenuSectionTitleShortcode());
     
    3437            $sm->registerShortcode(new MenuItemsShortcode());
    3538            $sm->registerShortcode(new MenuItemShortcode());
     39            self::$sm = $sm;
    3640            do_action('foodlist_register_menu_shortcode', self::$sm);
    3741        }
    38         return $sm->applyShortcodes($content);
     42        return self::$sm->applyShortcodes($content);
    3943    }
    4044
    4145    public function getHtml()
    4246    {
     47        /** @var MenuSectionPost $menuSection */
    4348        $menuSection = MenuSectionPostFactory::getOne($this->getId());
    4449       
  • foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuView.php

    r792818 r958328  
    1313use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuExcerptShortcode;
    1414use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuIdShortcode;
     15use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuPermalinkShortcode;
    1516use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionShortcode;
    1617use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuSectionsShortcode;
     
    2829            $sm = new ShortcodeManager();
    2930            $sm->registerShortcode(new MenuIdShortcode());
     31            $sm->registerShortcode(new MenuPermalinkShortcode());
    3032            $sm->registerShortcode(new MenuTitleShortcode($args));
    3133            $sm->registerShortcode(new MenuTitleTextShortcode());
     
    3335            $sm->registerShortcode(new MenuSectionsShortcode());
    3436            $sm->registerShortcode(new MenuSectionShortcode());
     37            self::$sm = $sm;
    3538            do_action('foodlist_register_menu_shortcode', self::$sm);
    3639        }
    3740
    38         return $sm->applyShortcodes($content);
     41        return self::$sm->applyShortcodes($content);
    3942    }
    4043
  • foodlist/trunk/plugin.php

    r940771 r958328  
    1212Author: Artprima
    1313Author URI: http://artprima.eu/
    14 Version: 1.5
     14Version: 1.6
    1515*/
    1616
    17 define('FOODLIST_VERSION', '1.5');
     17define('FOODLIST_VERSION', '1.6');
    1818define('FOODLIST_MIN_PHP_VERSION', '5.3.3');
    1919define('FOODLIST_MIN_WP_VERSION', '3.4.0');
  • foodlist/trunk/readme.txt

    r940771 r958328  
    4747== ChangeLog ==
    4848
     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
    4954= Version 1.5 =
    5055
Note: See TracChangeset for help on using the changeset viewer.