84 lines
3.3 KiB
PHP
84 lines
3.3 KiB
PHP
<form id="pw-handler" action="" method="post">
|
|
<input type="hidden" name="action" value="change-memberid" />
|
|
<table class="form-table">
|
|
<tr>
|
|
<th scope="row">Your member number</th>
|
|
<td>
|
|
<input id="memberid" name="memberid" value="<?php echo get_option("plugin-wonderful-memberid") ?>" />
|
|
<em>(you can find your member number by logging in to Project Wonderful and clicking on your profile image in the upper right of the page)</em>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Use Standard Adboxes?</th>
|
|
<td>
|
|
<label>
|
|
<input type="checkbox"
|
|
name="use-standardcode"
|
|
value="yes"
|
|
<?php echo (get_option("plugin-wonderful-use-standardcode") == 1) ? "checked" : "" ?> />
|
|
<em>(If you want to use standard code adboxes instead of advanced code, enable this option)</em>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
<td>
|
|
<input type="submit" value="Change" class="button" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<?php if ($this->publisher_info !== false) { ?>
|
|
<h3>Adbox Information</h3>
|
|
<table class="widefat post fixed">
|
|
<tr>
|
|
<th width="20%" class="manage-column">Site Name</th>
|
|
<th width="30%" class="manage-column">Description</th>
|
|
<th class="manage-column" align="center">Size</th>
|
|
<th class="manage-column" align="center">Dimensions</th>
|
|
<th class="manage-column" align="center">Category</th>
|
|
<th style="text-align: right !important" width="25%" class="manage-column">Template Tag <em>(for direct use in theme)</em></th>
|
|
</tr>
|
|
<?php
|
|
$first_adboxid = null;
|
|
foreach ($this->publisher_info->adboxes as $adbox) {
|
|
$first_adboxid = $adbox->adboxid; ?>
|
|
<tr>
|
|
<td><a href="<?php echo $adbox->url ?>" target="_top" title="Ad for use on <?php echo $adbox->url ?> (opens in new window)"><?php echo $adbox->sitename ?></a></td>
|
|
<td><?php echo $adbox->description ?></td>
|
|
<td><?php echo $adbox->adtype ?></td>
|
|
<td><?php echo $adbox->dimensions ?></td>
|
|
<td><?php echo $adbox->category ?></td>
|
|
<td align="right"><tt>the_project_wonderful_ad(<?php echo $adbox->adboxid ?>)</tt></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
|
|
<h3>Using Widgets to Put Ads on Your Site</h3>
|
|
<p>
|
|
Visit <a href="widgets.php">Appearance -> Widgets</a> to quickly add Project Wonderful advertisements to your site. Plugin Wonderful widgets start with "PW".
|
|
</p>
|
|
|
|
<h3>Using the Template Tags in Your Theme</h3>
|
|
<p>
|
|
Find the location in your theme where you want the ad to appear. Type in the template tag for that ad, surrounded in PHP tags, like this:
|
|
</p>
|
|
|
|
<tt>
|
|
<?php the_project_wonderful_ad(<?php echo $first_adboxid ?>) ?>
|
|
</tt>
|
|
|
|
<?php if (isset($_GET['allow-destroy'])) { ?>
|
|
<h3>Rebuilding Your Project Wonderful Ad Database</h3>
|
|
<p>
|
|
If you are having issues with your ads not downloading correctly from Project Wonderful, click this button to destroy and rebuild the database that stores ad info.
|
|
</p>
|
|
|
|
<form id="pw-handler" action="" method="post">
|
|
<input type="hidden" name="action" value="rebuild-database" />
|
|
<input type="submit" value="Destroy and Rebuild Database" class="button" />
|
|
</form>
|
|
<?php } ?>
|
|
<?php } ?>
|