136
|
1 |
<?php global $wptouch_settings; ?> |
|
2 |
<div class="metabox-holder"> |
|
3 |
<div class="postbox" id="push-area"> |
|
4 |
<h3><span class="push-options"> </span><?php _e( "Push Notification Options", "wptouch" ); ?></h3> |
|
5 |
|
|
6 |
<div class="left-content"> |
|
7 |
<p><?php echo sprintf(__( "Here you can configure WPtouch to push selected notifications through your %sProwl%s account to your iPhone, iPod touch and Growl-enabled Mac.", "wptouch" ), '<a href="http://prowl.weks.net/" target="_blank">','</a>'); ?></p> |
|
8 |
<p><?php echo sprintf(__( "%sMake sure you generate a Prowl API key to use here%s otherwise no notifications will be pushed to you.", "wptouch" ), '<strong>','</strong>'); ?></p> |
|
9 |
</div><!-- left content --> |
|
10 |
|
|
11 |
<div class="right-content"> |
|
12 |
<ul class="wptouch-make-li-italic"> |
|
13 |
<?php if ( function_exists( 'curl_init' ) ) { ?> |
|
14 |
<li> |
|
15 |
<input name="prowl-api" type="text" value="<?php echo $wptouch_settings['prowl-api']; ?>" /><?php _e( "Prowl API Key", "wptouch" ); ?> (<?php echo sprintf(__( "%sCreate a key now%s", "wptouch" ), '<a href="https://prowl.weks.net/settings.php" target="_blank">','</a>'); ?> - <a href="#prowl-info" class="fancylink">?</a>) |
|
16 |
<div id="prowl-info" style="display:none"> |
|
17 |
<h2><?php _e( "More Info", "wptouch" ); ?></h2> |
|
18 |
<p><?php _e( "In order to enable Prowl notifications, you must create a Prowl account, and download/configure the Prowl application for iPhone.", "wptouch" ); ?></p> |
|
19 |
<p><?php _e( "Next, visit the Prowl website and generate your API key, which we use to connect securely and send your notifications.", "wptouch" ); ?></p> |
|
20 |
|
|
21 |
<p><?php echo sprintf(__( "%sVisit the Prowl Website%s", "wptouch" ), '<a href="http://prowl.weks.net/settings.php" target="_blank">','</a>'); ?> | <?php echo sprintf(__( "%sVisit iTunes to Download Prowl%s", "wptouch" ), '<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=320876271&mt=8" target="_blank">','</a>'); ?></p> |
|
22 |
</div> |
|
23 |
<?php if ( isset( $wptouch_settings['prowl-api'] ) && strlen( $wptouch_settings['prowl-api'] ) ) { ?> |
|
24 |
<?php if ( bnc_wptouch_is_prowl_key_valid() ) { ?> |
|
25 |
<p class="valid"><?php _e( "Your Prowl API key has been verified.", "wptouch" ); ?></p> |
|
26 |
<?php } else { ?> |
|
27 |
<p class="invalid"> |
|
28 |
<?php _e( "Sorry, your Prowl API key is not verified.", "wptouch" ); ?><br /> |
|
29 |
<?php _e( "Please check your key and make sure there are no spaces or extra characters.", "wptouch" ); ?> |
|
30 |
</p> |
|
31 |
<?php } ?> |
|
32 |
<?php } ?> |
|
33 |
</li> |
|
34 |
</ul> |
|
35 |
|
|
36 |
<ul> |
|
37 |
<li> |
|
38 |
<input class="checkbox" type="checkbox" name="enable-prowl-comments-button" <?php if ( isset( $wptouch_settings['enable-prowl-comments-button']) && $wptouch_settings['enable-prowl-comments-button'] == 1) echo('checked'); ?> /> |
|
39 |
<label class="label" for="enable-prowl-comments-button"><?php _e( "Notify me of new comments & pingbacks/tracksbacks", "wptouch" ); ?></label> |
|
40 |
</li> |
|
41 |
<li> |
|
42 |
<input class="checkbox" <?php if (!get_option('comment_registration')) : ?>disabled="true"<?php endif; ?> type="checkbox" name="enable-prowl-users-button" <?php if ( isset( $wptouch_settings['enable-prowl-users-button']) && $wptouch_settings['enable-prowl-users-button'] == 1) echo('checked'); ?> /> |
|
43 |
<label class="label" for="enable-prowl-users-button"><?php _e( "Notify me of new account registrations", "wptouch" ); ?></label> |
|
44 |
</li> |
|
45 |
<li> |
|
46 |
<input class="checkbox" type="checkbox" name="enable-prowl-message-button" <?php if ( isset( $wptouch_settings['enable-prowl-message-button']) && $wptouch_settings['enable-prowl-message-button'] == 1) echo('checked'); ?> /> |
|
47 |
<label class="label" for="enable-prowl-message-button"><?php _e( "Allow users to send me direct messages", "wptouch" ); ?> <a href="#dm-info" class="fancylink">?</a></label> |
|
48 |
<div id="dm-info" style="display:none"> |
|
49 |
<h2><?php _e( "More Info", "wptouch" ); ?></h2> |
|
50 |
<p><?php _e( "This enables a new link to a drop-down in the submenu bar for WPtouch ('Message Me').", "wptouch" ); ?></p> |
|
51 |
<p><?php _e( "When opened, a form is shown for users to fill in. The name, e-mail address, and message area is shown. Thier IP will also be sent to you, in case you want to ban it in the WordPress admin.", "wptouch" ); ?></p> |
|
52 |
</div> |
|
53 |
</li> |
|
54 |
<?php } else { ?> |
|
55 |
<li><strong class="no-pages"><?php echo sprintf(__( "%sCURL is required%s on your werbserver to use the Push capabilities of WPtouch.", "wptouch" ), '<a href="http://en.wikipedia.org/wiki/CURL" target="_blank">','</a>'); ?></strong></li> |
|
56 |
<?php } ?> |
|
57 |
</ul> |
|
58 |
</div><!-- right content --> |
|
59 |
<div class="bnc-clearer"></div> |
|
60 |
</div><!-- postbox --> |
|
61 |
</div><!-- metabox --> |