Plugin Directory

Changeset 992160


Ignore:
Timestamp:
09/17/2014 07:27:39 PM (11 years ago)
Author:
Barakud
Message:

added de support

Location:
shopeat-button/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shopeat-button/trunk/readme.txt

    r683697 r992160  
    44Tags: shopping, groceries, food, list, recipes, recipe grocery list, grocery list, shopping list, recipe finder, recipe tags, recipe seo
    55Requires at least: 2.0.2
    6 Tested up to: 3.4.1
    7 Stable tag: 1.1
     6Tested up to: 3.4.2
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838= 1.1 =
    3939Excerpt bug fixed
     40
     41= 1.2 =
     42Added New language support for DE
  • shopeat-button/trunk/shopeat.php

    r683697 r992160  
    11<?php
    22/*
    3 Plugin Name: ShopEat - Recipe to Grocery list
    4 Plugin URI: http://go.shopeat.com/category/wordpress-plugin
    5 Description: This plugin allows you to implement ShopEat.com API button in any of your recipes.
    6 Version: 1.1
    7 Author: Valentine Stoianov
     3Plugin Name: ShopEat
     4Plugin URI: http://go.shopeat.com
     5Description: Recipes to shopping list
     6Version: 1.2
     7Author: Shopeat LTD
    88License: GPL2
    99*/
    10 
    11 /*  Copyright 2012  Valentine Stoianov  (email : [email protected])
    12 
    13     This program is free software; you can redistribute it and/or modify
    14     it under the terms of the GNU General Public License, version 2, as
    15     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 of
    19     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    20     GNU General Public License for more details.
    21 
    22     You should have received a copy of the GNU General Public License
    23     along with this program; if not, write to the Free Software
    24     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    25 */
    26 
    2710load_plugin_textdomain('shopeat_textdomain', false, basename( dirname( __FILE__ ) ) . '/languages' );
    2811
     
    178161            <td>
    179162                <select name="button_language">
    180                     <option value="he">עברית</option>
     163                    <option value="he">עברית</option>
    181164                    <option value="en"<?=($current_language=='en') ? ' SELECTED' : '';?>>English</option>
     165                    <option value="de"<?=($current_language=='de') ? ' SELECTED' : '';?>>German</option>
    182166                </select>
    183167            </td>
     
    291275            'he' => 'http://www.shopeat.co.il/api/api.js?pub_code=WDGT-122086423',
    292276            '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',
    293278        );
    294279        $current_language = get_option('button_language','he');
     
    318303}
    319304
    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 
    326305?>
Note: See TracChangeset for help on using the changeset viewer.