Documentation

Markers

Table of Contents

class.puzzleanywhere-admin.php 6
class.puzzleanywhere-ajax.php 2
class.puzzleanywhere-attachment.php 5
class.puzzleanywhere-authors-widget.php 3
class.puzzleanywhere-calendar.php 1
class.puzzleanywhere-newsletter-widget.php 2
class.puzzleanywhere-provider.php 1
class.puzzleanywhere-purchase.php 15
class.puzzleanywhere-puzzle.php 1
class.puzzleanywhere-subscription.php 1
class.puzzleanywhere.php 19
sai-puzzleanywhere.php 17
views/account-subscription-purchase.php 1
views/account-summary.php 2
views/admin-settings.php 3
views/difficulty.php 1
views/download-purchase.php 1
views/free-trial.php 2
views/google-recaptcha.php 2
views/inkubator-2019-purchase-note.php 1
views/purchase-button.php 2
views/purchase-form.php 12
views/supported-apps.php 9

class.puzzleanywhere-admin.php

Type Line Description
64 User is editing.
143 ' . $url . '" target="_blank">' . $url . '</a>';
200 @todo Implement.
223 Empty cache and reset pages.
227 @todo This should be updated to use proper Settings API methods.
229 // @see https://codex.wordpress.org/Creating_Options_Pages

class.puzzleanywhere-ajax.php

Type Line Description
26 Simple GET request so we don't have to pull in WP jQuery.
47 Filler onload fn.

class.puzzleanywhere-attachment.php

Type Line Description
135 We currently assume all attachments are puzzle attachments.
138 Optionals.
150 Puzzle downloads only.
223 Get attachment data
234 Manage attachment download errors.

class.puzzleanywhere-authors-widget.php

Type Line Description
85 Is there a new author?
96 Delete flagged authors.
129 Sort authors by name.

class.puzzleanywhere-calendar.php

Type Line Description
115 @todo Improve

class.puzzleanywhere-newsletter-widget.php

Type Line Description
132 www.google.com/recaptcha/api.js?render=<?php esc_html_e( Puzzle_Anywhere_Admin::get_recaptcha_client_key() ); ?>"></script>
143 www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"

class.puzzleanywhere-provider.php

Type Line Description
217 Set defaults.

class.puzzleanywhere-purchase.php

Type Line Description
279 If there's a base item, allow for created a base attribute object
280 to further manipulate it.
285 Set attachments.
292 Set subscriptions.
331 Enable gift if user has set a recipient email, but hasn't set a gift.
344 Force JSON because of purchasable_item_ids array.
360 Should handle error -- redirect to seller.
362 Right now, we don't allow for more than one purchasable item.
381 Allow for outside resorting.
382 @todo Restrict this.
594 If there's only one `PurchasableItem`, default to it.
597 Otherwise, default to the first non-recurring item...
673 www.' . ( $this->isSandbox() ? 'sandbox.' : '' ) . 'paypal.com/cgi-bin/webscr';
TODO 552 Add token support
TODO 586 WIP

class.puzzleanywhere-puzzle.php

Type Line Description
179 Default to average.

class.puzzleanywhere-subscription.php

Type Line Description
85 Set defaults.

class.puzzleanywhere.php

Type Line Description
449 Create page if the page isn't found.
477 Use a view for content.
581 Redirection is broken under WP 5.5, so we use a different approach.
1372 Convenience attribute to embed the active user into a template.
1391 Strip unnecessary whitespace.
1392 $str = preg_replace( '/(\s)\s{1,}/', '$1', $str );
1733 ' . self::get_host() . $path;
1811 Default cache to 'on' unless explicitly declared false.
1821 Only GET requests are cached.
1823 Fake a response array.
1939 Add authentication handling.
1954 Only add auth if necessary.
2056 @todo Move to separate function.
2059 Handle non-wp_error responses.
2080 Handle base errors.
2199 Store cache key for easier cache reset.
TODO 15 Move model-specific requests to their specific classes. For example, `get_providers` to `PA_Provider`.
TODO 1134 Should return `PA_Puzzle` instead of puzzle JSON.
TODO 1165 Should return `PA_PurchasableItem` instead of purchasable item JSON.

sai-puzzleanywhere.php

Type Line Description
8 standalone.com/
12 standalone.com/
17 Enable all error reporting.
83 add_action( 'init', 'download_attachment' );
88 add_filter( 'the_content', array( 'Puzzle_Anywhere', 'add_account_nav' ), 99 );
103 This error code is not included in error_reporting, so let it fall
104 through to the standard PHP error handler
108 $errstr may need to be escaped:
111 @todo The following is a work-in-progress.
199 Add whitelisted views.
201 // @todo Dynamically insert via `scandir`?
206 Add miscellanous shortcodes.
297 Filter free puzzles
380 If download successful, exit.
403 Preserve any attachment download errors.
583 Test Purchase
705 Only display pay subscriptions.

account-subscription-purchase.php

Type Line Description
2 Table row for purchase data.

account-summary.php

Type Line Description
76 All subscriptions should have a purchase, but some lifetime subs DO NOT.
77 Consequently, we run this check here.

admin-settings.php

Type Line Description
37 standalone.com/apis/sai-puzzleanywhere-wp"
427 Verify `Rebuild Pages`.
439 Verify sandbox mode.

difficulty.php

Type Line Description
4 0.5 should be the bare minimum.

download-purchase.php

Type Line Description
58 need to dynamically update this count.

free-trial.php

Type Line Description
76 www.google.com/recaptcha/api.js?render=<?php
95 www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"

google-recaptcha.php

Type Line Description
12 www.google.com/recaptcha/api.js?render=<?php esc_html_e( Puzzle_Anywhere_Admin::get_recaptcha_client_key() ); ?>"></script>
23 www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"

inkubator-2019-purchase-note.php

Type Line Description
15 inkubatorcrosswords.com/subscribe" target="_blank">the Inkubator Crosswords website</a>!

purchase-button.php

Type Line Description
6 I will probably regret allowing for both puzzle and
7 purchasable item purchase urls.

purchase-form.php

Type Line Description
8 Process purchase for seller.
12 Error handling for purchase relay.
23 echo $purchase->purchaseUrl( $purchase_group );
63 Reset base item.
246 Need to update this to use WP, not Vue.
447 Make sure that 'tomorrow' matches the client, not just the server.
494 www.paypalobjects.com/webstatic/en_US/i/buttons/cc-badges-ppmcvdam.png" alt="Buy now with PayPal" />
528 www.<?php echo Puzzle_Anywhere_Admin::is_sandbox() ? 'sandbox.' : ''; ?>paypal.com/cgi-bin/webscr"
563 www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png" alt="Buy now with PayPal" />
569 www.paypalobjects.com/en_US/i/scr/pixel.gif"
642 www.paypalobjects.com/webstatic/en_US/i/buttons/cc-badges-ppmcvdam.png" alt="Buy now with PayPal" />
662 Display necessary payment button.

supported-apps.php

Type Line Description
25 standalone.com" rel="external">Stand Alone, Inc.</a>
28 itunes.apple.com/us/app/crosswords/id688876601?mt=8" rel="external">
34 play.google.com/store/apps/details?id=com.standalone.Crosswords" rel="external">
40 itunes.apple.com/us/app/crosswords/id408740217?mt=12" rel="external">
53 play.google.com/store/apps/details?id=org.akop.crosswords&hl=en_US" rel="external">
60 www.red-sweater.com/" rel="external">
67 www.red-sweater.com/blackink/" rel="external">
111 www.puzzazz.com/" rel="external">
116 itunes.apple.com/us/app/puzzazz/id516440494?mt=8" rel="external">

Search results