WP125 - Version 1.3.0

Version Description

Download this release

Release Info

Developer redwallhp
Plugin Icon wp plugin WP125
Version 1.3.0
Comparing to
See all releases

Code changes from version 1.2.2 to 1.3.0

adminmenus.php CHANGED
@@ -1,48 +1,52 @@
1
  <?php
2
 
 
 
 
 
3
  //Write Manage Menu
4
  function wp125_write_managemenu() {
5
  echo '<div class="wrap">
6
- <h2>Manage Ads</h2>';
7
 
8
  //Handle deactivations
9
  if ($_GET['wp125action'] == "deactivate") {
10
  $theid = $_GET['theid'];
11
- echo '<div id="message" class="updated fade"><p>Are you sure you want to deactivate the ad? <a href="admin.php?page=wp125/wp125.php&wp125action=deactivateconf&theid='.$theid.'">Yes</a> &nbsp; <a href="admin.php?page=wp125/wp125.php">No!</a></p></div>';
12
  }
13
  if ($_GET['wp125action'] == "deactivateconf") {
14
  $theid = $_GET['theid'];
15
  global $wpdb, $table_prefix;
16
  $adtable_name = $wpdb->prefix . "wp125_ads";
17
  $wpdb->query("UPDATE $adtable_name SET status = '0' WHERE id = '$theid'");
18
- echo '<div id="message" class="updated fade"><p>Ad deactivated.</p></div>';
19
  }
20
 
21
  //Handle REactivations
22
  if ($_GET['wp125action'] == "activate") {
23
  $theid = $_GET['theid'];
24
- echo '<div id="message" class="updated fade"><p>Are you sure you want to reactivate the ad? <a href="admin.php?page=wp125/wp125.php&showmanage=inactive&wp125action=activateconf&theid='.$theid.'">Yes</a> &nbsp; <a href="admin.php?page=wp125/wp125.php&showmanage=inactive">No!</a></p></div>';
25
  }
26
  if ($_GET['wp125action'] == "activateconf") {
27
  $theid = $_GET['theid'];
28
  global $wpdb, $table_prefix;
29
  $adtable_name = $wpdb->prefix . "wp125_ads";
30
  $wpdb->query("UPDATE $adtable_name SET status = '1' AND pre_exp_email='0' WHERE id = '$theid'");
31
- echo '<div id="message" class="updated fade"><p>Ad activated.</p></div>';
32
  }
33
 
34
  echo '<ul class="subsubsub">'; ?>
35
- <li><a href="admin.php?page=wp125/wp125.php" <?php if ($_GET['showmanage'] != 'inactive') { echo 'class="current"'; } ?>>Active Ads</a> | </li><li><a href="admin.php?page=wp125/wp125.php&showmanage=inactive" <?php if ($_GET['showmanage'] == 'inactive') { echo 'class="current"'; } ?>>Inactive Ads</a></li>
36
  <?php echo '</ul>
37
  <table class="widefat">
38
  <thead><tr>
39
- <th scope="col">Slot</th>
40
- <th scope="col">Name</th>
41
- <th scope="col" class="num">Clicks</th>
42
- <th scope="col">Start Date</th>
43
- <th scope="col">End Date</th>
44
  <th scope="col"></th>
45
- <th scope="col" style="text-align:right;"><a href="admin.php?page=wp125_addedit" class="button rbutton">Add New</a></th>
46
  </tr></thead>
47
  <tbody>';
48
 
@@ -59,22 +63,23 @@ foreach ($wp125db as $wp125db){
59
  echo '<tr>';
60
  echo '<td>'.$wp125db->slot.'</td>';
61
  echo '<td><strong>'.$wp125db->name.'</strong></td>';
62
- if ($wp125db->clicks!='-1') { echo '<td class="num">'.$wp125db->clicks.'</td>'; } else { echo '<td class="num">N/A</td>'; }
63
  echo '<td>'.$wp125db->start_date.'</td>';
64
  echo '<td>'.$wp125db->end_date.'</td>';
65
- echo '<td><a href="admin.php?page=wp125_addedit&editad='.$wp125db->id.'">Edit</a></td>';
66
  if ($_GET['showmanage'] == 'inactive') {
67
- echo '<td><a href="admin.php?page=wp125/wp125.php&showmanage=inactive&wp125action=activate&theid='.$wp125db->id.'">Activate</a></td>';
68
  } else {
69
- echo '<td><a href="admin.php?page=wp125/wp125.php&wp125action=deactivate&theid='.$wp125db->id.'">Deactivate</a></td>';
70
  }
71
  echo '</tr>';
72
 
73
  }
74
- } else { echo '<tr> <td colspan="8">No ads found.</td> </tr>'; }
75
 
76
  echo '</tbody>
77
  </table>';
 
78
  wp125_admin_page_footer();
79
  echo '</div>';
80
  }
@@ -127,22 +132,22 @@ echo '<div id="message" class="updated fade"><p>Ad &quot;'.$post_adname.'&quot;
127
  } else {
128
  $updatedb = "UPDATE $adtable_name SET slot = '$post_adslot', name = '$post_adname', end_date = '$theenddate', target = '$post_adtarget', image_url = '$post_adimage', pre_exp_email = '0' WHERE id='$post_editedad'";
129
  $results = $wpdb->query($updatedb);
130
- echo '<div id="message" class="updated fade"><p>Ad &quot;'.$post_adname.'&quot; updated.</p></div>';
131
  }
132
  }
133
  if ($_POST['deletead']) {
134
  $post_editedad = $wpdb->escape($_POST['editedad']);
135
- echo '<div id="message" class="updated fade"><p>Do you really want to delete this ad record? This action cannot be undone. <a href="admin.php?page=wp125_addedit&deletead='.$post_editedad.'">Yes</a> &nbsp; <a href="admin.php?page=wp125_addedit&editad='.$post_editedad.'">No!</a></p></div>';
136
  }
137
  if ($_GET['deletead']!='') {
138
  $thead=$_GET['deletead'];
139
  $updatedb = "DELETE FROM $adtable_name WHERE id='$thead'";
140
  $results = $wpdb->query($updatedb);
141
- echo '<div id="message" class="updated fade"><p>Ad deleted.</p></div>';
142
  }
143
  ?>
144
 
145
- <h2>Add/Edit Ads</h2>
146
 
147
  <form method="post" action="admin.php?page=wp125_addedit">
148
  <table class="form-table">
@@ -150,12 +155,12 @@ echo '<div id="message" class="updated fade"><p>Ad deleted.</p></div>';
150
  <?php if ($_GET['editad']!='') { echo '<input name="editedad" type="hidden" value="'.$_GET['editad'].'" />'; } ?>
151
 
152
  <tr valign="top">
153
- <th scope="row">Name</th>
154
- <td><input name="adname" type="text" id="adname" value="<?php echo $editingad->name; ?>" size="40" /><br/>Whose ad is this?</td>
155
  </tr>
156
 
157
  <tr valign="top">
158
- <th scope="row">Slot</th>
159
  <td><label for="adslot">
160
  <select name="adslot" id="adslot">
161
  <?php for ($count = 1; $count <= $setting_num_slots; $count += 1) { ?>
@@ -165,8 +170,8 @@ echo '<div id="message" class="updated fade"><p>Ad deleted.</p></div>';
165
  </td></tr>
166
 
167
  <tr valign="top">
168
- <th scope="row">Target URL</th>
169
- <td><input name="adtarget" type="text" id="adtarget" value="<?php if ($editingad->target!='') { echo $editingad->target; } else { echo 'http://'; } ?>" size="40" /><br/>Where should the ad link to?</td>
170
  </tr>
171
 
172
  <?php if ($_GET['editad']!='') {
@@ -179,17 +184,17 @@ $endyear = date('Y', $enddate);
179
  } else { $endmonth='00'; $endday='00'; $endyear='0000'; }
180
  } ?>
181
  <tr valign="top">
182
- <th scope="row">Expiration</th>
183
  <td><label for="adexp">
184
  <?php if ($_GET['editad']=='') { ?><select name="adexp" id="adexp" onChange="isOtherDate(this.value)">
185
- <option value="manual">I'll remove it manually</option>
186
- <option selected="selected" value="30">30 Days</option>
187
- <option value="60">60 Days</option>
188
- <option value="90">90 Days</option>
189
- <option value="120">120 Days</option>
190
- <option value="other">Other</option>
191
  </select><?php } ?></label>
192
- <span id="adexp-date">&nbsp;&nbsp; Month: <input type="text" name="adexp-mo" id="adexp-mo" size="2" value="<?php if ($endmonth!='') { echo $endmonth; } else { echo date('m'); } ?>" /> Day: <input type="text" name="adexp-day" id="adexp-day" size="2" value="<?php if ($endday!='') { echo $endday; } else { echo date('d'); } ?>" /> Year: <input type="text" name="adexp-yr" id="adexp-yr" size="4" value="<?php if ($endyear!='') { echo $endyear; } else { echo date('Y'); } ?>" /> <?php if ($_GET['editad']!='') { ?><br /> &nbsp;&nbsp; Use 00/00/0000 for manual removal.<?php } ?></span>
193
  </td></tr>
194
 
195
  <?php if ($_GET['editad']=='') { ?><script type="text/javascript">
@@ -205,18 +210,18 @@ document.getElementById("adexp-date").style.display = "none";
205
 
206
  <?php if ($_GET['editad']=='') { ?>
207
  <tr valign="top">
208
- <th scope="row">Click Tracking</th>
209
- <td><input type="checkbox" name="countclicks" checked="checked" /> Count the number of times this ad is clicked</td>
210
  </tr>
211
  <?php } ?>
212
 
213
  <tr valign="top">
214
- <th scope="row">Ad Image</th>
215
  <td><input name="adimage" type="text" id="adimage" value="<?php if ($editingad->image_url!='') { echo $editingad->image_url; } else { echo 'http://'; } ?>" size="40" /></td>
216
  </tr>
217
 
218
  </table>
219
- <p class="submit"><input type="submit" name="Submit" value="Save Ad" /> &nbsp; <?php if ($_GET['editad']!='') { ?><input type="submit" name="deletead" value="Delete Ad" /><?php } ?></p>
220
  </form>
221
  <?php wp125_admin_page_footer(); ?>
222
  </div><?php
@@ -259,80 +264,113 @@ $setting_emailonexp = get_option("wp125_emailonexp");
259
  $setting_defaultad = get_option("wp125_defaultad");
260
  $setting_daysbeforeexp = get_option("wp125_daysbeforeexp");
261
  ?><div class="wrap">
262
- <h2>Settings</h2>
263
  <form method="post" action="admin.php?page=wp125_settings">
264
  <table class="form-table">
265
 
266
  <tr valign="top">
267
- <th scope="row">Ad Orientation</th>
268
  <td><label for="adorient">
269
  <select name="adorient" id="adorient">
270
- <option <?php if ($setting_ad_orientation=='1c') { echo 'selected="selected"'; } ?> value="1c">One Column</option>
271
- <option <?php if ($setting_ad_orientation=='2c') { echo 'selected="selected"'; } ?> value="2c">Two Column</option>
272
  </select></label>
273
- <br/>How many columns should the ads be displayed in?
274
  </td></tr>
275
 
276
  <tr valign="top">
277
- <th scope="row">Number of Ad Slots</th>
278
- <td><input name="numads" type="text" id="numads" value="<?php echo $setting_num_slots; ?>" size="2" /><br/>How many ads should be shown?</td>
279
  </tr>
280
 
281
  <tr valign="top">
282
- <th scope="row">Ad Order</th>
283
  <td><label for="adorder">
284
  <select name="adorder" id="adorder">
285
- <option selected="selected" value="normal" <?php if ($setting_ad_order=='normal') { echo 'selected="selected"'; } ?>>Normal</option>
286
- <option value="random" <?php if ($setting_ad_order=='random') { echo 'selected="selected"'; } ?>>Random</option>
287
  </select></label>
288
  </td></tr>
289
 
290
  <tr valign="top">
291
- <th scope="row">Widget Title</th>
292
- <td><input name="widgettitle" type="text" id="widgettitle" value="<?php echo $setting_widget_title; ?>" size="50" /><br/>The title to be displayed in the widget. <em>(Leave blank to disable.)</em></td>
293
  </tr>
294
 
295
  <tr valign="top">
296
- <th scope="row">Ad Sales Page</th>
297
- <td><input name="salespage" type="text" id="salespage" value="<?php echo $setting_buyad_url; ?>" size="50" /><br/>Do you have a page with statistics and prices? <em>(Default Ads will link here.)</em></td>
298
  </tr>
299
 
300
  <tr valign="top">
301
- <th scope="row">Default Style</th>
302
- <td><input type="checkbox" name="defaultstyle" <?php if ($setting_disable_default_style=='') { echo 'checked="checked"'; } ?> /> Include default ad stylesheet? <br/>Leave checked unless you want to use your own CSS to style the ads. Refer to the documentation for further help.</td>
303
  </tr>
304
 
305
  <tr valign="top">
306
- <th scope="row">Expiration Email</th>
307
- <td><input name="emailonexp" type="text" id="emailonexp" value="<?php echo $setting_emailonexp; ?>" size="50" /><br/>Enter your email address if you would like to be emailed when an ad expires. <em>(Leave blank to disable.)</em></td>
308
  </tr>
309
 
310
  <tr valign="top">
311
- <th scope="row">Pre-Expiration Email</th>
312
- <td>Remind me <input name="daysbeforeexp" type="text" id="daysbeforeexp" value="<?php echo $setting_daysbeforeexp; ?>" size="2" /> days before an ad expires. <em>(Emails will be sent to the address specified above).</em></td>
313
  </tr>
314
 
315
  <tr valign="top">
316
- <th scope="row">Default Ad</th>
317
- <td><input name="defaultad" type="text" id="defaultad" value="<?php echo $setting_defaultad; ?>" size="50" /><br/>Which image should be shown as a placeholder when an ad slot is empty? (<a href="<?php echo wp125_get_plugin_dir('url').'/youradhere.jpg'; ?>">Default</a>)</td>
318
  </tr>
319
 
320
  </table>
321
  <input name="issubmitted" type="hidden" value="yes" />
322
- <p class="submit"><input type="submit" name="Submit" value="Save Changes" /></p>
323
  </form>
324
  <br/>
325
- <p>Your ads can be displayed using either the included widget, or by using the <strong>&lt;?php wp125_write_ads(); ?&gt;</strong> template tag. Also, you can display a single ad, without any formatting, using <strong>&lt;?php wp125_single_ad(<em>num</em>); ?&gt;</strong>, where <em>num</em> is the number of the ad slot you wish to show. This is useful for cases where your theme prevents the default formatting from working properly, or where you wish to display your ads in an unforeseen manner.</p>
326
  <?php wp125_admin_page_footer(); ?>
327
  </div><?php
328
  }
329
 
330
 
331
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
332
  function wp125_admin_page_footer() {
333
  echo '<div style="margin-top:45px; font-size:0.87em;">';
334
- echo '<div style="float:right;"><a href="http://www.webmaster-source.com/donate/" title="Why should you donate a few dollars? Click to find out..."><img src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" alt="Donate" /></a></div>';
335
- echo '<div><a href="'.wp125_get_plugin_dir('url').'/readme.txt">Documentation</a> | <a href="http://www.webmaster-source.com/wp125-ad-plugin-wordpress/">WP125 Homepage</a></div>';
336
  echo '</div>';
337
  }
338
 
1
  <?php
2
 
3
+ wp_enqueue_script('jquery');
4
+ wp_enqueue_script('thickbox');
5
+ wp_enqueue_style('thickbox');
6
+
7
  //Write Manage Menu
8
  function wp125_write_managemenu() {
9
  echo '<div class="wrap">
10
+ <h2>'.__('Manage Ads', 'wp125').'</h2>';
11
 
12
  //Handle deactivations
13
  if ($_GET['wp125action'] == "deactivate") {
14
  $theid = $_GET['theid'];
15
+ echo '<div id="message" class="updated fade"><p>'.__('Are you sure you want to deactivate the ad?', 'wp125').' <a href="admin.php?page=wp125/wp125.php&wp125action=deactivateconf&theid='.$theid.'">'.__('Yes', 'wp125').'</a> &nbsp; <a href="admin.php?page=wp125/wp125.php">'.__('No!', 'wp125').'</a></p></div>';
16
  }
17
  if ($_GET['wp125action'] == "deactivateconf") {
18
  $theid = $_GET['theid'];
19
  global $wpdb, $table_prefix;
20
  $adtable_name = $wpdb->prefix . "wp125_ads";
21
  $wpdb->query("UPDATE $adtable_name SET status = '0' WHERE id = '$theid'");
22
+ echo '<div id="message" class="updated fade"><p>'.__('Ad deactivated.', 'wp125').'</p></div>';
23
  }
24
 
25
  //Handle REactivations
26
  if ($_GET['wp125action'] == "activate") {
27
  $theid = $_GET['theid'];
28
+ echo '<div id="message" class="updated fade"><p>'.__('Are you sure you want to reactivate the ad?', 'wp125').' <a href="admin.php?page=wp125/wp125.php&showmanage=inactive&wp125action=activateconf&theid='.$theid.'">'.__('Yes', 'wp125').'</a> &nbsp; <a href="admin.php?page=wp125/wp125.php&showmanage=inactive">'.__('No!', 'wp125').'</a></p></div>';
29
  }
30
  if ($_GET['wp125action'] == "activateconf") {
31
  $theid = $_GET['theid'];
32
  global $wpdb, $table_prefix;
33
  $adtable_name = $wpdb->prefix . "wp125_ads";
34
  $wpdb->query("UPDATE $adtable_name SET status = '1' AND pre_exp_email='0' WHERE id = '$theid'");
35
+ echo '<div id="message" class="updated fade"><p>'.__('Ad activated.', 'wp125').'</p></div>';
36
  }
37
 
38
  echo '<ul class="subsubsub">'; ?>
39
+ <li><a href="admin.php?page=wp125/wp125.php" <?php if ($_GET['showmanage'] != 'inactive') { echo 'class="current"'; } ?>><?php _e('Active Ads', 'wp125'); ?></a> | </li><li><a href="admin.php?page=wp125/wp125.php&showmanage=inactive" <?php if ($_GET['showmanage'] == 'inactive') { echo 'class="current"'; } ?>><?php _e('Inactive Ads', 'wp125'); ?></a></li>
40
  <?php echo '</ul>
41
  <table class="widefat">
42
  <thead><tr>
43
+ <th scope="col">'.__('Slot', 'wp125').'</th>
44
+ <th scope="col">'.__('Name', 'wp125').'</th>
45
+ <th scope="col" class="num">'.__('Clicks', 'wp125').'</th>
46
+ <th scope="col">'.__('Start Date', 'wp125').'</th>
47
+ <th scope="col">'.__('End Date', 'wp125').'</th>
48
  <th scope="col"></th>
49
+ <th scope="col" style="text-align:right;"><a href="admin.php?page=wp125_addedit" class="button rbutton">'.__('Add New', 'wp125').'</a></th>
50
  </tr></thead>
51
  <tbody>';
52
 
63
  echo '<tr>';
64
  echo '<td>'.$wp125db->slot.'</td>';
65
  echo '<td><strong>'.$wp125db->name.'</strong></td>';
66
+ if ($wp125db->clicks!='-1') { echo '<td class="num">'.$wp125db->clicks.'</td>'; } else { echo '<td class="num">'.__('N/A', 'wp125').'</td>'; }
67
  echo '<td>'.$wp125db->start_date.'</td>';
68
  echo '<td>'.$wp125db->end_date.'</td>';
69
+ echo '<td><a href="admin.php?page=wp125_addedit&editad='.$wp125db->id.'">'.__('Edit', 'wp125').'</a></td>';
70
  if ($_GET['showmanage'] == 'inactive') {
71
+ echo '<td><a href="admin.php?page=wp125/wp125.php&showmanage=inactive&wp125action=activate&theid='.$wp125db->id.'">'.__('Activate', 'wp125').'</a></td>';
72
  } else {
73
+ echo '<td><a href="admin.php?page=wp125/wp125.php&wp125action=deactivate&theid='.$wp125db->id.'">'.__('Deactivate', 'wp125').'</a></td>';
74
  }
75
  echo '</tr>';
76
 
77
  }
78
+ } else { echo '<tr> <td colspan="8">'.__('No ads found.', 'wp125').'</td> </tr>'; }
79
 
80
  echo '</tbody>
81
  </table>';
82
+ echo '<br /><a href="'.wp125_get_plugin_dir('url').'/calendar.php" title="Subscribe with your calendaring software..."><img src="'.wp125_get_plugin_dir('url').'/ical.gif" alt="iCalendar" /></a>';
83
  wp125_admin_page_footer();
84
  echo '</div>';
85
  }
132
  } else {
133
  $updatedb = "UPDATE $adtable_name SET slot = '$post_adslot', name = '$post_adname', end_date = '$theenddate', target = '$post_adtarget', image_url = '$post_adimage', pre_exp_email = '0' WHERE id='$post_editedad'";
134
  $results = $wpdb->query($updatedb);
135
+ echo '<div id="message" class="updated fade"><p>'.__('Ad', 'wp125').' &quot;'.$post_adname.'&quot; '.__('updated.', 'wp125').'</p></div>';
136
  }
137
  }
138
  if ($_POST['deletead']) {
139
  $post_editedad = $wpdb->escape($_POST['editedad']);
140
+ echo '<div id="message" class="updated fade"><p>'.__('Do you really want to delete this ad record? This action cannot be undone.', 'wp125').' <a href="admin.php?page=wp125_addedit&deletead='.$post_editedad.'">'.__('Yes', 'wp125').'</a> &nbsp; <a href="admin.php?page=wp125_addedit&editad='.$post_editedad.'">'.__('No!', 'wp125').'</a></p></div>';
141
  }
142
  if ($_GET['deletead']!='') {
143
  $thead=$_GET['deletead'];
144
  $updatedb = "DELETE FROM $adtable_name WHERE id='$thead'";
145
  $results = $wpdb->query($updatedb);
146
+ echo '<div id="message" class="updated fade"><p>'.__('Ad deleted.', 'wp125').'</p></div>';
147
  }
148
  ?>
149
 
150
+ <h2><?php _e('Add/Edit Ads', 'wp125'); ?></h2>
151
 
152
  <form method="post" action="admin.php?page=wp125_addedit">
153
  <table class="form-table">
155
  <?php if ($_GET['editad']!='') { echo '<input name="editedad" type="hidden" value="'.$_GET['editad'].'" />'; } ?>
156
 
157
  <tr valign="top">
158
+ <th scope="row"><?php _e('Name', 'wp125'); ?></th>
159
+ <td><input name="adname" type="text" id="adname" value="<?php echo $editingad->name; ?>" size="40" /><br/><?php _e('Whose ad is this?', 'wp125'); ?></td>
160
  </tr>
161
 
162
  <tr valign="top">
163
+ <th scope="row"><?php _e('Slot', 'wp125'); ?></th>
164
  <td><label for="adslot">
165
  <select name="adslot" id="adslot">
166
  <?php for ($count = 1; $count <= $setting_num_slots; $count += 1) { ?>
170
  </td></tr>
171
 
172
  <tr valign="top">
173
+ <th scope="row"><?php _e('Target URL', 'wp125'); ?></th>
174
+ <td><input name="adtarget" type="text" id="adtarget" value="<?php if ($editingad->target!='') { echo $editingad->target; } else { echo 'http://'; } ?>" size="40" /><br/><?php _e('Where should the ad link to?', 'wp125'); ?></td>
175
  </tr>
176
 
177
  <?php if ($_GET['editad']!='') {
184
  } else { $endmonth='00'; $endday='00'; $endyear='0000'; }
185
  } ?>
186
  <tr valign="top">
187
+ <th scope="row"><?php _e('Expiration', 'wp125'); ?></th>
188
  <td><label for="adexp">
189
  <?php if ($_GET['editad']=='') { ?><select name="adexp" id="adexp" onChange="isOtherDate(this.value)">
190
+ <option value="manual"><?php _e("I'll remove it manually", 'wp125'); ?></option>
191
+ <option selected="selected" value="30">30 <?php _e('Days', 'wp125'); ?></option>
192
+ <option value="60">60 <?php _e('Days', 'wp125'); ?></option>
193
+ <option value="90">90 <?php _e('Days', 'wp125'); ?></option>
194
+ <option value="120">120 <?php _e('Days', 'wp125'); ?></option>
195
+ <option value="other"><?php _e('Other', 'wp125'); ?></option>
196
  </select><?php } ?></label>
197
+ <span id="adexp-date">&nbsp;&nbsp; <?php _e('Month:', 'wp125'); ?> <input type="text" name="adexp-mo" id="adexp-mo" size="2" value="<?php if ($endmonth!='') { echo $endmonth; } else { echo date('m'); } ?>" /> <?php _e('Day:', 'wp125'); ?> <input type="text" name="adexp-day" id="adexp-day" size="2" value="<?php if ($endday!='') { echo $endday; } else { echo date('d'); } ?>" /> <?php _e('Year:', 'wp125'); ?> <input type="text" name="adexp-yr" id="adexp-yr" size="4" value="<?php if ($endyear!='') { echo $endyear; } else { echo date('Y'); } ?>" /> <?php if ($_GET['editad']!='') { ?><br /> &nbsp;&nbsp; <?php _e('Use 00/00/0000 for manual removal.', 'wp125'); ?><?php } ?></span>
198
  </td></tr>
199
 
200
  <?php if ($_GET['editad']=='') { ?><script type="text/javascript">
210
 
211
  <?php if ($_GET['editad']=='') { ?>
212
  <tr valign="top">
213
+ <th scope="row"><?php _e('Click Tracking', 'wp125'); ?></th>
214
+ <td><input type="checkbox" name="countclicks" checked="checked" /> <?php _e('Count the number of times this ad is clicked', 'wp125'); ?></td>
215
  </tr>
216
  <?php } ?>
217
 
218
  <tr valign="top">
219
+ <th scope="row"><?php _e('Ad Image', 'wp125'); ?></th>
220
  <td><input name="adimage" type="text" id="adimage" value="<?php if ($editingad->image_url!='') { echo $editingad->image_url; } else { echo 'http://'; } ?>" size="40" /></td>
221
  </tr>
222
 
223
  </table>
224
+ <p class="submit"><input type="submit" name="Submit" value="<?php _e('Save Ad', 'wp125'); ?>" /> &nbsp; <?php if ($_GET['editad']!='') { ?><input type="submit" name="deletead" value="<?php _e('Delete Ad', 'wp125'); ?>" /><?php } ?></p>
225
  </form>
226
  <?php wp125_admin_page_footer(); ?>
227
  </div><?php
264
  $setting_defaultad = get_option("wp125_defaultad");
265
  $setting_daysbeforeexp = get_option("wp125_daysbeforeexp");
266
  ?><div class="wrap">
267
+ <h2><?php _e('Settings', 'wp125'); ?></h2>
268
  <form method="post" action="admin.php?page=wp125_settings">
269
  <table class="form-table">
270
 
271
  <tr valign="top">
272
+ <th scope="row"><?php _e('Ad Orientation', 'wp125'); ?></th>
273
  <td><label for="adorient">
274
  <select name="adorient" id="adorient">
275
+ <option <?php if ($setting_ad_orientation=='1c') { echo 'selected="selected"'; } ?> value="1c"><?php _e('One Column', 'wp125'); ?></option>
276
+ <option <?php if ($setting_ad_orientation=='2c') { echo 'selected="selected"'; } ?> value="2c"><?php _e('Two Column', 'wp125'); ?></option>
277
  </select></label>
278
+ <br/><?php _e('How many columns should the ads be displayed in?', 'wp125'); ?>
279
  </td></tr>
280
 
281
  <tr valign="top">
282
+ <th scope="row"><?php _e('Number of Ad Slots', 'wp125'); ?></th>
283
+ <td><input name="numads" type="text" id="numads" value="<?php echo $setting_num_slots; ?>" size="2" /><br/><?php _e('How many ads should be shown?', 'wp125'); ?></td>
284
  </tr>
285
 
286
  <tr valign="top">
287
+ <th scope="row"><?php _e('Ad Order', 'wp125'); ?></th>
288
  <td><label for="adorder">
289
  <select name="adorder" id="adorder">
290
+ <option selected="selected" value="normal" <?php if ($setting_ad_order=='normal') { echo 'selected="selected"'; } ?>><?php _e('Normal', 'wp125'); ?></option>
291
+ <option value="random" <?php if ($setting_ad_order=='random') { echo 'selected="selected"'; } ?>><?php _e('Random', 'wp125'); ?></option>
292
  </select></label>
293
  </td></tr>
294
 
295
  <tr valign="top">
296
+ <th scope="row"><?php _e('Widget Title', 'wp125'); ?></th>
297
+ <td><input name="widgettitle" type="text" id="widgettitle" value="<?php echo $setting_widget_title; ?>" size="50" /><br/><?php _e('The title to be displayed in the widget.', 'wp125'); ?> <em><?php _e('(Leave blank to disable.)', 'wp125'); ?></em></td>
298
  </tr>
299
 
300
  <tr valign="top">
301
+ <th scope="row"><?php _e('Ad Sales Page', 'wp125'); ?></th>
302
+ <td><input name="salespage" type="text" id="salespage" value="<?php echo $setting_buyad_url; ?>" size="50" /><br/><?php _e('Do you have a page with statistics and prices?', 'wp125'); ?> <em><?php _e('(Default Ads will link here.)', 'wp125'); ?></em></td>
303
  </tr>
304
 
305
  <tr valign="top">
306
+ <th scope="row"><?php _e('Default Style', 'wp125'); ?></th>
307
+ <td><input type="checkbox" name="defaultstyle" <?php if ($setting_disable_default_style=='') { echo 'checked="checked"'; } ?> /> <?php _e('Include default ad stylesheet?', 'wp125'); ?> <br/><?php _e('Leave checked unless you want to use your own CSS to style the ads. Refer to the documentation for further help.', 'wp125'); ?></td>
308
  </tr>
309
 
310
  <tr valign="top">
311
+ <th scope="row"><?php _e('Expiration Email', 'wp125'); ?></th>
312
+ <td><input name="emailonexp" type="text" id="emailonexp" value="<?php echo $setting_emailonexp; ?>" size="50" /><br/><?php _e('Enter your email address if you would like to be emailed when an ad expires.', 'wp125'); ?> <em><?php _e('(Leave blank to disable.)', 'wp125'); ?></em></td>
313
  </tr>
314
 
315
  <tr valign="top">
316
+ <th scope="row"><?php _e('Pre-Expiration Email', 'wp125'); ?></th>
317
+ <td><?php _e('Remind me', 'wp125'); ?> <input name="daysbeforeexp" type="text" id="daysbeforeexp" value="<?php echo $setting_daysbeforeexp; ?>" size="2" /> <?php _e('days before an ad expires.', 'wp125'); ?> <em><?php _e('(Emails will be sent to the address specified above.)', 'wp125'); ?></em></td>
318
  </tr>
319
 
320
  <tr valign="top">
321
+ <th scope="row"><?php _e('Default Ad', 'wp125'); ?></th>
322
+ <td><input name="defaultad" type="text" id="defaultad" value="<?php echo $setting_defaultad; ?>" size="50" /><br/><?php _e('Which image should be shown as a placeholder when an ad slot is empty?', 'wp125'); ?> (<a href="<?php echo wp125_get_plugin_dir('url').'/youradhere.jpg'; ?>"><?php _e('Default', 'wp125'); ?></a>)</td>
323
  </tr>
324
 
325
  </table>
326
  <input name="issubmitted" type="hidden" value="yes" />
327
+ <p class="submit"><input type="submit" name="Submit" value="<?php _e('Save Changes', 'wp125'); ?>" /></p>
328
  </form>
329
  <br/>
330
+ <p><?php _e("Your ads can be displayed using either the included widget, or by using the <strong>&lt;?php wp125_write_ads(); ?&gt;</strong> template tag. Also, you can display a single ad, without any formatting, using <strong>&lt;?php wp125_single_ad(<em>num</em>); ?&gt;</strong>, where <em>num</em> is the number of the ad slot you wish to show. This is useful for cases where your theme prevents the default formatting from working properly, or where you wish to display your ads in an unforeseen manner.", 'wp125'); ?></p>
331
  <?php wp125_admin_page_footer(); ?>
332
  </div><?php
333
  }
334
 
335
 
336
 
337
+ //Add Dashboard Widget
338
+ function wp125_dashboard_widget() {
339
+ echo '<table class="widefat">
340
+ <thead><tr>
341
+ <th scope="col">'.__('Slot', 'wp125').'</th>
342
+ <th scope="col">'.__('Name', 'wp125').'</th>
343
+ <th scope="col" class="num">'.__('Clicks', 'wp125').'</th>
344
+ <th scope="col">'.__('Start Date', 'wp125').'</th>
345
+ <th scope="col">'.__('End Date', 'wp125').'</th>
346
+ </tr></thead>
347
+ <tbody>';
348
+ global $wpdb;
349
+ $adtable_name = $wpdb->prefix . "wp125_ads";
350
+ $wp125db = $wpdb->get_results("SELECT * FROM $adtable_name WHERE status != '0' ORDER BY id DESC", OBJECT);
351
+ if ($wp125db) {
352
+ foreach ($wp125db as $wp125db){
353
+ ?>
354
+ <tr><td><?php echo $wp125db->slot; ?></td><td><strong><?php echo $wp125db->name; ?></strong></td><td class="num"><?php echo $wp125db->clicks; ?></td><td><?php echo $wp125db->start_date; ?></td><td><?php echo $wp125db->end_date; ?></td></tr>
355
+ <?php
356
+ }
357
+ } else { echo '<tr> <td colspan="8">'.__('No ads found.', 'wp125').'</td> </tr>'; }
358
+ echo '</tbody>
359
+ </table>
360
+ <br />';
361
+ echo '<a href="admin.php?page=wp125_addedit" class="button rbutton">'.__('Add New', 'wp125').'</a> &nbsp; <a href="admin.php?page=wp125/wp125.php" class="button rbutton">'.__('Manage', 'wp125').'</a> &nbsp; <a href="admin.php?page=wp125_settings" class="button rbutton">'.__('Settings', 'wp125').'</a>';
362
+ }
363
+ function wp125_dashboard_add_widget() {
364
+ wp_add_dashboard_widget('wp125_widget', __('125x125 Ads', 'wp125'), 'wp125_dashboard_widget');
365
+ }
366
+ add_action('wp_dashboard_setup', 'wp125_dashboard_add_widget' );
367
+
368
+
369
+
370
  function wp125_admin_page_footer() {
371
  echo '<div style="margin-top:45px; font-size:0.87em;">';
372
+ echo '<div style="float:right;"><a href="http://www.webmaster-source.com/static/donate_plugin.php?plugin=wp125&amp;KeepThis=true&amp;TB_iframe=true&amp;height=250&amp;width=550" class="thickbox" title="Donate"><img src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" alt="Donate" /></a></div>';
373
+ echo '<div><a href="'.wp125_get_plugin_dir('url').'/readme.txt?KeepThis=true&amp;TB_iframe=true&amp;height=450&amp;width=680" class="thickbox" title="Documentation">'.__('Documentation', 'wp125').'</a> | <a href="http://www.webmaster-source.com/wp125-ad-plugin-wordpress/">'.__('WP125 Homepage', 'wp125').'</a></div>';
374
  echo '</div>';
375
  }
376
 
calendar.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ include '../../../wp-blog-header.php';
4
+ header("Content-type: text/plain");
5
+
6
+ echo "BEGIN:VCALENDAR
7
+ VERSION:2.0
8
+ PRODID:-//Matt Harzewski/WP125//NONSGML v1.0//EN\n\n";
9
+
10
+ $adtable_name = $wpdb->prefix . "wp125_ads";
11
+ $ads = $wpdb->get_results("SELECT * FROM $adtable_name WHERE status != '0' AND end_date != '00/00/0000' ORDER BY id DESC", OBJECT);
12
+
13
+ if ($ads) {
14
+ foreach ($ads as $ads) {
15
+ echo "BEGIN:VEVENT\n";
16
+ echo "DTSTART;TZOFFSETTO=".date("O", strtotime($ads->end_date)).":".date("Ymd\This", strtotime($ads->end_date))."\n";
17
+ echo "DTEND;TZOFFSETTO=".date("O", strtotime($ads->end_date)).":".date("Ymd\This", strtotime($ads->end_date))."\n";
18
+ echo "SUMMARY: Ad \"".$ads->name."\" ends.\n";
19
+ echo "BEGIN:VALARM\n";
20
+ echo "TRIGGER:-PT30M\n";
21
+ echo "ACTION:DISPLAY\n";
22
+ echo "DESCRIPTION: Ad \"".$ads->name."\" ends.\n";
23
+ echo "END:VALARM\n";
24
+ echo "END:VEVENT\n\n";
25
+ }
26
+ }
27
+
28
+ echo "END:VCALENDAR";
29
+
30
+ ?>
ical.gif ADDED
Binary file
installer.php CHANGED
@@ -4,7 +4,7 @@ require_once(ABSPATH . 'wp-admin/upgrade.php');
4
  //***Installer variables***
5
  global $wpdb;
6
  $table_name = $wpdb->prefix . "wp125_ads";
7
- $wp125_db_version = "1.33671";
8
  //***Installer***
9
  if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") != $table_name) {
10
  $sql = "CREATE TABLE " . $table_name . " (
4
  //***Installer variables***
5
  global $wpdb;
6
  $table_name = $wpdb->prefix . "wp125_ads";
7
+ $wp125_db_version = "1.33673";
8
  //***Installer***
9
  if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") != $table_name) {
10
  $sql = "CREATE TABLE " . $table_name . " (
readme.txt CHANGED
@@ -5,8 +5,8 @@ Author URI: http://www.webmaster-source.com
5
  Donate link: http://www.webmaster-source.com/donate/?plugin=wp125
6
  Tags: ads, 125x125, management, advertisement
7
  Requires at least: 2.3
8
- Tested up to: 2.7
9
- Stable tag: 1.2.2
10
 
11
  Easy management of 125x125 ads on your blog. Ads can be run for a specified number of days, and will automatically be taken down. Track clicks too.
12
 
@@ -25,7 +25,7 @@ Features include:
25
  * Keep track of how many times an ad is clicked
26
  * When creating a new ad, you don't have to calculate the end date yourself. Just input how many days you wish the ad to run for, and the correct date will be applied. The ad will be automatically taken down when the time comes.
27
  * When an ad run is over, the record is archived on the Inactive ads screen, so you can check on the final click count, or revive the ad for another run.
28
- * When an ad slot is empty, a placeholder ad of your choice will be displayed. This could be a Your Ad Here image linking to a page with statistics and pricing, or an affiliate link.
29
  * Optionally recieve email notifications when an ad expires. Useful if you send follow-up messages to advertisers, or if you just want to stay in the know.
30
 
31
 
@@ -35,7 +35,7 @@ Features include:
35
  1. Download and unzip the package.
36
  2. FTP the entire "wp125" directory to your /wp-content/plugins/ directory on your blog.
37
  3. Activate the plugin on the "Plugins" tab of the administartion panel.
38
- 4. Either use the included "WP125: Ads" widget, or place the <?php wp125_write_ads(); ?> template tag where you wish your ads to appear.
39
  5. Go to the new "Ads" section of the WordPress admin, where you can tweak settings, such as the maximum number of ads to be shown at once (the default is 6), and how they should be displayed.
40
 
41
 
@@ -52,7 +52,7 @@ You may upgrade the plugin via the automated system in WordPress 2.5 or greater,
52
  == Frequently Asked Questions ==
53
 
54
  = What if I don't want to arrange my ads in one OR two columns? =
55
- If you want to arrange your ads in an unconventional manner, you can use the <?php wp125_single_ad(num); ?> template tag (replace "num" with the number of an ad slot). The tag will return one ad with minimal formatting (simply <a><img /></a>). You can use multiple instances of the tag in your template to set lay your ad slots out in whatever way you choose.
56
 
57
  = One of my ads hit it's expiration date. Where did it go? =
58
  When an ad's time duration is over, it disappears off your site, and is removed from the Active ads page in the WordPress admin. To access the record, just click the "Inactive" link on the Manage screen. The page should update to show all of your inactive ads.
@@ -74,6 +74,11 @@ First, uncheck the Default Style box on the Settings page. This will remove the
74
  = How do I make the ads open in a new window? =
75
  If you absolutely *must* have your ads open in a new window when clicked, open the wp125.php file and find the `define(...` line near the top and remove the first `//` from the beginning.
76
 
 
 
 
 
 
77
 
78
 
79
  == Screenshots ==
@@ -94,4 +99,6 @@ If you're having a problem with the plugin, try posting on the official WordPres
94
 
95
  == Version History ==
96
  * 1.0.0 - Initial release
97
- * 1.1.0 - Some security and performance fixes, adds several new customization options and a few major features.
 
 
5
  Donate link: http://www.webmaster-source.com/donate/?plugin=wp125
6
  Tags: ads, 125x125, management, advertisement
7
  Requires at least: 2.3
8
+ Tested up to: 2.7.1
9
+ Stable tag: 1.3.0
10
 
11
  Easy management of 125x125 ads on your blog. Ads can be run for a specified number of days, and will automatically be taken down. Track clicks too.
12
 
25
  * Keep track of how many times an ad is clicked
26
  * When creating a new ad, you don't have to calculate the end date yourself. Just input how many days you wish the ad to run for, and the correct date will be applied. The ad will be automatically taken down when the time comes.
27
  * When an ad run is over, the record is archived on the Inactive ads screen, so you can check on the final click count, or revive the ad for another run.
28
+ * When an ad slot is empty, a placeholder ad of your choice will be displayed. This could be a "Your Ad Here" image linking to a page with statistics and pricing, or an affiliate link.
29
  * Optionally recieve email notifications when an ad expires. Useful if you send follow-up messages to advertisers, or if you just want to stay in the know.
30
 
31
 
35
  1. Download and unzip the package.
36
  2. FTP the entire "wp125" directory to your /wp-content/plugins/ directory on your blog.
37
  3. Activate the plugin on the "Plugins" tab of the administartion panel.
38
+ 4. Either use the included "WP125: Ads" widget, or place the `<?php wp125_write_ads(); ?>` template tag where you wish your ads to appear.
39
  5. Go to the new "Ads" section of the WordPress admin, where you can tweak settings, such as the maximum number of ads to be shown at once (the default is 6), and how they should be displayed.
40
 
41
 
52
  == Frequently Asked Questions ==
53
 
54
  = What if I don't want to arrange my ads in one OR two columns? =
55
+ If you want to arrange your ads in an unconventional manner, you can use the `<?php wp125_single_ad(num); ?>` template tag (replace "num" with the number of an ad slot). The tag will return one ad with minimal formatting (simply <a><img /></a>). You can use multiple instances of the tag in your template to set lay your ad slots out in whatever way you choose.
56
 
57
  = One of my ads hit it's expiration date. Where did it go? =
58
  When an ad's time duration is over, it disappears off your site, and is removed from the Active ads page in the WordPress admin. To access the record, just click the "Inactive" link on the Manage screen. The page should update to show all of your inactive ads.
74
  = How do I make the ads open in a new window? =
75
  If you absolutely *must* have your ads open in a new window when clicked, open the wp125.php file and find the `define(...` line near the top and remove the first `//` from the beginning.
76
 
77
+ = My ads don't appear in two columns, even though I have the option set! How do I fix this? =
78
+ The parent DIV that the ad code is inside probably isn't wide enough. You really need a *minimum* of 300px of horizontal space to have two ad columns, more if you use the default CSS. You could try reducing the CSS padding around the ads from 10px to something lower.
79
+
80
+ `#wp125adwrap_2c .wp125ad { padding:4px; }`
81
+
82
 
83
 
84
  == Screenshots ==
99
 
100
  == Version History ==
101
  * 1.0.0 - Initial release
102
+ * 1.1.x - Some security and performance fixes, adds several new customization options and a few major features.
103
+ * 1.2.x - Added new features: Recieve email notifications in advance of ads expiring, alternating CSS classes on ads, and open ads in new windows if you absolutely *must.*
104
+ * 1.3.x - Localization support (with French and Spanish to start), iCalendar subscription of ad expirations, WP Dashboard widget. Fixed errant "ADLINK_EXTRA"s in Single ads, fixed "no ads, no placeholders" bug, etc..
translations/wp125-es_ES.mo ADDED
Binary file
translations/wp125-es_ES.po ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP125\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp125\n"
5
+ "POT-Creation-Date: 2009-02-01 21:41+0000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Matt Harzewski (redwall_hp) <matt@webmaster-source.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: adminmenus.php:6
17
+ msgid "Manage Ads"
18
+ msgstr "Editar Anuncios"
19
+
20
+ #: adminmenus.php:11
21
+ msgid "Are you sure you want to deactivate the ad?"
22
+ msgstr "¿Está usted seguro usted quiere desactivar el anuncio?"
23
+
24
+ #: adminmenus.php:11
25
+ #: adminmenus.php:24
26
+ #: adminmenus.php:136
27
+ msgid "Yes"
28
+ msgstr "Sí"
29
+
30
+ #: adminmenus.php:11
31
+ #: adminmenus.php:24
32
+ #: adminmenus.php:136
33
+ msgid "No!"
34
+ msgstr "No"
35
+
36
+ #: adminmenus.php:18
37
+ msgid "Ad deactivated."
38
+ msgstr "Desactivé el anuncio"
39
+
40
+ #: adminmenus.php:24
41
+ msgid "Are you sure you want to reactivate the ad?"
42
+ msgstr "¿Está usted seguro usted quiere reactivar el anuncio?"
43
+
44
+ #: adminmenus.php:31
45
+ msgid "Ad activated."
46
+ msgstr "Activé el anuncio"
47
+
48
+ #: adminmenus.php:35
49
+ msgid "Active Ads"
50
+ msgstr "Anuncios en actividad"
51
+
52
+ #: adminmenus.php:35
53
+ msgid "Inactive Ads"
54
+ msgstr "Anuncios no en actividad"
55
+
56
+ #: adminmenus.php:39
57
+ #: adminmenus.php:159
58
+ #: adminmenus.php:337
59
+ msgid "Slot"
60
+ msgstr "Sitio de ad"
61
+
62
+ #: adminmenus.php:40
63
+ #: adminmenus.php:154
64
+ #: adminmenus.php:338
65
+ msgid "Name"
66
+ msgstr "Nombre de el anuncio"
67
+
68
+ #: adminmenus.php:41
69
+ #: adminmenus.php:339
70
+ msgid "Clicks"
71
+ msgstr "Número de clics"
72
+
73
+ #: adminmenus.php:42
74
+ #: adminmenus.php:340
75
+ msgid "Start Date"
76
+ msgstr "Fecha de inicio"
77
+
78
+ #: adminmenus.php:43
79
+ #: adminmenus.php:341
80
+ msgid "End Date"
81
+ msgstr "Fecha finalización"
82
+
83
+ #: adminmenus.php:45
84
+ #: adminmenus.php:357
85
+ msgid "Add New"
86
+ msgstr "Nuevo anuncio"
87
+
88
+ #: adminmenus.php:62
89
+ msgid "N/A"
90
+ msgstr "N/A"
91
+
92
+ #: adminmenus.php:65
93
+ msgid "Edit"
94
+ msgstr "Editar"
95
+
96
+ #: adminmenus.php:67
97
+ msgid "Activate"
98
+ msgstr "Activar"
99
+
100
+ #: adminmenus.php:69
101
+ msgid "Deactivate"
102
+ msgstr "Desactivar"
103
+
104
+ #: adminmenus.php:74
105
+ #: adminmenus.php:353
106
+ msgid "No ads found."
107
+ msgstr "No anuncios encontrados."
108
+
109
+ #: adminmenus.php:131
110
+ msgid "Ad"
111
+ msgstr "Anuncio"
112
+
113
+ #: adminmenus.php:131
114
+ msgid "updated."
115
+ msgstr "actualizado."
116
+
117
+ #: adminmenus.php:136
118
+ msgid "Do you really want to delete this ad record? This action cannot be undone."
119
+ msgstr "¿Usted quiere realmente suprimir este anuncio? Esta acción no puede ser deshecha."
120
+
121
+ #: adminmenus.php:142
122
+ msgid "Ad deleted."
123
+ msgstr "Anuncio suprimido."
124
+
125
+ #: adminmenus.php:146
126
+ msgid "Add/Edit Ads"
127
+ msgstr "Añadir y Editar Anuncios"
128
+
129
+ #: adminmenus.php:155
130
+ msgid "Whose ad is this?"
131
+ msgstr "¿De quién anuncio es éste?"
132
+
133
+ #: adminmenus.php:169
134
+ msgid "Target URL"
135
+ msgstr "URL de la conexión"
136
+
137
+ #: adminmenus.php:170
138
+ msgid "Where should the ad link to?"
139
+ msgstr "¿Dónde debe el anuncio conectar?"
140
+
141
+ #: adminmenus.php:183
142
+ msgid "Expiration"
143
+ msgstr "Expiración"
144
+
145
+ #: adminmenus.php:186
146
+ msgid "I'll remove it manually"
147
+ msgstr "Lo quitaré manualmente"
148
+
149
+ #: adminmenus.php:187
150
+ #: adminmenus.php:188
151
+ #: adminmenus.php:189
152
+ #: adminmenus.php:190
153
+ msgid "Days"
154
+ msgstr "Días"
155
+
156
+ #: adminmenus.php:191
157
+ msgid "Other"
158
+ msgstr "Otro"
159
+
160
+ #: adminmenus.php:193
161
+ msgid "Month:"
162
+ msgstr "Mes"
163
+
164
+ #: adminmenus.php:193
165
+ msgid "Day:"
166
+ msgstr "Día:"
167
+
168
+ #: adminmenus.php:193
169
+ msgid "Year:"
170
+ msgstr "Año:"
171
+
172
+ #: adminmenus.php:193
173
+ msgid "Use 00/00/0000 for manual removal."
174
+ msgstr "Usar 00/00/0000 para el retiro manual."
175
+
176
+ #: adminmenus.php:209
177
+ msgid "Click Tracking"
178
+ msgstr "Cuenta el numero de clic"
179
+
180
+ #: adminmenus.php:210
181
+ msgid "Count the number of times this ad is clicked"
182
+ msgstr "Cuente el número de épocas que se hace clic esta anuncio"
183
+
184
+ #: adminmenus.php:215
185
+ msgid "Ad Image"
186
+ msgstr "Imagen del anuncio"
187
+
188
+ #: adminmenus.php:220
189
+ msgid "Save Ad"
190
+ msgstr "Salve el anuncio"
191
+
192
+ #: adminmenus.php:220
193
+ msgid "Delete Ad"
194
+ msgstr "Cancelación del anuncio"
195
+
196
+ #: adminmenus.php:263
197
+ #: adminmenus.php:357
198
+ #: wp125.php:72
199
+ msgid "Settings"
200
+ msgstr "Opciones de WP125"
201
+
202
+ #: adminmenus.php:268
203
+ msgid "Ad Orientation"
204
+ msgstr "Orientación de anuncios"
205
+
206
+ #: adminmenus.php:271
207
+ msgid "One Column"
208
+ msgstr "Una columna"
209
+
210
+ #: adminmenus.php:272
211
+ msgid "Two Column"
212
+ msgstr "Dos columnas"
213
+
214
+ #: adminmenus.php:274
215
+ msgid "How many columns should the ads be displayed in?"
216
+ msgstr "¿Cuántas columnas se deben los anuncios será mostrado adentro?"
217
+
218
+ #: adminmenus.php:278
219
+ msgid "Number of Ad Slots"
220
+ msgstr "Número de sitios del anuncio"
221
+
222
+ #: adminmenus.php:279
223
+ msgid "How many ads should be shown?"
224
+ msgstr "¿Cuántos anuncios deben ser mostrados?"
225
+
226
+ #: adminmenus.php:283
227
+ msgid "Ad Order"
228
+ msgstr "Orden del anuncios"
229
+
230
+ #: adminmenus.php:286
231
+ msgid "Normal"
232
+ msgstr "Normal"
233
+
234
+ #: adminmenus.php:287
235
+ msgid "Random"
236
+ msgstr "Al azar"
237
+
238
+ #: adminmenus.php:292
239
+ msgid "Widget Title"
240
+ msgstr "Título de la widget"
241
+
242
+ #: adminmenus.php:293
243
+ msgid "The title to be displayed in the widget."
244
+ msgstr "El título que se visualizará en la widget."
245
+
246
+ #: adminmenus.php:293
247
+ #: adminmenus.php:308
248
+ msgid "(Leave blank to disable.)"
249
+ msgstr "(Deje esto sitio en blanco para desactivar la opción.)"
250
+
251
+ #: adminmenus.php:297
252
+ msgid "Ad Sales Page"
253
+ msgstr "Página de anuncios ventas"
254
+
255
+ #: adminmenus.php:298
256
+ msgid "Do you have a page with statistics and prices?"
257
+ msgstr "¿Usted tiene un página con estadísticas y con precios?"
258
+
259
+ #: adminmenus.php:298
260
+ msgid "(Default Ads will link here.)"
261
+ msgstr "Anuncios por defectos conectará aquí."
262
+
263
+ #: adminmenus.php:302
264
+ msgid "Default Style"
265
+ msgstr "CSS por defecto"
266
+
267
+ #: adminmenus.php:303
268
+ msgid "Include default ad stylesheet?"
269
+ msgstr "¿Incluya el stylesheet del anuncio por defecto?"
270
+
271
+ #: adminmenus.php:303
272
+ msgid "Leave checked unless you want to use your own CSS to style the ads. Refer to the documentation for further help."
273
+ msgstr "Deje controlada a menos que usted quiera utilizar su propio CSS para diseñar los anuncios. Leído la documentación para ayuda adicional."
274
+
275
+ #: adminmenus.php:307
276
+ msgid "Expiration Email"
277
+ msgstr "Email de la expiración"
278
+
279
+ #: adminmenus.php:308
280
+ msgid "Enter your email address if you would like to be emailed when an ad expires."
281
+ msgstr "Inscriba su direccionamiento de correo electrónico si deseas ser notificado cuando expira un anuncio."
282
+
283
+ #: adminmenus.php:312
284
+ msgid "Pre-Expiration Email"
285
+ msgstr "Email antes de la expiración"
286
+
287
+ #: adminmenus.php:313
288
+ msgid "Remind me"
289
+ msgstr "Recuérdeme"
290
+
291
+ #: adminmenus.php:313
292
+ msgid "days before an ad expires."
293
+ msgstr "días antes un anuncio expira."
294
+
295
+ #: adminmenus.php:313
296
+ msgid "(Emails will be sent to the address specified above.)"
297
+ msgstr "(Mensajes será enviado a el direccionamiento escrito arriba.)"
298
+
299
+ #: adminmenus.php:317
300
+ msgid "Default Ad"
301
+ msgstr "Anuncio por defecto"
302
+
303
+ #: adminmenus.php:318
304
+ msgid "Which image should be shown as a placeholder when an ad slot is empty?"
305
+ msgstr "¿Qué imagen será mostrado por defecto cuando un sitio de anuncio es vacío?"
306
+
307
+ #: adminmenus.php:318
308
+ msgid "Default"
309
+ msgstr "Imagen incluimos."
310
+
311
+ #: adminmenus.php:323
312
+ msgid "Save Changes"
313
+ msgstr "Salve las opciones"
314
+
315
+ #: adminmenus.php:326
316
+ msgid "Your ads can be displayed using either the included widget, or by using the <strong>&lt;?php wp125_write_ads(); ?&gt;</strong> template tag. Also, you can display a single ad, without any formatting, using <strong>&lt;?php wp125_single_ad(<em>num</em>); ?&gt;</strong>, where <em>num</em> is the number of the ad slot you wish to show. This is useful for cases where your theme prevents the default formatting from working properly, or where you wish to display your ads in an unforeseen manner."
317
+ msgstr "Tu anuncios pueden ser visualizados usando el widget incluido o usando el <strong>&lt;?php wp125_write_ads(); ?&gt;</strong> template tag. Usted puede visualizar un solo anuncio (sin formatar) usando <strong>&lt;?php wp125_single_ad(<em>num</em>); ?&gt;</strong>, reemplazas <em>num</em> por el número de un sitio de anuncio."
318
+
319
+ #: adminmenus.php:357
320
+ #: wp125.php:70
321
+ msgid "Manage"
322
+ msgstr "Editar Anuncios"
323
+
324
+ #: adminmenus.php:360
325
+ #: wp125.php:69
326
+ msgid "125x125 Ads"
327
+ msgstr "Anuncios de 125x125"
328
+
329
+ #: adminmenus.php:369
330
+ msgid "Documentation"
331
+ msgstr "Documentación"
332
+
333
+ #: adminmenus.php:369
334
+ msgid "WP125 Homepage"
335
+ msgstr "WP125 página de hogar"
336
+
337
+ #: wp125.php:50
338
+ msgid "WP125"
339
+ msgstr "WP125"
340
+
341
+ #: wp125.php:69
342
+ msgid "Ads"
343
+ msgstr "Anuncios"
344
+
345
+ #: wp125.php:70
346
+ msgid "Manage 125x125 Ads"
347
+ msgstr "Editar Anuncios"
348
+
349
+ #: wp125.php:71
350
+ msgid "Add/Edit 125x125 Ads"
351
+ msgstr "Añadir y Editar Anuncios"
352
+
353
+ #: wp125.php:71
354
+ msgid "Add/Edit"
355
+ msgstr "Añadir y Editar"
356
+
357
+ #: wp125.php:72
358
+ msgid "125x125 Ad Settings"
359
+ msgstr "Opciones de Anuncios"
360
+
translations/wp125-fr_FR.mo ADDED
Binary file
translations/wp125.po ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP125\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-01-08 11:29-0500\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Matt Harzewski (redwall_hp) <matt@webmaster-source.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: adminmenus.php:6
17
+ msgid "Manage Ads"
18
+ msgstr ""
19
+
20
+ #: adminmenus.php:11
21
+ msgid "Are you sure you want to deactivate the ad?"
22
+ msgstr ""
23
+
24
+ #: adminmenus.php:11
25
+ #: adminmenus.php:24
26
+ #: adminmenus.php:135
27
+ msgid "Yes"
28
+ msgstr ""
29
+
30
+ #: adminmenus.php:11
31
+ #: adminmenus.php:24
32
+ #: adminmenus.php:135
33
+ msgid "No!"
34
+ msgstr ""
35
+
36
+ #: adminmenus.php:18
37
+ msgid "Ad deactivated."
38
+ msgstr ""
39
+
40
+ #: adminmenus.php:24
41
+ msgid "Are you sure you want to reactivate the ad?"
42
+ msgstr ""
43
+
44
+ #: adminmenus.php:31
45
+ msgid "Ad activated."
46
+ msgstr ""
47
+
48
+ #: adminmenus.php:35
49
+ msgid "Active Ads"
50
+ msgstr ""
51
+
52
+ #: adminmenus.php:35
53
+ msgid "Inactive Ads"
54
+ msgstr ""
55
+
56
+ #: adminmenus.php:39
57
+ #: adminmenus.php:158
58
+ msgid "Slot"
59
+ msgstr ""
60
+
61
+ #: adminmenus.php:40
62
+ #: adminmenus.php:153
63
+ msgid "Name"
64
+ msgstr ""
65
+
66
+ #: adminmenus.php:41
67
+ msgid "Clicks"
68
+ msgstr ""
69
+
70
+ #: adminmenus.php:42
71
+ msgid "Start Date"
72
+ msgstr ""
73
+
74
+ #: adminmenus.php:43
75
+ msgid "End Date"
76
+ msgstr ""
77
+
78
+ #: adminmenus.php:45
79
+ msgid "Add New"
80
+ msgstr ""
81
+
82
+ #: adminmenus.php:62
83
+ msgid "N/A"
84
+ msgstr ""
85
+
86
+ #: adminmenus.php:65
87
+ msgid "Edit"
88
+ msgstr ""
89
+
90
+ #: adminmenus.php:67
91
+ msgid "Activate"
92
+ msgstr ""
93
+
94
+ #: adminmenus.php:69
95
+ msgid "Deactivate"
96
+ msgstr ""
97
+
98
+ #: adminmenus.php:74
99
+ msgid "No ads found."
100
+ msgstr ""
101
+
102
+ #: adminmenus.php:130
103
+ msgid "Ad"
104
+ msgstr ""
105
+
106
+ #: adminmenus.php:130
107
+ msgid "updated."
108
+ msgstr ""
109
+
110
+ #: adminmenus.php:135
111
+ msgid "Do you really want to delete this ad record? This action cannot be undone."
112
+ msgstr ""
113
+
114
+ #: adminmenus.php:141
115
+ msgid "Ad deleted."
116
+ msgstr ""
117
+
118
+ #: adminmenus.php:145
119
+ msgid "Add/Edit Ads"
120
+ msgstr ""
121
+
122
+ #: adminmenus.php:154
123
+ msgid "Whose ad is this?"
124
+ msgstr ""
125
+
126
+ #: adminmenus.php:168
127
+ msgid "Target URL"
128
+ msgstr ""
129
+
130
+ #: adminmenus.php:169
131
+ msgid "Where should the ad link to?"
132
+ msgstr ""
133
+
134
+ #: adminmenus.php:182
135
+ msgid "Expiration"
136
+ msgstr ""
137
+
138
+ #: adminmenus.php:185
139
+ msgid "I'll remove it manually"
140
+ msgstr ""
141
+
142
+ #: adminmenus.php:186
143
+ #: adminmenus.php:187
144
+ #: adminmenus.php:188
145
+ #: adminmenus.php:189
146
+ msgid "Days"
147
+ msgstr ""
148
+
149
+ #: adminmenus.php:190
150
+ msgid "Other"
151
+ msgstr ""
152
+
153
+ #: adminmenus.php:192
154
+ msgid "Month:"
155
+ msgstr ""
156
+
157
+ #: adminmenus.php:192
158
+ msgid "Day:"
159
+ msgstr ""
160
+
161
+ #: adminmenus.php:192
162
+ msgid "Year:"
163
+ msgstr ""
164
+
165
+ #: adminmenus.php:192
166
+ msgid "Use 00/00/0000 for manual removal."
167
+ msgstr ""
168
+
169
+ #: adminmenus.php:208
170
+ msgid "Click Tracking"
171
+ msgstr ""
172
+
173
+ #: adminmenus.php:209
174
+ msgid "Count the number of times this ad is clicked"
175
+ msgstr ""
176
+
177
+ #: adminmenus.php:214
178
+ msgid "Ad Image"
179
+ msgstr ""
180
+
181
+ #: adminmenus.php:219
182
+ msgid "Save Ad"
183
+ msgstr ""
184
+
185
+ #: adminmenus.php:219
186
+ msgid "Delete Ad"
187
+ msgstr ""
188
+
189
+ #: adminmenus.php:262
190
+ msgid "Settings"
191
+ msgstr ""
192
+
193
+ #: adminmenus.php:267
194
+ msgid "Ad Orientation"
195
+ msgstr ""
196
+
197
+ #: adminmenus.php:270
198
+ msgid "One Column"
199
+ msgstr ""
200
+
201
+ #: adminmenus.php:271
202
+ msgid "Two Column"
203
+ msgstr ""
204
+
205
+ #: adminmenus.php:273
206
+ msgid "How many columns should the ads be displayed in?"
207
+ msgstr ""
208
+
209
+ #: adminmenus.php:277
210
+ msgid "Number of Ad Slots"
211
+ msgstr ""
212
+
213
+ #: adminmenus.php:278
214
+ msgid "How many ads should be shown?"
215
+ msgstr ""
216
+
217
+ #: adminmenus.php:282
218
+ msgid "Ad Order"
219
+ msgstr ""
220
+
221
+ #: adminmenus.php:285
222
+ msgid "Normal"
223
+ msgstr ""
224
+
225
+ #: adminmenus.php:286
226
+ msgid "Random"
227
+ msgstr ""
228
+
229
+ #: adminmenus.php:291
230
+ msgid "Widget Title"
231
+ msgstr ""
232
+
233
+ #: adminmenus.php:292
234
+ msgid "The title to be displayed in the widget."
235
+ msgstr ""
236
+
237
+ #: adminmenus.php:292
238
+ #: adminmenus.php:307
239
+ msgid "(Leave blank to disable.)"
240
+ msgstr ""
241
+
242
+ #: adminmenus.php:296
243
+ msgid "Ad Sales Page"
244
+ msgstr ""
245
+
246
+ #: adminmenus.php:297
247
+ msgid "Do you have a page with statistics and prices?"
248
+ msgstr ""
249
+
250
+ #: adminmenus.php:297
251
+ msgid "(Default Ads will link here.)"
252
+ msgstr ""
253
+
254
+ #: adminmenus.php:301
255
+ msgid "Default Style"
256
+ msgstr ""
257
+
258
+ #: adminmenus.php:302
259
+ msgid "Include default ad stylesheet?"
260
+ msgstr ""
261
+
262
+ #: adminmenus.php:302
263
+ msgid "Leave checked unless you want to use your own CSS to style the ads. Refer to the documentation for further help."
264
+ msgstr ""
265
+
266
+ #: adminmenus.php:306
267
+ msgid "Expiration Email"
268
+ msgstr ""
269
+
270
+ #: adminmenus.php:307
271
+ msgid "Enter your email address if you would like to be emailed when an ad expires."
272
+ msgstr ""
273
+
274
+ #: adminmenus.php:311
275
+ msgid "Pre-Expiration Email"
276
+ msgstr ""
277
+
278
+ #: adminmenus.php:312
279
+ msgid "Remind me"
280
+ msgstr ""
281
+
282
+ #: adminmenus.php:312
283
+ msgid "days before an ad expires."
284
+ msgstr ""
285
+
286
+ #: adminmenus.php:312
287
+ msgid "(Emails will be sent to the address specified above.)"
288
+ msgstr ""
289
+
290
+ #: adminmenus.php:316
291
+ msgid "Default Ad"
292
+ msgstr ""
293
+
294
+ #: adminmenus.php:317
295
+ msgid "Which image should be shown as a placeholder when an ad slot is empty?"
296
+ msgstr ""
297
+
298
+ #: adminmenus.php:317
299
+ msgid "Default"
300
+ msgstr ""
301
+
302
+ #: adminmenus.php:322
303
+ msgid "Save Changes"
304
+ msgstr ""
305
+
306
+ #: adminmenus.php:325
307
+ msgid "Your ads can be displayed using either the included widget, or by using the <strong>&lt;?php wp125_write_ads(); ?&gt;</strong> template tag. Also, you can display a single ad, without any formatting, using <strong>&lt;?php wp125_single_ad(<em>num</em>); ?&gt;</strong>, where <em>num</em> is the number of the ad slot you wish to show. This is useful for cases where your theme prevents the default formatting from working properly, or where you wish to display your ads in an unforeseen manner."
308
+ msgstr ""
309
+
310
+ #: adminmenus.php:335
311
+ msgid "Documentation"
312
+ msgstr ""
313
+
314
+ #: adminmenus.php:335
315
+ msgid "WP125 Homepage"
316
+ msgstr ""
317
+
318
+ #: wp125.php:50
319
+ msgid "WP125"
320
+ msgstr ""
321
+
translations/wp125.pot ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR Matt Harzewski (redwall_hp)
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp125\n"
11
+ "POT-Creation-Date: 2009-02-01 21:41+0000\n"
12
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=CHARSET\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+
19
+ #: adminmenus.php:6
20
+ msgid "Manage Ads"
21
+ msgstr ""
22
+
23
+ #: adminmenus.php:11
24
+ msgid "Are you sure you want to deactivate the ad?"
25
+ msgstr ""
26
+
27
+ #: adminmenus.php:11 adminmenus.php:24 adminmenus.php:136
28
+ msgid "Yes"
29
+ msgstr ""
30
+
31
+ #: adminmenus.php:11 adminmenus.php:24 adminmenus.php:136
32
+ msgid "No!"
33
+ msgstr ""
34
+
35
+ #: adminmenus.php:18
36
+ msgid "Ad deactivated."
37
+ msgstr ""
38
+
39
+ #: adminmenus.php:24
40
+ msgid "Are you sure you want to reactivate the ad?"
41
+ msgstr ""
42
+
43
+ #: adminmenus.php:31
44
+ msgid "Ad activated."
45
+ msgstr ""
46
+
47
+ #: adminmenus.php:35
48
+ msgid "Active Ads"
49
+ msgstr ""
50
+
51
+ #: adminmenus.php:35
52
+ msgid "Inactive Ads"
53
+ msgstr ""
54
+
55
+ #: adminmenus.php:39 adminmenus.php:159 adminmenus.php:337
56
+ msgid "Slot"
57
+ msgstr ""
58
+
59
+ #: adminmenus.php:40 adminmenus.php:154 adminmenus.php:338
60
+ msgid "Name"
61
+ msgstr ""
62
+
63
+ #: adminmenus.php:41 adminmenus.php:339
64
+ msgid "Clicks"
65
+ msgstr ""
66
+
67
+ #: adminmenus.php:42 adminmenus.php:340
68
+ msgid "Start Date"
69
+ msgstr ""
70
+
71
+ #: adminmenus.php:43 adminmenus.php:341
72
+ msgid "End Date"
73
+ msgstr ""
74
+
75
+ #: adminmenus.php:45 adminmenus.php:357
76
+ msgid "Add New"
77
+ msgstr ""
78
+
79
+ #: adminmenus.php:62
80
+ msgid "N/A"
81
+ msgstr ""
82
+
83
+ #: adminmenus.php:65
84
+ msgid "Edit"
85
+ msgstr ""
86
+
87
+ #: adminmenus.php:67
88
+ msgid "Activate"
89
+ msgstr ""
90
+
91
+ #: adminmenus.php:69
92
+ msgid "Deactivate"
93
+ msgstr ""
94
+
95
+ #: adminmenus.php:74 adminmenus.php:353
96
+ msgid "No ads found."
97
+ msgstr ""
98
+
99
+ #: adminmenus.php:131
100
+ msgid "Ad"
101
+ msgstr ""
102
+
103
+ #: adminmenus.php:131
104
+ msgid "updated."
105
+ msgstr ""
106
+
107
+ #: adminmenus.php:136
108
+ msgid ""
109
+ "Do you really want to delete this ad record? This action cannot be undone."
110
+ msgstr ""
111
+
112
+ #: adminmenus.php:142
113
+ msgid "Ad deleted."
114
+ msgstr ""
115
+
116
+ #: adminmenus.php:146
117
+ msgid "Add/Edit Ads"
118
+ msgstr ""
119
+
120
+ #: adminmenus.php:155
121
+ msgid "Whose ad is this?"
122
+ msgstr ""
123
+
124
+ #: adminmenus.php:169
125
+ msgid "Target URL"
126
+ msgstr ""
127
+
128
+ #: adminmenus.php:170
129
+ msgid "Where should the ad link to?"
130
+ msgstr ""
131
+
132
+ #: adminmenus.php:183
133
+ msgid "Expiration"
134
+ msgstr ""
135
+
136
+ #: adminmenus.php:186
137
+ msgid "I'll remove it manually"
138
+ msgstr ""
139
+
140
+ #: adminmenus.php:187 adminmenus.php:188 adminmenus.php:189 adminmenus.php:190
141
+ msgid "Days"
142
+ msgstr ""
143
+
144
+ #: adminmenus.php:191
145
+ msgid "Other"
146
+ msgstr ""
147
+
148
+ #: adminmenus.php:193
149
+ msgid "Month:"
150
+ msgstr ""
151
+
152
+ #: adminmenus.php:193
153
+ msgid "Day:"
154
+ msgstr ""
155
+
156
+ #: adminmenus.php:193
157
+ msgid "Year:"
158
+ msgstr ""
159
+
160
+ #: adminmenus.php:193
161
+ msgid "Use 00/00/0000 for manual removal."
162
+ msgstr ""
163
+
164
+ #: adminmenus.php:209
165
+ msgid "Click Tracking"
166
+ msgstr ""
167
+
168
+ #: adminmenus.php:210
169
+ msgid "Count the number of times this ad is clicked"
170
+ msgstr ""
171
+
172
+ #: adminmenus.php:215
173
+ msgid "Ad Image"
174
+ msgstr ""
175
+
176
+ #: adminmenus.php:220
177
+ msgid "Save Ad"
178
+ msgstr ""
179
+
180
+ #: adminmenus.php:220
181
+ msgid "Delete Ad"
182
+ msgstr ""
183
+
184
+ #: adminmenus.php:263 adminmenus.php:357 wp125.php:72
185
+ msgid "Settings"
186
+ msgstr ""
187
+
188
+ #: adminmenus.php:268
189
+ msgid "Ad Orientation"
190
+ msgstr ""
191
+
192
+ #: adminmenus.php:271
193
+ msgid "One Column"
194
+ msgstr ""
195
+
196
+ #: adminmenus.php:272
197
+ msgid "Two Column"
198
+ msgstr ""
199
+
200
+ #: adminmenus.php:274
201
+ msgid "How many columns should the ads be displayed in?"
202
+ msgstr ""
203
+
204
+ #: adminmenus.php:278
205
+ msgid "Number of Ad Slots"
206
+ msgstr ""
207
+
208
+ #: adminmenus.php:279
209
+ msgid "How many ads should be shown?"
210
+ msgstr ""
211
+
212
+ #: adminmenus.php:283
213
+ msgid "Ad Order"
214
+ msgstr ""
215
+
216
+ #: adminmenus.php:286
217
+ msgid "Normal"
218
+ msgstr ""
219
+
220
+ #: adminmenus.php:287
221
+ msgid "Random"
222
+ msgstr ""
223
+
224
+ #: adminmenus.php:292
225
+ msgid "Widget Title"
226
+ msgstr ""
227
+
228
+ #: adminmenus.php:293
229
+ msgid "The title to be displayed in the widget."
230
+ msgstr ""
231
+
232
+ #: adminmenus.php:293 adminmenus.php:308
233
+ msgid "(Leave blank to disable.)"
234
+ msgstr ""
235
+
236
+ #: adminmenus.php:297
237
+ msgid "Ad Sales Page"
238
+ msgstr ""
239
+
240
+ #: adminmenus.php:298
241
+ msgid "Do you have a page with statistics and prices?"
242
+ msgstr ""
243
+
244
+ #: adminmenus.php:298
245
+ msgid "(Default Ads will link here.)"
246
+ msgstr ""
247
+
248
+ #: adminmenus.php:302
249
+ msgid "Default Style"
250
+ msgstr ""
251
+
252
+ #: adminmenus.php:303
253
+ msgid "Include default ad stylesheet?"
254
+ msgstr ""
255
+
256
+ #: adminmenus.php:303
257
+ msgid ""
258
+ "Leave checked unless you want to use your own CSS to style the ads. Refer to "
259
+ "the documentation for further help."
260
+ msgstr ""
261
+
262
+ #: adminmenus.php:307
263
+ msgid "Expiration Email"
264
+ msgstr ""
265
+
266
+ #: adminmenus.php:308
267
+ msgid ""
268
+ "Enter your email address if you would like to be emailed when an ad expires."
269
+ msgstr ""
270
+
271
+ #: adminmenus.php:312
272
+ msgid "Pre-Expiration Email"
273
+ msgstr ""
274
+
275
+ #: adminmenus.php:313
276
+ msgid "Remind me"
277
+ msgstr ""
278
+
279
+ #: adminmenus.php:313
280
+ msgid "days before an ad expires."
281
+ msgstr ""
282
+
283
+ #: adminmenus.php:313
284
+ msgid "(Emails will be sent to the address specified above.)"
285
+ msgstr ""
286
+
287
+ #: adminmenus.php:317
288
+ msgid "Default Ad"
289
+ msgstr ""
290
+
291
+ #: adminmenus.php:318
292
+ msgid "Which image should be shown as a placeholder when an ad slot is empty?"
293
+ msgstr ""
294
+
295
+ #: adminmenus.php:318
296
+ msgid "Default"
297
+ msgstr ""
298
+
299
+ #: adminmenus.php:323
300
+ msgid "Save Changes"
301
+ msgstr ""
302
+
303
+ #: adminmenus.php:326
304
+ msgid ""
305
+ "Your ads can be displayed using either the included widget, or by using the "
306
+ "<strong>&lt;?php wp125_write_ads(); ?&gt;</strong> template tag. Also, you "
307
+ "can display a single ad, without any formatting, using <strong>&lt;?php "
308
+ "wp125_single_ad(<em>num</em>); ?&gt;</strong>, where <em>num</em> is the "
309
+ "number of the ad slot you wish to show. This is useful for cases where your "
310
+ "theme prevents the default formatting from working properly, or where you "
311
+ "wish to display your ads in an unforeseen manner."
312
+ msgstr ""
313
+
314
+ #: adminmenus.php:357 wp125.php:70
315
+ msgid "Manage"
316
+ msgstr ""
317
+
318
+ #: adminmenus.php:360 wp125.php:69
319
+ msgid "125x125 Ads"
320
+ msgstr ""
321
+
322
+ #: adminmenus.php:369
323
+ msgid "Documentation"
324
+ msgstr ""
325
+
326
+ #: adminmenus.php:369
327
+ msgid "WP125 Homepage"
328
+ msgstr ""
329
+
330
+ #: wp125.php:50
331
+ msgid "WP125"
332
+ msgstr ""
333
+
334
+ #: wp125.php:69
335
+ msgid "Ads"
336
+ msgstr ""
337
+
338
+ #: wp125.php:70
339
+ msgid "Manage 125x125 Ads"
340
+ msgstr ""
341
+
342
+ #: wp125.php:71
343
+ msgid "Add/Edit 125x125 Ads"
344
+ msgstr ""
345
+
346
+ #: wp125.php:71
347
+ msgid "Add/Edit"
348
+ msgstr ""
349
+
350
+ #: wp125.php:72
351
+ msgid "125x125 Ad Settings"
352
+ msgstr ""
wp125.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.webmaster-source.com/wp125-ad-plugin-wordpress/
5
  Description: Easily manage 125x125 ads within your WordPress Dashboard.
6
  Author: Matt Harzewski (redwall_hp)
7
  Author URI: http://www.webmaster-source.com
8
- Version: 1.2.2
9
  */
10
 
11
 
@@ -65,10 +65,11 @@ function wp125_write_ads_widget($args) {
65
  //Add the Admin Menus
66
  if (is_admin()) {
67
  function wp125_add_admin_menu() {
68
- add_menu_page("125x125 Ads", "Ads", MANAGEMENT_PERMISSION, __FILE__, "wp125_write_managemenu");
69
- add_submenu_page(__FILE__, "Manage 125x125 Ads", "Manage", MANAGEMENT_PERMISSION, __FILE__, "wp125_write_managemenu");
70
- add_submenu_page(__FILE__, "Add/Edit 125x125 Ads", "Add/Edit", MANAGEMENT_PERMISSION, 'wp125_addedit', "wp125_write_addeditmenu");
71
- add_submenu_page(__FILE__, "125x125 Ad Settings", "Settings", MANAGEMENT_PERMISSION, 'wp125_settings', "wp125_write_settingsmenu");
 
72
  }
73
  //Include menus
74
  require_once(dirname(__FILE__).'/adminmenus.php');
@@ -102,8 +103,9 @@ function wp125_CheckAdDate($thedate, $theid, $pre_exp_email) {
102
 
103
 
104
  //Write the Ads
105
- function wp125_write_ads() {
106
  global $wpdb;
 
107
  $setting_ad_orientation = get_option("wp125_ad_orientation");
108
  $setting_num_slots = get_option("wp125_num_slots");
109
  $setting_ad_order = get_option("wp125_ad_order");
@@ -112,8 +114,7 @@ $setting_defaultad = get_option("wp125_defaultad");
112
  $adtable_name = $wpdb->prefix . "wp125_ads";
113
  if (!defined('ADLINK_EXTRA')) { define("ADLINK_EXTRA", ""); }
114
  if ($setting_ad_order == 'random') { $theorder = 'RAND() LIMIT '.$setting_num_slots; } else { $theorder = 'slot ASC'; }
115
- $theads = $wpdb->get_results("SELECT * FROM $adtable_name WHERE status = '1' ORDER BY $theorder", ARRAY_A);
116
- if ($theads) {
117
  if ($setting_ad_orientation=='1c') {
118
  echo '<div id="wp125adwrap_1c">'."\n";
119
  $arraycount = 0;
@@ -132,7 +133,7 @@ for ($curslot=1; $curslot <= $setting_num_slots; $curslot++) {
132
  $altclass = ( ' odd' != $altclass ) ? ' odd' : ' even';
133
  if (isset($adguidearray[$curslot])) {
134
  if ($adguidearray[$curslot]['clicks'] != -1) { $linkurl = get_option('blogurl').'index.php?adclick='.$adguidearray[$curslot]['id']; } else { $linkurl = $adguidearray[$curslot]['target']; }
135
- echo '<div class="wp125ad'.$altclass.'"><a href="'.$linkurl.'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$adguidearray[$curslot]['image_url'].'" alt="'.$adguidearray[$curslot]['name'].'" /></a></div>'."\n";
136
  } else { echo '<div class="wp125ad'.$altclass.'"><a href="'.$setting_buyad_url.'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$setting_defaultad.'" alt="" /></a></div>'."\n"; }
137
  }
138
  echo "</div>\n";
@@ -155,23 +156,23 @@ for ($curslot=1; $curslot <= $setting_num_slots; $curslot++) {
155
  $altclass = ( ' odd' != $altclass ) ? ' odd' : ' even';
156
  if (isset($adguidearray[$curslot])) {
157
  if ($adguidearray[$curslot]['clicks'] != -1) { $linkurl = get_option('blogurl').'index.php?adclick='.$adguidearray[$curslot]['id']; } else { $linkurl = $adguidearray[$curslot]['target']; }
158
- echo '<div class="wp125ad'.$altclass.'"><a href="'.$linkurl.'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$adguidearray[$curslot]['image_url'].'" alt="'.$adguidearray[$curslot]['name'].'" /></a></div>'."\n";
159
  } else { echo '<div class="wp125ad'.$altclass.'"><a href="'.$setting_buyad_url.'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$setting_defaultad.'" alt="" /></a></div>'."\n"; }
160
  }
161
  echo "</div>\n";
162
  }
163
  }
164
- }
165
 
166
 
167
  function wp125_single_ad($theslot) {
168
  global $wpdb;
 
169
  $adtable_name = $wpdb->prefix . "wp125_ads";
170
  $thead = $wpdb->get_row("SELECT * FROM $adtable_name WHERE slot = '$theslot' AND status = '1' ORDER BY id DESC", OBJECT);
171
  if ($thead) {
172
  wp125_CheckAdDate($thead->end_date, $thead->id, $thead->pre_exp_email);
173
  if ($thead->clicks != -1) { $linkurl = get_option('blogurl').'index.php?adclick='.$thead->id; } else { $linkurl = $thead->target; }
174
- echo '<a href="'.$linkurl.'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$thead->image_url.'" alt="'.$thead->name.'" /></a>';
175
  } else { echo '<a href="'.get_option("wp125_buyad_url").'" rel="nofollow"><img src="'.get_option("wp125_defaultad").'" alt="Your Ad Here" /></a>'; }
176
  }
177
 
5
  Description: Easily manage 125x125 ads within your WordPress Dashboard.
6
  Author: Matt Harzewski (redwall_hp)
7
  Author URI: http://www.webmaster-source.com
8
+ Version: 1.3.0
9
  */
10
 
11
 
65
  //Add the Admin Menus
66
  if (is_admin()) {
67
  function wp125_add_admin_menu() {
68
+ load_plugin_textdomain('wp125', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/translations', dirname(plugin_basename(__FILE__)).'/translations');
69
+ add_menu_page(__("125x125 Ads", 'wp125'), __("Ads", 'wp125'), MANAGEMENT_PERMISSION, __FILE__, "wp125_write_managemenu");
70
+ add_submenu_page(__FILE__, __("Manage 125x125 Ads", 'wp125'), __("Manage", 'wp125'), MANAGEMENT_PERMISSION, __FILE__, "wp125_write_managemenu");
71
+ add_submenu_page(__FILE__, __("Add/Edit 125x125 Ads", 'wp125'), __("Add/Edit", 'wp125'), MANAGEMENT_PERMISSION, 'wp125_addedit', "wp125_write_addeditmenu");
72
+ add_submenu_page(__FILE__, __("125x125 Ad Settings", 'wp125'), __("Settings", 'wp125'), MANAGEMENT_PERMISSION, 'wp125_settings', "wp125_write_settingsmenu");
73
  }
74
  //Include menus
75
  require_once(dirname(__FILE__).'/adminmenus.php');
103
 
104
 
105
  //Write the Ads
106
+ function wp125_write_ads($exclude) {
107
  global $wpdb;
108
+ if (!isset($exclude)) { $exclude = "0"; } else { $exclude = implode(",", $exclude); }
109
  $setting_ad_orientation = get_option("wp125_ad_orientation");
110
  $setting_num_slots = get_option("wp125_num_slots");
111
  $setting_ad_order = get_option("wp125_ad_order");
114
  $adtable_name = $wpdb->prefix . "wp125_ads";
115
  if (!defined('ADLINK_EXTRA')) { define("ADLINK_EXTRA", ""); }
116
  if ($setting_ad_order == 'random') { $theorder = 'RAND() LIMIT '.$setting_num_slots; } else { $theorder = 'slot ASC'; }
117
+ $theads = $wpdb->get_results("SELECT * FROM $adtable_name WHERE status = '1' AND slot NOT IN ($exclude) ORDER BY $theorder", ARRAY_A);
 
118
  if ($setting_ad_orientation=='1c') {
119
  echo '<div id="wp125adwrap_1c">'."\n";
120
  $arraycount = 0;
133
  $altclass = ( ' odd' != $altclass ) ? ' odd' : ' even';
134
  if (isset($adguidearray[$curslot])) {
135
  if ($adguidearray[$curslot]['clicks'] != -1) { $linkurl = get_option('blogurl').'index.php?adclick='.$adguidearray[$curslot]['id']; } else { $linkurl = $adguidearray[$curslot]['target']; }
136
+ echo '<div class="wp125ad'.$altclass.'"><a href="'.$linkurl.'" title="'.$adguidearray[$curslot]['name'].'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$adguidearray[$curslot]['image_url'].'" alt="'.$adguidearray[$curslot]['name'].'" /></a></div>'."\n";
137
  } else { echo '<div class="wp125ad'.$altclass.'"><a href="'.$setting_buyad_url.'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$setting_defaultad.'" alt="" /></a></div>'."\n"; }
138
  }
139
  echo "</div>\n";
156
  $altclass = ( ' odd' != $altclass ) ? ' odd' : ' even';
157
  if (isset($adguidearray[$curslot])) {
158
  if ($adguidearray[$curslot]['clicks'] != -1) { $linkurl = get_option('blogurl').'index.php?adclick='.$adguidearray[$curslot]['id']; } else { $linkurl = $adguidearray[$curslot]['target']; }
159
+ echo '<div class="wp125ad'.$altclass.'"><a href="'.$linkurl.'" title="'.$adguidearray[$curslot]['name'].'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$adguidearray[$curslot]['image_url'].'" alt="'.$adguidearray[$curslot]['name'].'" /></a></div>'."\n";
160
  } else { echo '<div class="wp125ad'.$altclass.'"><a href="'.$setting_buyad_url.'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$setting_defaultad.'" alt="" /></a></div>'."\n"; }
161
  }
162
  echo "</div>\n";
163
  }
164
  }
 
165
 
166
 
167
  function wp125_single_ad($theslot) {
168
  global $wpdb;
169
+ if (!defined('ADLINK_EXTRA')) { define("ADLINK_EXTRA", ""); }
170
  $adtable_name = $wpdb->prefix . "wp125_ads";
171
  $thead = $wpdb->get_row("SELECT * FROM $adtable_name WHERE slot = '$theslot' AND status = '1' ORDER BY id DESC", OBJECT);
172
  if ($thead) {
173
  wp125_CheckAdDate($thead->end_date, $thead->id, $thead->pre_exp_email);
174
  if ($thead->clicks != -1) { $linkurl = get_option('blogurl').'index.php?adclick='.$thead->id; } else { $linkurl = $thead->target; }
175
+ echo '<a href="'.$linkurl.'" title="'.$adguidearray[$curslot]['name'].'" rel="nofollow"'.ADLINK_EXTRA.'><img src="'.$thead->image_url.'" alt="'.$thead->name.'" /></a>';
176
  } else { echo '<a href="'.get_option("wp125_buyad_url").'" rel="nofollow"><img src="'.get_option("wp125_defaultad").'" alt="Your Ad Here" /></a>'; }
177
  }
178