PluginProbe
Easy Footnotes / 1.0.16
Easy Footnotes v1.0.16
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
easy-footnotes / easy-footnotes-admin.php

easy-footnotes-admin.php in Easy Footnotes 1.0.16, at easy-footnotes-admin.php

70 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $footnoteOptions = get_option('easy_footnotes_options');
3
4 if ( isset($_POST['easy_footnote_hidden']) && $_POST['easy_footnote_hidden'] == 'Y' ) {
5 //Form data sent
6 $easyFootnoteLabel = $_POST['easy_footnotes_label'];
7 if ($_POST['easy_footnote_check']) {
8 $easyFootnoteCheck = true;
9 } else {
10 $easyFootnoteCheck = false;
11 }
12
13 if (isset( $_POST['hide_easy_footnote_after_posts'] ) && $_POST['hide_easy_footnote_after_posts'] ) {
14 $hide_easy_footnote_after_posts = true;
15 } else {
16 $hide_easy_footnote_after_posts = false;
17 }
18
19 $updateOptions = array(
20 'footnoteLabel' => $easyFootnoteLabel,
21 'useLabel' => $easyFootnoteCheck,
22 'hide_easy_footnote_after_posts' => $hide_easy_footnote_after_posts,
23 );
24
25 update_option('easy_footnotes_options', $updateOptions);
26
27 ?>
28 <div class="updated"><p><strong><?php esc_html_e('Options saved.' ); ?></strong></p></div>
29 <?php
30 } else {
31 //Normal page display
32 $easyFootnoteLabel = $footnoteOptions['footnoteLabel'];
33 $easyFootnoteCheck = $footnoteOptions['useLabel'];
34 $hide_easy_footnote_after_posts = $footnoteOptions['hide_easy_footnote_after_posts'];
35 }
36 ?>
37
38 <div class="wrap">
39 <?php echo "<h2>" . esc_html__( 'Easy Footnotes Settings', 'easy_footnotes_trdom' ) . "</h2>"; ?>
40
41 <form name="easy_footnotes_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
42 <input type="hidden" name="easy_footnote_hidden" value="Y">
43 <?php echo "<h4>" . esc_html__( 'Easy Footnotes Settings', 'easy_footnotes_trdom' ) . "</h4>"; ?>
44 <p><?php esc_html_e("Want to add a label to your footnotes section at the bottom of your post? Just enter some text here and check the box and you're good to go."); ?></p>
45 <p><?php esc_html_e("Easy Footnotes Label: "); ?><input type="text" name="easy_footnotes_label" value="<?php echo esc_attr($easyFootnoteLabel); ?>" size="20"></p>
46
47 <p><?php esc_html_e("Insert Easy Footnotes Label: "); ?><input type="checkbox" name="easy_footnote_check" <?php checked($easyFootnoteCheck); ?> size="20"><?php esc_html_e(""); ?></p>
48
49 <p><?php esc_html_e("Hide Footnotes after post content: "); ?><input type="checkbox" name="hide_easy_footnote_after_posts" <?php checked($hide_easy_footnote_after_posts); ?> size="20"><?php esc_html_e(""); ?></p>
50
51 <p class="submit">
52 <input type="submit" name="Submit" value="<?php esc_attr_e('Update Options', 'easy_footnotes_trdom' ) ?>" />
53 </p>
54 </form>
55
56 <div class="easy-footnotes-shortcode-hint">
57 <p><?php echo __('Shortcode: [note]Insert your note here.[/note]', 'easy-footnotes'); ?></p>
58 </div>
59
60 <div class="efn-preview">
61 <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 plugins_url( '/assets/zuul-wordpress-theme.jpg' , __FILE__ ); ?>" alt="Zuul WordPress Theme homepage in various color options" /></a>
62 <div class="efn-preview-copy">
63 <h2><?php echo __( 'Tasty WordPress Themes', 'easy-footnotes' ); ?></h2>
64 <p><?php printf( __( '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' ), esc_url( 'https://www.themes.pizza/downloads/zuul-pro/?utm_source=easy-footnotes&utm_medium=button&utm_campaign=efnupsell' ), esc_url( 'https://www.themes.pizza/downloads/the-authority-pro/?utm_source=easy-footnotes&utm_medium=button&utm_campaign=efnupsell' ) ); ?></p>
65 <p><?php echo __( '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>
66 <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 echo __( 'Shop Now', 'easy-footnotes' ); ?></a>
67 </div>
68 </div>
69 </div>
70