Changeset 974538
- Timestamp:
- 08/28/2014 10:10:18 AM (11 years ago)
- Location:
- foodlist/trunk
- Files:
-
- 4 added
- 10 edited
-
lib/Artprima/View (added)
-
lib/Artprima/View/ViewInterface.php (added)
-
lib/Artprima/WordPress/API/Wrapper/Generic/CustomPost.php (modified) (4 diffs)
-
lib/Artprima/WordPress/API/Wrapper/Generic/Widget.php (added)
-
lib/Artprima/WordPress/Helper/Settings.php (modified) (1 diff)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Metabox/MenuItem/PriceMetabox.php (modified) (1 diff)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Metabox/MenuItem/TagsMetabox.php (modified) (1 diff)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/Internal/MenuItemThumbnailUrlShortcode.php (added)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/PrintMenuShortcode.php (modified) (1 diff)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuItemView.php (modified) (2 diffs)
-
lib/Foodlist/Project/WordPress/Plugin/Foodlist/Manager.php (modified) (3 diffs)
-
loader.php (modified) (2 diffs)
-
locale/foodlist-ru_RU.mo (modified) (previous)
-
plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
foodlist/trunk/lib/Artprima/WordPress/API/Wrapper/Generic/CustomPost.php
r792818 r974538 3 3 namespace Artprima\WordPress\API\Wrapper\Generic; 4 4 5 /** 6 * Class CustomPost 7 * 8 * @author Denis Voytyuk <[email protected]> 9 * 10 * @package Artprima\WordPress\API\Wrapper\Generic 11 */ 5 12 class CustomPost 6 13 { … … 48 55 * @param string $name 49 56 * @param mixed $value 50 * @return \Artprima\WordPress\API\Wrapper\ CustomPost57 * @return \Artprima\WordPress\API\Wrapper\Generic\CustomPost 51 58 */ 52 59 public function setArg($name, $value) … … 60 67 * 61 68 * @param array $args 62 * @return \Artprima\WordPress\API\Wrapper\ CustomPost69 * @return \Artprima\WordPress\API\Wrapper\Generic\CustomPost 63 70 */ 64 71 public function setArgs(array $args) … … 71 78 * Sets up wordpress init hook 72 79 * 73 * @return \Artprima\WordPress\API\Wrapper\ CustomPost80 * @return \Artprima\WordPress\API\Wrapper\Generic\CustomPost 74 81 */ 75 82 public function setupRegistrationHook() -
foodlist/trunk/lib/Artprima/WordPress/Helper/Settings.php
r792818 r974538 18 18 public static function getInstance($optionName) 19 19 { 20 if ( !self::$instances[$optionName]) {20 if (empty(self::$instances[$optionName])) { 21 21 self::$instances[$optionName] = new self($optionName); 22 22 } -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Metabox/MenuItem/PriceMetabox.php
r792818 r974538 86 86 // return; 87 87 //} 88 88 89 if (empty($_POST['post_type'])) { 90 return; 91 } 92 89 93 if ( $this->getScreen() != $_POST['post_type'] ) { 90 94 return; -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Admin/Metabox/MenuItem/TagsMetabox.php
r940771 r974538 81 81 // return; 82 82 //} 83 83 84 if (empty($_POST['post_type'])) { 85 return; 86 } 87 84 88 if ( $this->getScreen() != $_POST['post_type'] ) { 85 89 return; -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/Shortcode/PrintMenuShortcode.php
r792818 r974538 17 17 public function handle($attrs) 18 18 { 19 $link = ''; 19 20 //$this->controller->handleShortcode($attrs); 20 21 -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Generic/View/Menu/MenuItemView.php
r958328 r974538 22 22 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemTagsShortcode; 23 23 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemThumbnailShortcode; 24 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemThumbnailUrlShortcode; 24 25 use Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\MenuItemTitleShortcode; 25 26 use Foodlist\Project\WordPress\Plugin\Foodlist\Manager; … … 39 40 $sm->registerShortcode(new MenuItemTitleShortcode()); 40 41 $sm->registerShortcode(new MenuItemExcerptShortcode()); 41 $sm->registerShortcode(new CurrencySignShortcode); 42 $sm->registerShortcode(new MenuItemPriceShortcode); 43 $sm->registerShortcode(new MenuItemThumbnailShortcode); 44 42 $sm->registerShortcode(new CurrencySignShortcode()); 43 $sm->registerShortcode(new MenuItemPriceShortcode()); 44 $sm->registerShortcode(new MenuItemThumbnailShortcode()); 45 $sm->registerShortcode(new MenuItemThumbnailUrlShortcode()); 46 45 47 $sm->registerShortcode(new MenuItemTagsShortcode()); 46 48 $sm->registerShortcode(new MenuItemTagIconUrlShortcode()); -
foodlist/trunk/lib/Foodlist/Project/WordPress/Plugin/Foodlist/Manager.php
r792818 r974538 60 60 * Constructor 61 61 * 62 * Pr otectedto avoid multiple instances62 * Private to avoid multiple instances 63 63 */ 64 protected function __construct() 65 { 66 ; 67 } 64 protected function __construct() {} 68 65 69 66 /** … … 111 108 public function registerActivationHooks() 112 109 { 113 //$scm = new \Artprima\Text\ShortcodeManager(); 114 //$sc = new \Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\TestShortcode('tttt'); 115 //$scm->registerShortcode($sc); 116 //$sc = new \Foodlist\Project\WordPress\Plugin\Foodlist\Generic\Shortcode\Internal\XxxShortcode('xxx'); 117 //$scm->registerShortcode($sc); 118 /* 119 var_dump($scm->applyShortcodes(' 120 ASda fs dfasd234234 sdfasdf asdf [tttt] [xxx]sdfasdfasdfasdf[/xxx] [/tttt] 121 '));die(); 122 */ 123 124 125 register_activation_hook('foodlist/plugin.php', array(new Controller\ActivationController($this), 'init')); 126 register_deactivation_hook('foodlist/plugin.php', array(new Controller\DeactivationController($this), 'init')); 110 $activationController = new Controller\ActivationController($this); 111 $deactivationController = new Controller\DeactivationController($this); 112 113 register_activation_hook('foodlist/plugin.php', array($activationController, 'init')); 114 register_deactivation_hook('foodlist/plugin.php', array($deactivationController, 'init')); 115 116 //dev-mode hooks 117 if (class_exists('ActivationHooks', false)) { 118 add_action('wpapdev_activation', array($activationController, 'init')); 119 add_action('wpapdev_deactivation', array($deactivationController, 'init')); 120 } 127 121 } 128 122 … … 131 125 * 132 126 * @param string $url 133 * @param s rting $dir127 * @param string $dir 134 128 * 135 129 * @return Manager manager instance -
foodlist/trunk/loader.php
r792818 r974538 27 27 ); 28 28 } 29 $namespaces['Foodlist'] = array(29 $namespaces['Foodlist'] = array( 30 30 __DIR__.'/lib', 31 31 ); … … 42 42 $_loader->register(); 43 43 if (!class_exists('Artprima\Lib', false)) { 44 new Artprima\Lib; //44 new Artprima\Lib; // 45 45 } 46 46 -
foodlist/trunk/plugin.php
r958328 r974538 1 1 <?php 2 /**3 * @version $Id$4 * @package Foodlist5 * @copyright Copyright (C) 2013 Artprima / http://artprima.eu/. All rights reserved.6 */7 8 2 /* 9 3 Plugin Name: Foodlist … … 12 6 Author: Artprima 13 7 Author URI: http://artprima.eu/ 14 Version: 1. 68 Version: 1.8 15 9 */ 16 10 17 define('FOODLIST_VERSION', '1. 6');11 define('FOODLIST_VERSION', '1.8'); 18 12 define('FOODLIST_MIN_PHP_VERSION', '5.3.3'); 19 13 define('FOODLIST_MIN_WP_VERSION', '3.4.0');
Note: See TracChangeset
for help on using the changeset viewer.