Changeset 827731
- Timestamp:
- 12/23/2013 10:38:49 PM (12 years ago)
- File:
-
- 1 edited
-
vtipne-reklamy/trunk/vtipne-reklamy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vtipne-reklamy/trunk/vtipne-reklamy.php
r824959 r827731 4 4 * Plugin URI: http://melanger.cz/aplikace/wordpress-pluginy/vtipne-reklamy/ 5 5 * Description: If you do not have advertisements to show on your website, try some funny ads! 6 * Version: 1. 16 * Version: 1.2 7 7 * Author: melangercz 8 8 * Author URI: http://melanger.cz/ … … 38 38 ?> 39 39 <div class="widget melanger_reklamy"> 40 <script type="text/javascript"> 41 jQuery(".melanger_reklamy").load("http://vtipy.melanger.cz/"); 42 </script> 40 <?php 41 $reklamy = array( 42 "160x600_letni-kurzy.png"=>array("http://www.letni-kurzy.cz/"), 43 "160x600_alternativni_zdroje_elektriny.png"=>array("http://melanger.cz/"), 44 "160x600_darujte-krev.png"=>array("http://melanger.cz/"), 45 "160x600_konvice.jpg"=>array("http://melanger.cz/"), 46 "160x600_mc-jezevcik.png"=>array("http://melanger.cz/"), 47 "160x600_obuv-do-tanecnich.png"=>array("http://melanger.cz/"), 48 "160x600_reklama-vira.png"=>array("http://melanger.cz/"), 49 "160x600_tretky.gif"=>array("http://tretky.cz/"), 50 "160x600_van-der-graaf.png"=>array("http://melanger.cz/"), 51 "160x600_ds-modrice.png"=>array("http://www.domov-senioru-brno.cz/") 52 ); 53 $img = array_rand($reklamy); 54 $reklama = $reklamy[$img]; 55 $file = 'img/'.$img; 56 echo "<a href='".esc_html($reklama[0])."'><img src='".esc_html(plugin_dir_url(__FILE__).$file)."' width=160 height=600 border=0></a>"; 57 ?> 43 58 </div> 44 59 <?php
Note: See TracChangeset
for help on using the changeset viewer.