Changeset 324343
- Timestamp:
- 12/19/2010 06:09:41 PM (15 years ago)
- Location:
- ad-engine
- Files:
-
- 3 added
- 2 edited
-
tags/0.7 (added)
-
tags/0.7/ad-engine.php (added)
-
tags/0.7/readme.txt (added)
-
trunk/ad-engine.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ad-engine/trunk/ad-engine.php
r324319 r324343 302 302 , ($dimps) ? ($dclicks / $dimps * 100) : 0 303 303 , $tclicks 304 , ($ad['ad_shown']) ? ($ad['ad_clicks'] / $ad['ad_shown']* 100) : 0304 , ($timps) ? ($tclicks / $timps * 100) : 0 305 305 , site_url("?ae_get_csv=" . $ad['ad_id']) 306 306 , json_encode($ad) 307 /*, admin_url("admin.php?page=ad-engine-menu&action=ad_delete&id=" . $ad['ad_id'])*/308 307 ); 309 308 } … … 479 478 function ad_engine_init() { 480 479 global $wpdb; 480 if (!is_admin()) { 481 wp_enqueue_script('jquery'); 482 } 483 481 484 $jads = ad_engine_get_counts(); 482 485 … … 516 519 else if(isset($_GET['ae_ad_clicked'])) { 517 520 ad_update_count($_GET['ae_ad_clicked'], 2); 521 die(); 518 522 } 519 523 else if(isset($_GET['ae_get_data'])) { … … 722 726 $output .= sprintf("%s<ul class='ad'> 723 727 <li class='image'> 724 <a id='ad_engine_ad_%d' target='_blank' href='%s' onclick='jQuery.get(\"%s ?ae_ad_clicked=%s\")'>%s%s</a>728 <a id='ad_engine_ad_%d' target='_blank' href='%s' onclick='jQuery.get(\"%s/?ae_ad_clicked=%s\")'>%s%s</a> 725 729 </li> 726 730 </ul>" -
ad-engine/trunk/readme.txt
r324320 r324343 35 35 == Changelog == 36 36 37 = 0.7 = 38 * Added jQuery as a requirement 39 * Fixed bug in Total Click percentage 40 37 41 = 0.6 = 38 42 * Delete ad now asks for confirmation
Note: See TracChangeset
for help on using the changeset viewer.