Changeset 1545562
- Timestamp:
- 12/05/2016 01:05:53 AM (9 years ago)
- Location:
- oypie/trunk
- Files:
-
- 7 edited
-
oypie.php (modified) (1 diff)
-
pages/album.php (modified) (2 diffs)
-
pages/help.php (modified) (2 diffs)
-
pages/preference.php (modified) (5 diffs)
-
pages/price.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
shortcode.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
oypie/trunk/oypie.php
r1494586 r1545562 4 4 Plugin URI: http://sanderonlinemedia.nl/oypie; 5 5 Description: De plugin om je OYPO album in je WordPress in te laden! 6 Version: 1.2. 26 Version: 1.2.3 7 7 Author: SanderOnline Media / Sander Dijkstra 8 8 Author URI: http://sander-dijkstra.nl/ -
oypie/trunk/pages/album.php
r1494531 r1545562 119 119 <div class="wrap"> 120 120 <h2>OYPie <span class="title-count theme-count"> 121 versie 1.2. 1</span></h2>121 versie 1.2.3</span></h2> 122 122 <div class="oypie-home"> 123 123 <div class="oypie-home-column-container"> … … 238 238 <td colspan="2"> 239 239 <select name="lang"> 240 <option value="" <?php echo oypie_checked($lang, '', false)?>>Nederlands</option> <option value="en" <?php echo oypie_checked($lang, 'en', false)?>>Engels</option> <option value="de" <?php echo oypie_checked($lang, 'de', false)?>>Duits</option> <option value="fr" <?php echo oypie_checked($lang, 'fr', false)?>>Frans</option> 240 <option value="" <?php echo oypie_checked($lang, 'auto', false)?>>Automatisch</option> 241 <option value="" <?php echo oypie_checked($lang, '', false)?>>Nederlands</option> <option value="en" <?php echo oypie_checked($lang, 'en', false)?>>Engels</option> <option value="de" <?php echo oypie_checked($lang, 'de', false)?>>Duits</option> <option value="fr" <?php echo oypie_checked($lang, 'fr', false)?>>Frans</option> 242 241 243 </select> 242 244 <td><small>Selecteer de taal van het album.</small></td> -
oypie/trunk/pages/help.php
r1451419 r1545562 11 11 <div class="wrap"> 12 12 <h1>OYPie <span class="title-count theme-count"> 13 versie 1.2. 1</span></h2> </h1>13 versie 1.2.3</span></h2> </h1> 14 14 <div class="oypie-home"> 15 15 <div class="oypie-home-column-container"> … … 46 46 <div class="postbox"> 47 47 <div class="inside"> 48 <h3>Nieuw in versie 1.2. 1</h3>49 <p>In deze nieuwe versie van OYPie heeft een nieuwe opmaak en de code is geupdate zodat deze weer langer mee kan. Zo is er meer informatie te vinden in de plugin en staat er een knop naar het OYPO Dashboard boven in de Adminbalk. </p>48 <h3>Nieuw in versie 1.2.3</h3> 49 <p>In deze nieuwe versie van OYPie is de ondersteuning van de talen. Kies de taal van je fotoalbum, of laat dit automatisch bepalen op basis van de gebruiker! Bekijk het in de album-generator, of in het voorkeursinstellingenscherm. </p> 50 50 </div> 51 51 </div> -
oypie/trunk/pages/preference.php
r1451419 r1545562 31 31 $wl_check = isset($_POST['wl_check']) ? $_POST['wl_check'] : ''; 32 32 $wl = isset($_POST['wl']) ? $_POST['wl'] : ''; 33 $colors = isset($_POST['colors']) ? $_POST['colors'] : ''; 33 34 $style = isset($_POST['style']) ? $_POST['style'] : ''; 34 35 $css = isset($_POST['css']) ? $_POST['css'] : ''; 35 36 $trans = isset($_POST['trans']) ? $_POST['trans'] : ''; 37 $lang = isset($_POST['lang']) ? $_POST['lang'] : ''; 36 38 $output = isset($output) ? $output : ''; 37 39 $notice = isset($notice) ? $notice : ''; … … 63 65 64 66 /** 67 * LANGUAGE SETTINGS 68 */ 69 if($lang){ 70 $output = $output.' lang="'.$lang.'"'; 71 } 72 73 /** 65 74 * AND WE'RE DONE 66 75 */ … … 70 79 array( 71 80 'option_name' => 'oypie_pref', 72 'option_value' => $output.'\/'.$colors.'\/'.$css.'\/'.$wl.'\/'.$trans 81 'option_value' => $output.'\/'.$colors.'\/'.$css.'\/'.$wl.'\/'.$trans.'\/'.$lang 73 82 ), 74 83 array( … … 97 106 <div class="wrap"> 98 107 <h2>OYPie <span class="title-count theme-count"> 99 versie 1.2. 1</span></h2>108 versie 1.2.3</span></h2> 100 109 <div class="oypie-home"> 101 110 <div class="oypie-home-column-container"> … … 189 198 <td colspan="2" style="width: 25%;"><input value="0" type="radio" name="trans" <?php echo oypie_checked($trans, 0, true)?> /> Nee</td> 190 199 </tr> 200 <tr> 201 <td><label>Taal</label></td> 202 <td colspan="2"> 203 <select name="lang"> 204 <option value="auto" <?php echo oypie_checked($lang, 'auto', false)?>>Automatisch</option> 205 <option value="nl" <?php echo oypie_checked($lang, '', false)?>>Nederlands</option> <option value="en" <?php echo oypie_checked($lang, 'en', false)?>>Engels</option> <option value="de" <?php echo oypie_checked($lang, 'de', false)?>>Duits</option> <option value="fr" <?php echo oypie_checked($lang, 'fr', false)?>>Frans</option> 206 207 </select> 208 <td><small>Selecteer de taal van het album.</small></td> 209 </tr> 191 210 <tr><td colspan="4"><input type="submit" name="submit" id="submit" class="button button-primary" value="Maak code" /></td></tr> 192 211 </table> -
oypie/trunk/pages/price.php
r1451419 r1545562 48 48 <div class="wrap"> 49 49 <h2>OYPie <span class="title-count theme-count"> 50 versie 1.2. 1</span></h2>50 versie 1.2.3</span></h2> 51 51 <div class="oypie-home"> 52 52 <div class="oypie-home-column-container"> -
oypie/trunk/readme.txt
r1494586 r1545562 33 33 34 34 == Changelog == 35 36 = 1.2.3 = 37 * Added language to generator 38 * Automatic language detection 35 39 36 40 = 1.2.2 = -
oypie/trunk/shortcode.php
r1494531 r1545562 37 37 if($preferences[4] != NULL){ 38 38 $trans = $preferences[4]; 39 } 40 if($preferences[5] != NULL){ 41 $lang = $preferences[5]; 39 42 } 40 43 … … 79 82 } 80 83 //Language 81 if($lang != ""){ 84 if($lang ="auto"){ 85 $lang_auto = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); 86 if($lang_auto == 'nl'){ 87 $lang = "nl"; 88 }elseif($lang_auto == 'fr'){ 89 $lang = "en"; 90 }elseif($lang_auto == 'de'){ 91 $lang = 'de'; 92 }else{ 93 $lang = 'en'; 94 } 95 $out_lang = "var taal='".$lang."'; 96 "; 97 }elseif($lang != ""){ 82 98 $out_lang = "var taal='".$lang."'; 83 99 ";
Note: See TracChangeset
for help on using the changeset viewer.