Changeset 1568829
- Timestamp:
- 01/05/2017 06:00:21 PM (9 years ago)
- Location:
- oypie/trunk
- Files:
-
- 7 edited
-
oypie.php (modified) (3 diffs)
-
pages/album.php (modified) (24 diffs)
-
pages/help.php (modified) (4 diffs)
-
pages/preference.php (modified) (16 diffs)
-
pages/price.php (modified) (8 diffs)
-
readme.txt (modified) (2 diffs)
-
shortcode.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
oypie/trunk/oypie.php
r1545562 r1568829 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. 36 Version: 1.2.4 7 7 Author: SanderOnline Media / Sander Dijkstra 8 8 Author URI: http://sander-dijkstra.nl/ … … 89 89 wp_enqueue_style( 'oypie-tc', plugin_dir_url( __FILE__ ) . '/css/btn.css', false, '1.0.0' ); 90 90 wp_enqueue_style( 'oypie-admin', plugin_dir_url( __FILE__ ) . '/css/admin.css', false, '1.0.0' ); 91 } 91 } 92 92 93 93 … … 96 96 wp_enqueue_script('jquery'); 97 97 } 98 -
oypie/trunk/pages/album.php
r1545562 r1568829 1 <?php 1 <?php 2 2 wp_enqueue_script('wp-color-picker'); 3 3 wp_enqueue_style( 'wp-color-picker' ); 4 4 5 5 function color_standard($post, $stand){ 6 6 if($post == null){ … … 10 10 } 11 11 } 12 12 13 13 function oypie_checked($var, $stand, $normal){ 14 14 if($var == $stand){ … … 18 18 } 19 19 } 20 20 21 21 function oypie_style($var, $stand, $normal){ 22 22 if($var == $stand){ … … 41 41 $pref = isset($_POST['pref']) ? $_POST['pref'] : ''; 42 42 $output = isset($output) ? $output : ''; 43 43 44 44 if($_POST){ 45 45 46 46 /** 47 47 * SET TYPE AND ID … … 52 52 $output = '[oypo type="map" id="'.$map_id.'"'; 53 53 if($nonav == 1) { 54 $output = $output.' nonav="1"'; 54 $output = $output.' nonav="1"'; 55 55 } 56 56 }elseif($type == 'school'){ … … 59 59 $error = 'Type en/of ID is niet ingevuld.'; 60 60 } 61 61 62 62 /** 63 63 * WHITELABEL SENDING … … 66 66 $output = $output.' wl="'.$wl.'"'; 67 67 } 68 68 69 69 /** 70 70 * DESIGN SETTINGS … … 76 76 $output = $output.' css="'.$css.'"'; 77 77 } 78 78 79 79 if($trans == 1) { 80 80 $output = $output.' trans="1"'; 81 81 } 82 82 83 83 /** 84 84 * LANGUAGE 85 85 */ 86 86 87 87 if($lang){ 88 88 $output = $output.' lang="'.$lang.'"'; 89 89 } 90 90 91 91 /** 92 92 * PREFERENCES 93 93 */ 94 95 94 95 96 96 if($pref == 1) { 97 97 $output = $output.' pref="1"'; 98 98 } 99 99 100 100 /** 101 101 * AND WE'RE DONE 102 102 */ 103 103 104 104 $output = $output.']'; 105 105 } … … 108 108 $prefs = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'oypie_pref'"); 109 109 $prefs = explode('\/', $prefs); 110 ?> 110 ?> 111 111 <div id="fb-root"></div> 112 112 <script>(function(d, s, id) { … … 119 119 <div class="wrap"> 120 120 <h2>OYPie <span class="title-count theme-count"> 121 versie 1.2. 3</span></h2>121 versie 1.2.4</span></h2> 122 122 <div class="oypie-home"> 123 123 <div class="oypie-home-column-container"> … … 131 131 <div class="oypie-home-column"> 132 132 <h3>Wist je dat?</h3> 133 <p>Er is ook een shortcode generator verwerkt in de WYSISWYG-editor bij elke pagina en bericht. Zo kun je nog gemakkelijker een shortcode voor je fotoalbum maken. Je herkent hem aan: 133 <p>Er is ook een shortcode generator verwerkt in de WYSISWYG-editor bij elke pagina en bericht. Zo kun je nog gemakkelijker een shortcode voor je fotoalbum maken. Je herkent hem aan: 134 134 <span class="dashicons dashicons-camera"></span><small><span class="dashicons dashicons-arrow-down"></span></small></p> 135 135 <h3>Handige links</h3> … … 146 146 </div> 147 147 </div> 148 </div> 148 </div> 149 149 <div class="postbox"> 150 150 <div class="inside"> … … 157 157 <td style="width: 25%;"><input type="radio" name="type" id="opt1" value="user" <?php echo oypie_checked($type, 'user', true)?> /> Mappenoverzicht</td> 158 158 <td style="width: 25%;"><input type="radio" name="type" id="opt2" value="map" <?php echo oypie_checked($type, 'map', false)?>/> Specifieke fotomap</td> 159 <td style="width: 25%;"><input type="radio" name="type" id="opt3" value="school" <?php echo oypie_checked($type, 'school', false)?>/> Inlogkaartje</td> 159 <td style="width: 25%;"><input type="radio" name="type" id="opt3" value="school" <?php echo oypie_checked($type, 'school', false)?>/> Inlogkaartje</td> 160 160 </tr> 161 161 <tr id="user_id" style="display: <?php echo oypie_style($type, 'user', true)?>;"> … … 163 163 <td colspan="3"> 164 164 <input name="user_id" type="text" placeholder="Je OYPO-gebruikersnaam" value="<?php echo $user_id?>" /> 165 </td> 165 </td> 166 166 </tr> 167 167 <tr id="album_id" style="display: <?php echo oypie_style($type, 'map', false)?>;"> … … 169 169 <td colspan="3"> 170 170 <input name="map_id" type="text" placeholder="Je fotoalbum ID" value="<?php echo $map_id;?>" /> 171 </td> 171 </td> 172 172 </tr> 173 173 <tr id="nonav" style="display: <?php echo oypie_style($type, 'map', false)?>;"> … … 175 175 <td style="width: 25%;"><input type="radio" name="nonav" value="0" <?php echo oypie_checked($nonav, 0, true)?> /> Ja</td> 176 176 <td colspan="2" style="width: 25%;"><input type="radio" name="nonav" value="1" <?php echo oypie_checked($nonav, 1, false)?>/> Nee</td> 177 177 178 178 </tr> 179 179 <tr id="wl"> … … 191 191 <td style="width: 25%;"><input type="radio" name="style" value="stand" id="opt4" <?php echo oypie_checked($style, 'stand', true)?> /> Standaard opmaak</td> 192 192 <td style="width: 25%;"><input type="radio" name="style" value="colors" id="opt8" <?php echo oypie_checked($style, 'colors', false)?>/> Kleuren aanpassen</td> 193 <td style="width: 25%;"><input type="radio" name="style" value="css" id="opt5" <?php echo oypie_checked($style, 'css', false)?>/> Eigen CSS-bestand</td> 193 <td style="width: 25%;"><input type="radio" name="style" value="css" id="opt5" <?php echo oypie_checked($style, 'css', false)?>/> Eigen CSS-bestand</td> 194 194 </tr> 195 195 <tr id="css_true" style="display: <?php echo oypie_style($style, 'css', false)?>;"> … … 240 240 <option value="" <?php echo oypie_checked($lang, 'auto', false)?>>Automatisch</option> 241 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 242 243 243 </select> 244 244 <td><small>Selecteer de taal van het album.</small></td> … … 266 266 <?php } ?> 267 267 </div> 268 <script type='text/javascript'>//<![CDATA[ 268 <script type='text/javascript'>//<![CDATA[ 269 269 window.onload=function(){ 270 270 function user(one, two, three) { … … 283 283 document.getElementById(two).style.display = 'none'; 284 284 document.getElementById(three).style.display = 'none'; 285 } 285 } 286 286 287 287 function css(one, two, three, four, five, six, seven, eight) { … … 294 294 document.getElementById(seven).style.display = 'none'; 295 295 document.getElementById(eight).style.display = 'none'; 296 } 296 } 297 297 298 298 function colors(one, two, three, four, five, six, seven, eight) { … … 305 305 document.getElementById(seven).style.display = 'table-row'; 306 306 document.getElementById(eight).style.display = 'table-row'; 307 } 307 } 308 308 309 309 document.getElementById('opt1').addEventListener('click',function(e){ … … 336 336 }); 337 337 338 }//]]> 338 }//]]> 339 339 </script> 340 340 <script type="text/javascript"> 341 jQuery(document).ready(function($) { 341 jQuery(document).ready(function($) { 342 342 $('#colorpicker1').wpColorPicker(); 343 343 $('#colorpicker2').wpColorPicker(); … … 346 346 $('#colorpicker5').wpColorPicker(); 347 347 $('#colorpicker6').wpColorPicker(); 348 }); 348 }); 349 349 </script> 350 350 <?php 351 351 352 352 ?> -
oypie/trunk/pages/help.php
r1545562 r1568829 11 11 <div class="wrap"> 12 12 <h1>OYPie <span class="title-count theme-count"> 13 versie 1.2. 3</span></h2> </h1>13 versie 1.2.4</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. 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>48 <h3>Nieuw in versie 1.2.4</h3> 49 <p>De OYPO-gallerij is over op de nieuwe gallerij v1607. Ook zijn er kleine bugs gefixt. Kies de taal van je fotoalbum, of laat dit automatisch bepalen op basis van de gebruiker! Let op dat je voorkeursinstellingen deze wel overschrijven!</p> 50 50 </div> 51 51 </div> 52 <?php 52 <?php 53 53 wp_enqueue_script('wp-color-picker'); 54 54 wp_enqueue_style( 'wp-color-picker' ); 55 55 56 56 function color_standard($post, $stand){ 57 57 if($post == null){ … … 62 62 } 63 63 ?> 64 64 65 65 <script type="text/javascript"> 66 jQuery(document).ready(function($) { 66 jQuery(document).ready(function($) { 67 67 $('#colorpicker1').wpColorPicker(); 68 68 $('#colorpicker2').wpColorPicker(); … … 71 71 $('#colorpicker5').wpColorPicker(); 72 72 $('#colorpicker6').wpColorPicker(); 73 }); 73 }); 74 74 </script> 75 75 <?php 76 76 77 77 ?> 78 78 <div class="postbox"> -
oypie/trunk/pages/preference.php
r1545562 r1568829 1 <?php 1 <?php 2 2 wp_enqueue_script('wp-color-picker'); 3 3 wp_enqueue_style( 'wp-color-picker' ); 4 4 5 5 function color_standard($post, $stand){ 6 6 if($post == null){ … … 10 10 } 11 11 } 12 12 13 13 function oypie_checked($var, $stand, $normal){ 14 14 if($var == $stand){ … … 18 18 } 19 19 } 20 20 21 21 function oypie_style($var, $stand, $normal){ 22 22 if($var == $stand){ … … 38 38 $output = isset($output) ? $output : ''; 39 39 $notice = isset($notice) ? $notice : ''; 40 40 41 41 42 42 if($_POST){ 43 43 44 44 /** 45 45 * WHITELABEL SENDING … … 48 48 $output = $output.' wl="'.$wl.'"'; 49 49 } 50 50 51 51 /** 52 52 * DESIGN SETTINGS … … 59 59 $output = $output.' css="'.$css.'"'; 60 60 } 61 61 62 62 if($trans == 1) { 63 63 $output = $output.' trans="1"'; 64 64 } 65 65 66 66 /** 67 67 * LANGUAGE SETTINGS … … 70 70 $output = $output.' lang="'.$lang.'"'; 71 71 } 72 72 73 73 /** 74 74 * AND WE'RE DONE 75 75 */ 76 76 global $wpdb; 77 $result = $wpdb->replace( 78 $wpdb->options, 79 array( 80 'option_name' => 'oypie_pref', 77 $result = $wpdb->replace( 78 $wpdb->options, 79 array( 80 'option_name' => 'oypie_pref', 81 81 'option_value' => $output.'\/'.$colors.'\/'.$css.'\/'.$wl.'\/'.$trans.'\/'.$lang 82 ), 83 array( 84 '%s', 85 '%s' 86 ) 82 ), 83 array( 84 '%s', 85 '%s' 86 ) 87 87 ); 88 88 if ($result) { … … 106 106 <div class="wrap"> 107 107 <h2>OYPie <span class="title-count theme-count"> 108 versie 1.2. 3</span></h2>108 versie 1.2.4</span></h2> 109 109 <div class="oypie-home"> 110 110 <div class="oypie-home-column-container"> … … 130 130 </div> 131 131 </div> 132 </div> 132 </div> 133 133 <div class="postbox"> 134 134 <div class="inside"> … … 155 155 <td style="width: 25%;"><input type="radio" name="style" value="stand" id="opt4" <?php echo oypie_checked($style, 'stand', true)?> /> Standaard opmaak</td> 156 156 <td style="width: 25%;"><input type="radio" name="style" value="colors" id="opt8" <?php echo oypie_checked($style, 'colors', false)?>/> Kleuren aanpassen</td> 157 <td style="width: 25%;"><input type="radio" name="style" value="css" id="opt5" <?php echo oypie_checked($style, 'css', false)?>/> Eigen CSS-bestand</td> 157 <td style="width: 25%;"><input type="radio" name="style" value="css" id="opt5" <?php echo oypie_checked($style, 'css', false)?>/> Eigen CSS-bestand</td> 158 158 </tr> 159 159 <tr id="css_true" style="display: <?php echo oypie_style($style, 'css', false)?>;"> … … 204 204 <option value="auto" <?php echo oypie_checked($lang, 'auto', false)?>>Automatisch</option> 205 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 206 207 207 </select> 208 208 <td><small>Selecteer de taal van het album.</small></td> … … 226 226 <?php } ?> 227 227 </div> 228 <script type='text/javascript'>//<![CDATA[ 228 <script type='text/javascript'>//<![CDATA[ 229 229 window.onload=function(){ 230 230 … … 238 238 document.getElementById(seven).style.display = 'none'; 239 239 document.getElementById(eight).style.display = 'none'; 240 } 240 } 241 241 242 242 function colors(one, two, three, four, five, six, seven, eight) { … … 249 249 document.getElementById(seven).style.display = 'table-row'; 250 250 document.getElementById(eight).style.display = 'table-row'; 251 } 251 } 252 252 253 253 document.getElementById('opt4').addEventListener('click',function(e){ … … 270 270 }); 271 271 272 }//]]> 272 }//]]> 273 273 </script> 274 274 <script type="text/javascript"> 275 jQuery(document).ready(function($) { 275 jQuery(document).ready(function($) { 276 276 $('#colorpicker1').wpColorPicker(); 277 277 $('#colorpicker2').wpColorPicker(); … … 280 280 $('#colorpicker5').wpColorPicker(); 281 281 $('#colorpicker6').wpColorPicker(); 282 }); 282 }); 283 283 </script> 284 284 <?php 285 285 286 286 ?> -
oypie/trunk/pages/price.php
r1545562 r1568829 1 <?php 2 1 <?php 2 3 3 function oypie_checked($var, $stand, $normal){ 4 4 if($var == $stand){ … … 17 17 if($_POST){ 18 18 19 19 20 20 /** 21 21 * SET TYPE AND ID … … 30 30 $output = $output.' css="1"'; 31 31 } 32 32 33 33 /** 34 34 * AND WE'RE DONE 35 35 */ 36 36 37 37 $output = $output.']'; 38 38 } … … 45 45 js.src = "//connect.facebook.net/nl_NL/sdk.js#xfbml=1&version=v2.3&appId=511881472190380"; 46 46 fjs.parentNode.insertBefore(js, fjs); 47 }(document, 'script', 'facebook-jssdk'));</script> 47 }(document, 'script', 'facebook-jssdk'));</script> 48 48 <div class="wrap"> 49 49 <h2>OYPie <span class="title-count theme-count"> 50 versie 1.2. 3</span></h2>50 versie 1.2.4</span></h2> 51 51 <div class="oypie-home"> 52 52 <div class="oypie-home-column-container"> … … 60 60 <div class="oypie-home-column"> 61 61 <h3>Wist je dat?</h3> 62 <p>Er is ook een shortcode generator verwerkt in de WYSISWYG-editor bij elke pagina en bericht. Zo kun je nog gemakkelijker een shortcode voor je prijslijst maken. Je herkent hem aan: 62 <p>Er is ook een shortcode generator verwerkt in de WYSISWYG-editor bij elke pagina en bericht. Zo kun je nog gemakkelijker een shortcode voor je prijslijst maken. Je herkent hem aan: 63 63 <span class="dashicons dashicons-camera"></span><small><span class="dashicons dashicons-arrow-down"></span></small></p> 64 64 <h3>Handige links</h3> … … 75 75 </div> 76 76 </div> 77 </div> 77 </div> 78 78 <div class="postbox"> 79 79 <div class="inside"> … … 86 86 <td colspan="3"> 87 87 <input name="id" type="text" placeholder="Je verkoopprofiel-ID" value="<?php echo $id?>" /> 88 </td> 88 </td> 89 89 </tr> 90 90 <tr> 91 91 <td style="min-width: 150px;"><label>Type</label></td> 92 92 <td style="width: 25%;"><input type="radio" name="type" value="1" <?php echo oypie_checked($type, 1, true)?> /> Compact</td> 93 <td colspan="2" style="width: 25%;"><input type="radio" name="type" value="0" <?php echo oypie_checked($type, 0, false)?>/> Uitgebreid</td> 93 <td colspan="2" style="width: 25%;"><input type="radio" name="type" value="0" <?php echo oypie_checked($type, 0, false)?>/> Uitgebreid</td> 94 94 </tr> 95 95 <tr> … … 97 97 <td style="width: 25%;"><input type="radio" name="price" value="0" <?php echo oypie_checked($price, 0, true)?> /> Ja</td> 98 98 <td colspan="2" style="width: 25%;"><input type="radio" name="price" value="1" <?php echo oypie_checked($price, 1, false)?>/> Nee</td> 99 99 100 100 </tr> 101 101 <tr> -
oypie/trunk/readme.txt
r1545562 r1568829 35 35 36 36 = 1.2.3 = 37 * Disabled automatic language detection through bug 38 * Bugfix with window-height 39 40 = 1.2.3 = 37 41 * Added language to generator 38 42 * Automatic language detection … … 49 53 * Deleted Cart Widget 50 54 51 = 1.1.6 = 55 = 1.1.6 = 52 56 * Some securityfixes for administrators and more. 53 57 54 = 1.1.5 = 58 = 1.1.5 = 55 59 * Some securityfixes for multiuser WordPress platforms. 56 60 57 = 1.1.3 = 61 = 1.1.3 = 58 62 * Some few updates 59 63 60 = 1.1.2 = 64 = 1.1.2 = 61 65 * Preferences added, old shortcode generators have been updated. 62 66 63 = 1.1.1 = 67 = 1.1.1 = 64 68 * New shortcodegenerators which can be found in the TinyMCE editor also known as the WYSIWYG-editor. 65 69 * Updated help-page with more information and a colorsettings-generator 66 70 67 = 1.0.1 = 71 = 1.0.1 = 68 72 * Added cart widget 69 73 70 = 1.0.0 = 71 * Last bugfixes for release 74 = 1.0.0 = 75 * Last bugfixes for release 72 76 73 = 0.10 = 77 = 0.10 = 74 78 * Added new shortcode, shortcode generator and created a new menu. 75 79 76 = 0.9 = 80 = 0.9 = 77 81 * Bugfix for color function 78 82 79 = 0.8 = 83 = 0.8 = 80 84 * Added color function and bugfix for whitelabel store 81 85 82 = 0.7 = 86 = 0.7 = 83 87 * Bugfix for generator and added managable notices 84 88 85 = 0.6 = 89 = 0.6 = 86 90 * Bugfixes 87 91 88 = 0.3 = 92 = 0.3 = 89 93 * Bugfixes 90 94 91 = 0.1 = 95 = 0.1 = 92 96 * Released at 07 May 2014 93 97 * First version of OYPie. -
oypie/trunk/shortcode.php
r1545562 r1568829 5 5 */ 6 6 function oypo_output($atts) { 7 7 8 8 extract(shortcode_atts(array( 9 9 'type' => '', … … 17 17 'pref' => '' 18 18 ), $atts)); 19 20 19 20 21 21 if($pref == '1') { 22 22 // Load preferences … … 24 24 $preferences = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'oypie_pref'"); 25 25 $preferences = explode('\/', $preferences); 26 26 27 27 // Set preferences, this overrules the settings of the shortcode! 28 28 if($preferences[1] != NULL){ … … 41 41 $lang = $preferences[5]; 42 42 } 43 43 44 44 } 45 45 46 46 $identical = $id; 47 47 48 48 //Mapid or userid 49 49 if($type == 'map'){ … … 52 52 }elseif($type == 'user'){ 53 53 $out_id = "var userid='".$identical."'; 54 "; 54 "; 55 55 }elseif($type == 'school'){ 56 56 $out_id = ""; 57 57 } 58 58 59 59 //Transparcency 60 60 if($trans == 1) { … … 82 82 } 83 83 //Language 84 if($lang = "auto"){84 if($lang == "auto"){ 85 85 $lang_auto = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); 86 if($lang_auto == 'nl'){ 87 $lang = "nl"; 86 if($lang_auto == 'en'){ 87 $lang_a = "en"; 88 }elseif($lang_auto == 'nl'){ 89 $lang_a = "nl"; 88 90 }elseif($lang_auto == 'fr'){ 89 $lang = "en";91 $lang_a = "en"; 90 92 }elseif($lang_auto == 'de'){ 91 $lang = 'de';93 $lang_a = 'de'; 92 94 }else{ 93 $lang = 'en';95 $lang_a = 'en'; 94 96 } 95 $out_lang = "var taal='".$lang ."';97 $out_lang = "var taal='".$lang_a."'; 96 98 "; 97 }elseif($lang != ""){ 98 $out_lang = "var taal='".$lang."'; 99 "; 100 } 99 }elseif($lang == "en"){ 100 $out_lang = "var taal='en'; 101 "; 102 }elseif($lang == "de"){ 103 $out_lang = "var taal='de'; 104 "; 105 }elseif($lang == "fr"){ 106 $out_lang = "var taal='fr'; 107 "; 108 }elseif($lang == "nl"){ 109 $out_lang = "var taal='nl'; 110 "; 111 }else{ 112 $out_lang = "var taal='nl'; 113 "; 114 } 101 115 //Custom css link 102 116 if($css != NULL){ … … 109 123 if($colors != NULL){ 110 124 $colors = explode(' ', $colors); 111 125 112 126 $out_colors['1'] = "var kleur1='#".$colors[0]."'; 113 127 "; … … 122 136 $out_colors['6'] = "var kleur6='#".$colors[5]."'; 123 137 "; 124 138 125 139 }else{ 126 140 $out_colors['1'] = ""; … … 132 146 } 133 147 134 148 135 149 $output = " 136 <script type=\"text/javascript\">137 var mode='" .$type."';138 ".$out_id.$out_trans.$out_wl.$out_nav.$out_lang.$out_css.$out_colors['1'].$out_colors['2'].$out_colors['3'].$out_colors['3'].$out_colors['5'].$out_colors['6']."139 </script>140 <script type=\"text/javascript\" src=\"//www.oypo.nl/pixxer/api/templates/1207a.js\"></script>141 <div id=\"pixxer_iframe\"></div>";142 150 <script type=\"text/javascript\"> 151 var mode='" .$type."'; 152 ".$out_id.$out_trans.$out_wl.$out_nav.$out_lang.$out_css.$out_colors['1'].$out_colors['2'].$out_colors['3'].$out_colors['3'].$out_colors['5'].$out_colors['6']." 153 </script> 154 <script type=\"text/javascript\" src=\"//www.oypo.nl/pixxer/api/templates/1607/oypo.js\"></script> 155 <div id=\"pixxer_iframe\"></div>"; 156 143 157 return $output; 144 158 } 145 146 159 147 160 function oypo_price($atts) { … … 152 165 'css' => '' 153 166 ), $atts)); 154 167 155 168 if($css == 1) { 156 169 function css_price() { 157 170 wp_enqueue_style('price', plugins_url('/css/price.css', __FILE__)); 158 171 } 159 add_action( 'wp_enqueue_scripts', 'css_price' ); 172 add_action( 'wp_enqueue_scripts', 'css_price' ); 160 173 $output = "<script type=\"text/javascript\"> 161 174 var profileid='".$id."'; … … 165 178 <script type=\"text/javascript\" src=\"//www.oypo.nl/pixxer/api/templates/productinfo.js\"></script> 166 179 <div id=\"pixxer_products\"></div> 167 <link rel='stylesheet' href='".plugins_url()."/oypie/css/price.css' type='text/css' media='all' /> 180 <link rel='stylesheet' href='".plugins_url()."/oypie/css/price.css' type='text/css' media='all' /> 168 181 "; 169 182 170 183 }else{ 171 184 172 185 173 186 $output = " 174 187 <script type=\"text/javascript\"> … … 178 191 </script> 179 192 <script type=\"text/javascript\" src=\"//www.oypo.nl/pixxer/api/templates/productinfo.js\"></script> 180 <div id=\"pixxer_products\"></div> 181 "; 193 <div id=\"pixxer_products\"></div> 194 "; 182 195 } 183 196 return $output;
Note: See TracChangeset
for help on using the changeset viewer.