PluginProbe
Easy Footnotes / 1.1.1
Easy Footnotes v1.1.1
trunk 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.2 All 32 releases
← All changes | easy-footnotes-admin.php +42 -23 trunk1.1.1 View file →
@@ -12,22 +12,33 @@
12 12 check_admin_referer( 'easy_footnotes_settings_nonce' );
13 13
14 14 if ( 'Y' === $_POST['easy_footnote_hidden'] ) :
15 15 // Form data sent.
16 - $easyFootnoteLabel = ( isset( $_POST['easy_footnotes_label'] ) ) ? sanitize_text_field( wp_unslash( $_POST['easy_footnotes_label'] ) ) : '';
17 - $easyFootnoteCheck = isset( $_POST['easy_footnote_check'] ) ? true : false;
18 - $hide_easy_footnote_after_posts = isset( $_POST['hide_easy_footnote_after_posts'] ) ? true : false;
19 - $show_easy_footnote_on_front = isset( $_POST['show_easy_footnote_on_front'] ) ? true : false;
20 - $reset_footnotes = isset( $_POST['reset_footnotes'] ) ? true : false;
21 - $combine_duplicate_footnotes = isset( $_POST['combine_duplicate_footnotes'] ) ? true : false;
16 + $easyFootnoteLabel = ( isset( $_POST['easy_footnotes_label'] ) ) ? sanitize_text_field( wp_unslash( $_POST['easy_footnotes_label'] ) ) : '';
22 17
18 + if ( isset( $_POST['easy_footnote_check'] ) ) {
19 + $easyFootnoteCheck = true;
20 + } else {
21 + $easyFootnoteCheck = false;
22 + }
23 +
24 + if ( isset( $_POST['hide_easy_footnote_after_posts'] ) ) {
25 + $hide_easy_footnote_after_posts = true;
26 + } else {
27 + $hide_easy_footnote_after_posts = false;
28 + }
29 +
30 + if ( isset( $_POST['show_easy_footnote_on_front'] ) ) {
31 + $show_easy_footnote_on_front = true;
32 + } else {
33 + $show_easy_footnote_on_front = false;
34 + }
35 +
23 36 $updateOptions = array(
24 - 'footnoteLabel' => sanitize_text_field( $easyFootnoteLabel ),
37 + 'footnoteLabel' => $easyFootnoteLabel,
25 38 'useLabel' => $easyFootnoteCheck,
26 39 'hide_easy_footnote_after_posts' => $hide_easy_footnote_after_posts,
27 40 'show_easy_footnote_on_front' => $show_easy_footnote_on_front,
28 - 'reset_footnotes' => $reset_footnotes,
29 - 'combine_duplicate_footnotes' => $combine_duplicate_footnotes,
30 41 );
31 42
32 43 update_option( 'easy_footnotes_options', $updateOptions );
33 44 ?>
@@ -37,14 +48,12 @@
37 48 <?php
38 49 endif;
39 50 } else {
40 51 // Normal page display.
41 - $easyFootnoteLabel = isset( $footnoteOptions['footnoteLabel'] ) ? esc_html( $footnoteOptions['footnoteLabel'] ) : __( 'Footnotes', 'easy-footnotes' );
42 - $easyFootnoteCheck = isset( $footnoteOptions['useLabel'] ) ? $footnoteOptions['useLabel'] : false;
43 - $hide_easy_footnote_after_posts = isset( $footnoteOptions['hide_easy_footnote_after_posts'] ) ? $footnoteOptions['hide_easy_footnote_after_posts'] : false;
44 - $show_easy_footnote_on_front = isset( $footnoteOptions['show_easy_footnote_on_front'] ) ? $footnoteOptions['show_easy_footnote_on_front'] : false;
45 - $reset_footnotes = isset( $footnoteOptions['reset_footnotes'] ) ? $footnoteOptions['reset_footnotes'] : false;
46 - $combine_duplicate_footnotes = isset( $footnoteOptions['combine_duplicate_footnotes'] ) ? $footnoteOptions['combine_duplicate_footnotes'] : false;
52 + $easyFootnoteLabel = $footnoteOptions['footnoteLabel'];
53 + $easyFootnoteCheck = $footnoteOptions['useLabel'];
54 + $hide_easy_footnote_after_posts = $footnoteOptions['hide_easy_footnote_after_posts'];
55 + $show_easy_footnote_on_front = $footnoteOptions['show_easy_footnote_on_front'];
47 56 }
48 57 ?>
49 58
50 59 <div class="wrap">
@@ -62,17 +71,10 @@
62 71 <p><?php esc_html_e( 'Hide Footnotes after post content: ', 'easy-footnotes' ); ?><input type="checkbox" name="hide_easy_footnote_after_posts" <?php checked( $hide_easy_footnote_after_posts ); ?> size="20"></p>
63 72
64 73 <p id="easy_footnote_on_front"><?php esc_html_e( 'Show Footnotes on Front Page: ', 'easy-footnotes' ); ?><input type="checkbox" name="show_easy_footnote_on_front" <?php checked( $show_easy_footnote_on_front ); ?> size="20"></p>
65 74
66 - <p><?php esc_html_e( 'Combine duplicate footnotes: ', 'easy-footnotes' ); ?><input type="checkbox" name="combine_duplicate_footnotes" <?php checked( $combine_duplicate_footnotes ); ?> size="20"></p>
67 -
68 - <p><?php esc_html_e( 'Reset Footnotes to avoid duplication after the content: ', 'easy-footnotes' ); ?><input type="checkbox" name="reset_footnotes" <?php checked( $reset_footnotes ); ?> size="20">
69 - <br>
70 - <span><?php esc_html_e( 'If you have "Combine duplicate footnotes" turned on, you should leave this setting off. ', 'easy-footnotes' ); ?><span>
71 - </p>
72 -
73 75 <p class="submit">
74 - <input type="submit" name="Submit" value="<?php esc_attr_e( 'Update Options', 'easy-footnotes' ); ?>" />
76 + <input type="submit" name="Submit" value="<?php esc_attr_e( 'Update Options', 'easy_footnotes_trdom' ); ?>" />
75 77 </p>
76 78 </form>
77 79
78 80 <div class="easy-footnotes-shortcode-hint">
@@ -78,5 +80,22 @@
78 80 <div class="easy-footnotes-shortcode-hint">
79 81 <p><?php echo esc_html__( 'Shortcode: [efn_note]Insert your note here.[/efn_note]', 'easy-footnotes' ); ?></p>
80 82 </div>
81 83
84 + <div class="efn-preview">
85 + <a class="efn-theme-link" href="<?php echo esc_url( 'https://www.themes.pizza/?utm_source=easy-footnotes&utm_medium=button&utm_campaign=efnupsell' ); ?>" target="_blank"><img src="<?php echo esc_url( plugins_url( '/assets/zuul-wordpress-theme.jpg', __FILE__ ) ); ?>" alt="Zuul WordPress Theme homepage in various color options" /></a>
86 + <div class="efn-preview-copy">
87 + <h2><?php esc_html_e( 'Tasty WordPress Themes', 'easy-footnotes' ); ?></h2>
88 + <p>
89 + <?php
90 + printf(
91 + wp_kses_post( 'Love easy footnotes? Check out my premium themes now available on Themes.Pizza. Each theme is hand crafted from the finest ingredients with a specific purpose in mind. Need to start a side project / membership site? Try out <a href="%1s" target="_blank">Zuul</a>. Looking to establish yourself as an authoirty on a subject? Try out <a href="%2s" target="_blank">The Authority Pro</a>.', 'easy-footnotes' ),
92 + esc_url( 'https://www.themes.pizza/downloads/zuul-pro/?utm_source=easy-footnotes&utm_medium=button&utm_campaign=efnupsell' ),
93 + esc_url( 'https://www.themes.pizza/downloads/the-authority-pro/?utm_source=easy-footnotes&utm_medium=button&utm_campaign=efnupsell' )
94 + );
95 + ?>
96 + </p>
97 + <p><?php echo wp_kses_post( 'All themes are 100% GPL. Use them on as many sites as you want and make something awesome! And for being a faithful Easy Footnotes user get 20% off with the code <strong>TASTYZA</strong>.', 'easy-footnotes' ); ?></p>
98 + <a class="efn-theme-button" href="<?php echo esc_url( 'https://www.themes.pizza/?utm_source=easy-footnotes&utm_medium=button&utm_campaign=efnupsell' ); ?>" target="_blank"><?php esc_html_e( 'Shop Now', 'easy-footnotes' ); ?></a>
99 + </div>
100 + </div>
82 101 </div>