Changeset 992160
- Timestamp:
- 09/17/2014 07:27:39 PM (11 years ago)
- Location:
- shopeat-button/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
shopeat.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shopeat-button/trunk/readme.txt
r683697 r992160 4 4 Tags: shopping, groceries, food, list, recipes, recipe grocery list, grocery list, shopping list, recipe finder, recipe tags, recipe seo 5 5 Requires at least: 2.0.2 6 Tested up to: 3.4. 17 Stable tag: 1. 16 Tested up to: 3.4.2 7 Stable tag: 1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 = 1.1 = 39 39 Excerpt bug fixed 40 41 = 1.2 = 42 Added New language support for DE -
shopeat-button/trunk/shopeat.php
r683697 r992160 1 1 <?php 2 2 /* 3 Plugin Name: ShopEat - Recipe to Grocery list4 Plugin URI: http://go.shopeat.com /category/wordpress-plugin5 Description: This plugin allows you to implement ShopEat.com API button in any of your recipes.6 Version: 1. 17 Author: Valentine Stoianov3 Plugin Name: ShopEat 4 Plugin URI: http://go.shopeat.com 5 Description: Recipes to shopping list 6 Version: 1.2 7 Author: Shopeat LTD 8 8 License: GPL2 9 9 */ 10 11 /* Copyright 2012 Valentine Stoianov (email : [email protected])12 13 This program is free software; you can redistribute it and/or modify14 it under the terms of the GNU General Public License, version 2, as15 published by the Free Software Foundation.16 17 This program is distributed in the hope that it will be useful,18 but WITHOUT ANY WARRANTY; without even the implied warranty of19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the20 GNU General Public License for more details.21 22 You should have received a copy of the GNU General Public License23 along with this program; if not, write to the Free Software24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA25 */26 27 10 load_plugin_textdomain('shopeat_textdomain', false, basename( dirname( __FILE__ ) ) . '/languages' ); 28 11 … … 178 161 <td> 179 162 <select name="button_language"> 180 <option value="he">עברית</option>163 <option value="he">עברית</option> 181 164 <option value="en"<?=($current_language=='en') ? ' SELECTED' : '';?>>English</option> 165 <option value="de"<?=($current_language=='de') ? ' SELECTED' : '';?>>German</option> 182 166 </select> 183 167 </td> … … 291 275 'he' => 'http://www.shopeat.co.il/api/api.js?pub_code=WDGT-122086423', 292 276 'en' => 'http://www.shopeat.com/api/api.js?pub_code=WDGT-122086423', 277 'de' => 'http://de.shopeat.com/api/api.js?pub_code=WDGT-122086423', 293 278 ); 294 279 $current_language = get_option('button_language','he'); … … 318 303 } 319 304 320 add_filter( 'get_the_excerpt', 'shopeat_excerpt_filter', 10 );321 322 function shopeat_excerpt_filter( $content ) {323 return str_replace(array('[shopeat_button]','[/shopeat_button]','[shopeat_ingredients]','[/shopeat_ingredients]'),'',$content);324 }325 326 305 ?>
Note: See TracChangeset
for help on using the changeset viewer.