Plugin Directory

Changeset 1568829


Ignore:
Timestamp:
01/05/2017 06:00:21 PM (9 years ago)
Author:
sanderonline
Message:

Small update to version 1.2.4

Location:
oypie/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • oypie/trunk/oypie.php

    r1545562 r1568829  
    44Plugin URI: http://sanderonlinemedia.nl/oypie;
    55Description: De plugin om je OYPO album in je WordPress in te laden!
    6 Version: 1.2.3
     6Version: 1.2.4
    77Author: SanderOnline Media / Sander Dijkstra
    88Author URI: http://sander-dijkstra.nl/
     
    8989        wp_enqueue_style( 'oypie-tc', plugin_dir_url( __FILE__ ) . '/css/btn.css', false, '1.0.0' );
    9090        wp_enqueue_style( 'oypie-admin', plugin_dir_url( __FILE__ ) . '/css/admin.css', false, '1.0.0' );
    91       } 
     91      }
    9292
    9393
     
    9696    wp_enqueue_script('jquery');
    9797}
    98 
  • oypie/trunk/pages/album.php

    r1545562 r1568829  
    1     <?php 
     1    <?php
    22    wp_enqueue_script('wp-color-picker');
    33    wp_enqueue_style( 'wp-color-picker' );
    4    
     4
    55    function color_standard($post, $stand){
    66        if($post == null){
     
    1010        }
    1111    }
    12    
     12
    1313    function oypie_checked($var, $stand, $normal){
    1414        if($var == $stand){
     
    1818        }
    1919    }
    20    
     20
    2121    function oypie_style($var, $stand, $normal){
    2222        if($var == $stand){
     
    4141    $pref = isset($_POST['pref']) ? $_POST['pref'] : '';
    4242    $output = isset($output) ? $output : '';
    43  
     43
    4444if($_POST){
    45    
     45
    4646    /**
    4747     * SET TYPE AND ID
     
    5252        $output = '[oypo type="map" id="'.$map_id.'"';
    5353        if($nonav == 1) {
    54             $output = $output.' nonav="1"'; 
     54            $output = $output.' nonav="1"';
    5555        }
    5656    }elseif($type == 'school'){
     
    5959        $error = 'Type en/of ID is niet ingevuld.';
    6060    }
    61    
     61
    6262    /**
    6363     * WHITELABEL SENDING
     
    6666        $output = $output.' wl="'.$wl.'"';
    6767    }
    68    
     68
    6969    /**
    7070     * DESIGN SETTINGS
     
    7676        $output = $output.' css="'.$css.'"';
    7777    }
    78    
     78
    7979    if($trans == 1) {
    8080        $output = $output.' trans="1"';
    8181    }
    82    
     82
    8383    /**
    8484     * LANGUAGE
    8585     */
    86    
     86
    8787    if($lang){
    8888        $output = $output.' lang="'.$lang.'"';
    8989    }
    90    
     90
    9191    /**
    9292     * PREFERENCES
    9393     */
    94    
    95    
     94
     95
    9696    if($pref == 1) {
    9797        $output = $output.' pref="1"';
    9898    }
    99    
     99
    100100    /**
    101101     * AND WE'RE DONE
    102102     */
    103      
     103
    104104     $output = $output.']';
    105105}
     
    108108$prefs = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'oypie_pref'");
    109109$prefs = explode('\/', $prefs);
    110 ?> 
     110?>
    111111        <div id="fb-root"></div>
    112112        <script>(function(d, s, id) {
     
    119119<div class="wrap">
    120120    <h2>OYPie <span class="title-count theme-count">
    121         versie 1.2.3</span></h2>
     121        versie 1.2.4</span></h2>
    122122    <div class="oypie-home">
    123123        <div class="oypie-home-column-container">
     
    131131            <div class="oypie-home-column">
    132132                <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:
    134134                <span class="dashicons dashicons-camera"></span><small><span class="dashicons dashicons-arrow-down"></span></small></p>
    135135                <h3>Handige links</h3>
     
    146146            </div>
    147147        </div>
    148     </div> 
     148    </div>
    149149    <div class="postbox">
    150150    <div class="inside">
     
    157157                <td style="width: 25%;"><input type="radio" name="type" id="opt1" value="user" <?php echo oypie_checked($type, 'user', true)?> /> Mappenoverzicht</td>
    158158                <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>
    160160            </tr>
    161161            <tr id="user_id" style="display: <?php echo oypie_style($type, 'user', true)?>;">
     
    163163                <td colspan="3">
    164164                    <input name="user_id" type="text" placeholder="Je OYPO-gebruikersnaam" value="<?php echo $user_id?>" />
    165                 </td>         
     165                </td>
    166166            </tr>
    167167            <tr id="album_id" style="display: <?php echo oypie_style($type, 'map', false)?>;">
     
    169169                <td colspan="3">
    170170                    <input name="map_id" type="text" placeholder="Je fotoalbum ID" value="<?php echo $map_id;?>" />
    171                 </td>         
     171                </td>
    172172            </tr>
    173173            <tr id="nonav" style="display: <?php echo oypie_style($type, 'map', false)?>;">
     
    175175                <td style="width: 25%;"><input type="radio" name="nonav" value="0" <?php echo oypie_checked($nonav, 0, true)?> /> Ja</td>
    176176                <td colspan="2" style="width: 25%;"><input type="radio" name="nonav" value="1" <?php echo oypie_checked($nonav, 1, false)?>/> Nee</td>
    177      
     177
    178178            </tr>
    179179            <tr id="wl">
     
    191191                <td style="width: 25%;"><input type="radio" name="style" value="stand" id="opt4" <?php echo oypie_checked($style, 'stand', true)?> /> Standaard opmaak</td>
    192192                <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>
    194194            </tr>
    195195            <tr id="css_true" style="display: <?php echo oypie_style($style, 'css', false)?>;">
     
    240240                   <option value="" <?php echo oypie_checked($lang, 'auto', false)?>>Automatisch</option>
    241241                    <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
    243243                </select>
    244244                <td><small>Selecteer de taal van het album.</small></td>
     
    266266    <?php } ?>
    267267</div>
    268 <script type='text/javascript'>//<![CDATA[ 
     268<script type='text/javascript'>//<![CDATA[
    269269window.onload=function(){
    270270function user(one, two, three) {
     
    283283    document.getElementById(two).style.display  = 'none';
    284284    document.getElementById(three).style.display  = 'none';
    285 } 
     285}
    286286
    287287function css(one, two, three, four, five, six, seven, eight) {
     
    294294    document.getElementById(seven).style.display = 'none';
    295295    document.getElementById(eight).style.display = 'none';
    296 } 
     296}
    297297
    298298function colors(one, two, three, four, five, six, seven, eight) {
     
    305305    document.getElementById(seven).style.display = 'table-row';
    306306    document.getElementById(eight).style.display = 'table-row';
    307 } 
     307}
    308308
    309309document.getElementById('opt1').addEventListener('click',function(e){
     
    336336});
    337337
    338 }//]]> 
     338}//]]>
    339339</script>
    340340    <script type="text/javascript">
    341     jQuery(document).ready(function($) {   
     341    jQuery(document).ready(function($) {
    342342        $('#colorpicker1').wpColorPicker();
    343343        $('#colorpicker2').wpColorPicker();
     
    346346        $('#colorpicker5').wpColorPicker();
    347347        $('#colorpicker6').wpColorPicker();
    348     });             
     348    });
    349349    </script>
    350350    <?php
    351    
     351
    352352    ?>
  • oypie/trunk/pages/help.php

    r1545562 r1568829  
    1111  <div class="wrap">
    1212    <h1>OYPie <span class="title-count theme-count">
    13         versie 1.2.3</span></h2>  </h1>
     13        versie 1.2.4</span></h2>  </h1>
    1414    <div class="oypie-home">
    1515        <div class="oypie-home-column-container">
     
    4646    <div class="postbox">
    4747        <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>
    5050        </div>
    5151    </div>
    52        <?php 
     52       <?php
    5353    wp_enqueue_script('wp-color-picker');
    5454    wp_enqueue_style( 'wp-color-picker' );
    55    
     55
    5656    function color_standard($post, $stand){
    5757        if($post == null){
     
    6262    }
    6363    ?>
    64    
     64
    6565    <script type="text/javascript">
    66     jQuery(document).ready(function($) {   
     66    jQuery(document).ready(function($) {
    6767        $('#colorpicker1').wpColorPicker();
    6868        $('#colorpicker2').wpColorPicker();
     
    7171        $('#colorpicker5').wpColorPicker();
    7272        $('#colorpicker6').wpColorPicker();
    73     });             
     73    });
    7474    </script>
    7575    <?php
    76    
     76
    7777    ?>
    7878    <div class="postbox">
  • oypie/trunk/pages/preference.php

    r1545562 r1568829  
    1     <?php 
     1    <?php
    22    wp_enqueue_script('wp-color-picker');
    33    wp_enqueue_style( 'wp-color-picker' );
    4    
     4
    55    function color_standard($post, $stand){
    66        if($post == null){
     
    1010        }
    1111    }
    12    
     12
    1313    function oypie_checked($var, $stand, $normal){
    1414        if($var == $stand){
     
    1818        }
    1919    }
    20    
     20
    2121    function oypie_style($var, $stand, $normal){
    2222        if($var == $stand){
     
    3838    $output = isset($output) ? $output : '';
    3939$notice = isset($notice) ? $notice : '';
    40  
     40
    4141
    4242if($_POST){
    43    
     43
    4444    /**
    4545     * WHITELABEL SENDING
     
    4848        $output = $output.' wl="'.$wl.'"';
    4949    }
    50    
     50
    5151    /**
    5252     * DESIGN SETTINGS
     
    5959        $output = $output.' css="'.$css.'"';
    6060    }
    61    
     61
    6262    if($trans == 1) {
    6363        $output = $output.' trans="1"';
    6464    }
    65    
     65
    6666    /**
    6767     * LANGUAGE SETTINGS
     
    7070        $output = $output.' lang="'.$lang.'"';
    7171    }
    72    
     72
    7373    /**
    7474     * AND WE'RE DONE
    7575     */
    7676global $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',
    8181        'option_value' => $output.'\/'.$colors.'\/'.$css.'\/'.$wl.'\/'.$trans.'\/'.$lang
    82     ), 
    83     array( 
    84         '%s', 
    85         '%s' 
    86     ) 
     82    ),
     83    array(
     84        '%s',
     85        '%s'
     86    )
    8787);
    8888if ($result) {
     
    106106<div class="wrap">
    107107    <h2>OYPie <span class="title-count theme-count">
    108         versie 1.2.3</span></h2>
     108        versie 1.2.4</span></h2>
    109109        <div class="oypie-home">
    110110        <div class="oypie-home-column-container">
     
    130130            </div>
    131131        </div>
    132     </div> 
     132    </div>
    133133    <div class="postbox">
    134134    <div class="inside">
     
    155155                <td style="width: 25%;"><input type="radio" name="style" value="stand" id="opt4" <?php echo oypie_checked($style, 'stand', true)?> /> Standaard opmaak</td>
    156156                <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>
    158158            </tr>
    159159            <tr id="css_true" style="display: <?php echo oypie_style($style, 'css', false)?>;">
     
    204204                   <option value="auto" <?php echo oypie_checked($lang, 'auto', false)?>>Automatisch</option>
    205205                    <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
    207207                </select>
    208208                <td><small>Selecteer de taal van het album.</small></td>
     
    226226    <?php } ?>
    227227</div>
    228 <script type='text/javascript'>//<![CDATA[ 
     228<script type='text/javascript'>//<![CDATA[
    229229window.onload=function(){
    230230
     
    238238    document.getElementById(seven).style.display = 'none';
    239239    document.getElementById(eight).style.display = 'none';
    240 } 
     240}
    241241
    242242function colors(one, two, three, four, five, six, seven, eight) {
     
    249249    document.getElementById(seven).style.display = 'table-row';
    250250    document.getElementById(eight).style.display = 'table-row';
    251 } 
     251}
    252252
    253253document.getElementById('opt4').addEventListener('click',function(e){
     
    270270});
    271271
    272 }//]]> 
     272}//]]>
    273273</script>
    274274    <script type="text/javascript">
    275     jQuery(document).ready(function($) {   
     275    jQuery(document).ready(function($) {
    276276        $('#colorpicker1').wpColorPicker();
    277277        $('#colorpicker2').wpColorPicker();
     
    280280        $('#colorpicker5').wpColorPicker();
    281281        $('#colorpicker6').wpColorPicker();
    282     });             
     282    });
    283283    </script>
    284284    <?php
    285    
     285
    286286    ?>
  • oypie/trunk/pages/price.php

    r1545562 r1568829  
    1     <?php 
    2    
     1    <?php
     2
    33    function oypie_checked($var, $stand, $normal){
    44        if($var == $stand){
     
    1717if($_POST){
    1818
    19    
     19
    2020    /**
    2121     * SET TYPE AND ID
     
    3030        $output = $output.' css="1"';
    3131    }
    32    
     32
    3333    /**
    3434     * AND WE'RE DONE
    3535     */
    36      
     36
    3737     $output = $output.']';
    3838}
     
    4545          js.src = "//connect.facebook.net/nl_NL/sdk.js#xfbml=1&version=v2.3&appId=511881472190380";
    4646          fjs.parentNode.insertBefore(js, fjs);
    47         }(document, 'script', 'facebook-jssdk'));</script> 
     47        }(document, 'script', 'facebook-jssdk'));</script>
    4848<div class="wrap">
    4949    <h2>OYPie <span class="title-count theme-count">
    50         versie 1.2.3</span></h2>
     50        versie 1.2.4</span></h2>
    5151    <div class="oypie-home">
    5252        <div class="oypie-home-column-container">
     
    6060            <div class="oypie-home-column">
    6161                <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:
    6363                <span class="dashicons dashicons-camera"></span><small><span class="dashicons dashicons-arrow-down"></span></small></p>
    6464                <h3>Handige links</h3>
     
    7575            </div>
    7676        </div>
    77     </div>     
     77    </div>
    7878    <div class="postbox">
    7979    <div class="inside">
     
    8686                <td colspan="3">
    8787                    <input name="id" type="text" placeholder="Je verkoopprofiel-ID" value="<?php echo $id?>" />
    88                 </td>         
     88                </td>
    8989            </tr>
    9090            <tr>
    9191                <td style="min-width: 150px;"><label>Type</label></td>
    9292                <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>
    9494            </tr>
    9595            <tr>
     
    9797                <td style="width: 25%;"><input type="radio" name="price" value="0" <?php echo oypie_checked($price, 0, true)?> /> Ja</td>
    9898                <td colspan="2" style="width: 25%;"><input type="radio" name="price" value="1" <?php echo oypie_checked($price, 1, false)?>/> Nee</td>
    99      
     99
    100100            </tr>
    101101            <tr>
  • oypie/trunk/readme.txt

    r1545562 r1568829  
    3535
    3636= 1.2.3 =
     37* Disabled automatic language detection through bug
     38* Bugfix with window-height
     39
     40= 1.2.3 =
    3741* Added language to generator
    3842* Automatic language detection
     
    4953* Deleted Cart Widget
    5054
    51 = 1.1.6 = 
     55= 1.1.6 =
    5256* Some securityfixes for administrators and more.
    5357
    54 = 1.1.5 = 
     58= 1.1.5 =
    5559* Some securityfixes for multiuser WordPress platforms.
    5660
    57 = 1.1.3 = 
     61= 1.1.3 =
    5862* Some few updates
    5963
    60 = 1.1.2 = 
     64= 1.1.2 =
    6165* Preferences added, old shortcode generators have been updated.
    6266
    63 = 1.1.1 = 
     67= 1.1.1 =
    6468* New shortcodegenerators which can be found in the TinyMCE editor also known as the WYSIWYG-editor.
    6569* Updated help-page with more information and a colorsettings-generator
    6670
    67 = 1.0.1 = 
     71= 1.0.1 =
    6872* Added cart widget
    6973
    70 = 1.0.0 = 
    71 * Last bugfixes for release 
     74= 1.0.0 =
     75* Last bugfixes for release
    7276
    73 = 0.10 = 
     77= 0.10 =
    7478* Added new shortcode, shortcode generator and created a new menu.
    7579
    76 = 0.9 = 
     80= 0.9 =
    7781* Bugfix for color function
    7882
    79 = 0.8 = 
     83= 0.8 =
    8084* Added color function and bugfix for whitelabel store
    8185
    82 = 0.7 = 
     86= 0.7 =
    8387* Bugfix for generator and added managable notices
    8488
    85 = 0.6 = 
     89= 0.6 =
    8690* Bugfixes
    8791
    88 = 0.3 = 
     92= 0.3 =
    8993* Bugfixes
    9094
    91 = 0.1 = 
     95= 0.1 =
    9296* Released at 07 May 2014
    9397* First version of OYPie.
  • oypie/trunk/shortcode.php

    r1545562 r1568829  
    55 */
    66function oypo_output($atts) {
    7    
     7
    88   extract(shortcode_atts(array(
    99      'type' => '',
     
    1717      'pref' => ''
    1818   ), $atts));
    19    
    20    
     19
     20
    2121   if($pref == '1') {
    2222    // Load preferences
     
    2424    $preferences = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'oypie_pref'");
    2525    $preferences = explode('\/', $preferences);
    26    
     26
    2727    // Set preferences, this overrules the settings of the shortcode!
    2828    if($preferences[1] != NULL){
     
    4141    $lang = $preferences[5];
    4242    }
    43        
     43
    4444   }
    4545
    4646   $identical = $id;
    47    
     47
    4848   //Mapid or userid
    4949   if($type == 'map'){
     
    5252   }elseif($type == 'user'){
    5353    $out_id = "var userid='".$identical."';
    54     ";   
     54    ";
    5555   }elseif($type == 'school'){
    5656    $out_id = "";
    5757   }
    58    
     58
    5959   //Transparcency
    6060   if($trans == 1) {
     
    8282   }
    8383   //Language
    84    if($lang ="auto"){
     84   if($lang == "auto"){
    8585       $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";
    8890       }elseif($lang_auto == 'fr'){
    89            $lang = "en";
     91           $lang_a = "en";
    9092       }elseif($lang_auto == 'de'){
    91            $lang = 'de';
     93           $lang_a = 'de';
    9294       }else{
    93            $lang = 'en';
     95           $lang_a = 'en';
    9496       }
    95        $out_lang = "var taal='".$lang."';
     97       $out_lang = "var taal='".$lang_a."';
    9698       ";
    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  }
    101115   //Custom css link
    102116   if($css != NULL){
     
    109123    if($colors != NULL){
    110124        $colors = explode(' ', $colors);
    111    
     125
    112126        $out_colors['1'] = "var kleur1='#".$colors[0]."';
    113127        ";
     
    122136        $out_colors['6'] = "var kleur6='#".$colors[5]."';
    123137        ";
    124        
     138
    125139    }else{
    126140        $out_colors['1'] = "";
     
    132146    }
    133147
    134    
     148
    135149$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
    143157        return $output;
    144158}
    145 
    146159
    147160function oypo_price($atts) {
     
    152165      'css' => ''
    153166   ), $atts));
    154    
     167
    155168   if($css == 1) {
    156169    function css_price() {
    157170   wp_enqueue_style('price', plugins_url('/css/price.css', __FILE__));
    158171   }
    159    add_action( 'wp_enqueue_scripts', 'css_price' );   
     172   add_action( 'wp_enqueue_scripts', 'css_price' );
    160173   $output = "<script type=\"text/javascript\">
    161174var profileid='".$id."';
     
    165178<script type=\"text/javascript\" src=\"//www.oypo.nl/pixxer/api/templates/productinfo.js\"></script>
    166179<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' />
    168181";
    169182
    170183}else{
    171184
    172    
     185
    173186   $output = "
    174187   <script type=\"text/javascript\">
     
    178191</script>
    179192<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";
    182195}
    183196   return $output;
Note: See TracChangeset for help on using the changeset viewer.