|
2 | 2 |
|
3 | 3 | function mfbfw_options_page() { |
4 | 4 |
|
5 | | - global $mfbfw, $mfbfw_version; |
6 | | - |
7 | 5 | require_once( FBFW_PATH . 'lib/admin-head.php' ); |
8 | | - |
9 | 6 | ?> |
10 | 7 |
|
11 | 8 | <div class="wrap"> |
12 | 9 |
|
13 | | - <div id="icon-plugins" class="icon32"></div><h2><?php printf( __('Fancybox for WordPress (version %s)', 'mfbfw'), $mfbfw_version ); ?></h2> |
| 10 | + <div id="icon-plugins" class="icon32"></div> |
| 11 | + <div class="inlined"> |
| 12 | + <div id="pluginDescription"> |
| 13 | + <h2><?php printf( __( 'Fancybox for WordPress (version %s)', 'mfbfw' ), FBFW_VERSION ); ?></h2> |
| 14 | + <p>Seamlessly integrates FancyBox into your blog: Upload, activate, and you’re done. Additional configuration optional.</p></div> |
| 15 | + <div id="pluginLogo"><img src="<?php echo FBFW_URL . 'img/icon.jpg'; ?>"></div> |
| 16 | + </div> |
14 | 17 |
|
15 | | - <br /> |
| 18 | + <br /> |
16 | 19 |
|
17 | | - <form method="post" action="options.php" id="options"> |
| 20 | + <form method="post" action="options.php" id="options"> |
18 | 21 |
|
19 | | - <?php settings_fields( 'mfbfw-options' ); ?> |
| 22 | + <?php settings_fields( 'mfbfw-options' ); ?> |
20 | 23 |
|
21 | | - <div id="fbfwTabs"> |
| 24 | + <div id="fbfwTabs"> |
22 | 25 |
|
23 | | - <h2 class="nav-tab-wrapper"> |
24 | | - <ul id="fbfw_tabs"> |
25 | | - <li><a class="nav-tab selected" href="#fbfw-info"><?php _e( 'Info', 'mfbfw' ); ?></a></li> |
26 | | - <li><a class="nav-tab" href="#fbfw-appearance"><?php _e( 'Appearance', 'mfbfw' ); ?></a></li> |
27 | | - <li><a class="nav-tab" href="#fbfw-animations"><?php _e( 'Animations', 'mfbfw' ); ?></a></li> |
28 | | - <li><a class="nav-tab" href="#fbfw-behaviour"><?php _e( 'Behaviour', 'mfbfw' ); ?></a></li> |
29 | | - <li><a class="nav-tab" href="#fbfw-galleries"><?php _e( 'Galleries', 'mfbfw' ); ?></a></li> |
30 | | - <li><a class="nav-tab" href="#fbfw-other"><?php _e( 'Miscellaneous', 'mfbfw' ); ?></a></li> |
31 | | - <li><a class="nav-tab" href="#fbfw-calls"><?php _e( 'Extra Calls', 'mfbfw' ); ?></a></li> |
32 | | - <li><a class="nav-tab" href="#fbfw-troubleshooting"><?php _e( 'Troubleshooting', 'mfbfw' ); ?></a></li> |
33 | | - <li><a class="nav-tab" href="#fbfw-support" style="color:green;"><?php _e( 'Support', 'mfbfw' ); ?></a></li> |
34 | | - <li><a class="nav-tab" href="#fbfw-uninstall" style="color:red;"><?php _e ('Uninstall', 'mfbfw' ); ?></a></li> |
| 26 | + <ul class="nav-tab-wrapper wp-clearfix"> |
| 27 | + <li><a href="#fbfw-info"><?php _e( 'Info', 'mfbfw' ); ?></a></li> |
| 28 | + <li><a href="#fbfw-appearance"><?php _e( 'Appearance', 'mfbfw' ); ?></a></li> |
| 29 | + <li><a href="#fbfw-animations"><?php _e( 'Animations', 'mfbfw' ); ?></a></li> |
| 30 | + <li><a href="#fbfw-behaviour"><?php _e( 'Behaviour', 'mfbfw' ); ?></a></li> |
| 31 | + <li><a href="#fbfw-galleries"><?php _e( 'Galleries', 'mfbfw' ); ?></a></li> |
| 32 | + <li><a href="#fbfw-other"><?php _e( 'Miscellaneous', 'mfbfw' ); ?></a></li> |
| 33 | + <li><a href="#fbfw-calls"><?php _e( 'Extra Calls', 'mfbfw' ); ?></a></li> |
| 34 | + <li><a href="#fbfw-troubleshooting"><?php _e( 'Troubleshooting', 'mfbfw' ); ?></a></li> |
| 35 | + <li><a href="#fbfw-support" style="color:green;"><?php _e( 'Support', 'mfbfw' ); ?></a></li> |
| 36 | + <li><a href="#fbfw-uninstall" style="color:red;"><?php _e( 'Uninstall', 'mfbfw' ); ?></a></li> |
35 | 37 | </ul> |
36 | | - </h2> |
37 | 38 |
|
38 | | - <div id="fbfw-info"> |
39 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-info.php' ); ?> |
40 | | - </div> |
| 39 | + <div id="fbfw-info"> |
| 40 | + <?php require_once ( FBFW_PATH . 'lib/admin-tab-info.php' ); ?> |
| 41 | + </div> |
41 | 42 |
|
42 | | - <div id="fbfw-appearance"> |
43 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-appearance.php' ); ?> |
44 | | - </div> |
| 43 | + <div id="fbfw-appearance"> |
| 44 | + <?php require_once ( FBFW_PATH . 'lib/admin-tab-appearance.php' ); ?> |
| 45 | + </div> |
45 | 46 |
|
46 | | - <div id="fbfw-animations"> |
47 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-animations.php' ); ?> |
48 | | - </div> |
| 47 | + <div id="fbfw-animations"> |
| 48 | + <?php require_once ( FBFW_PATH . 'lib/admin-tab-animations.php' ); ?> |
| 49 | + </div> |
49 | 50 |
|
50 | | - <div id="fbfw-behaviour"> |
51 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-behaviour.php' ); ?> |
52 | | - </div> |
| 51 | + <div id="fbfw-behaviour"> |
| 52 | + <?php require_once ( FBFW_PATH . 'lib/admin-tab-behaviour.php' ); ?> |
| 53 | + </div> |
53 | 54 |
|
54 | | - <div id="fbfw-galleries"> |
55 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-galleries.php' ); ?> |
56 | | - </div> |
| 55 | + <div id="fbfw-galleries"> |
| 56 | + <?php require_once ( FBFW_PATH . 'lib/admin-tab-galleries.php' ); ?> |
| 57 | + </div> |
57 | 58 |
|
58 | | - <div id="fbfw-other"> |
59 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-other.php' ); ?> |
60 | | - </div> |
| 59 | + <div id="fbfw-other"> |
| 60 | + <?php require_once ( FBFW_PATH . 'lib/admin-tab-other.php' ); ?> |
| 61 | + </div> |
61 | 62 |
|
62 | | - <div id="fbfw-calls"> |
63 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-calls.php' ); ?> |
64 | | - </div> |
| 63 | + <div id="fbfw-calls"> |
| 64 | + <?php require_once ( FBFW_PATH . 'lib/admin-tab-calls.php' ); ?> |
| 65 | + </div> |
65 | 66 |
|
66 | | - <div id="fbfw-troubleshooting"> |
67 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-troubleshooting.php' ); ?> |
68 | | - </div> |
| 67 | + <div id="fbfw-troubleshooting"> |
| 68 | + <?php require_once ( FBFW_PATH . 'lib/admin-tab-troubleshooting.php' ); ?> |
| 69 | + </div> |
69 | 70 |
|
70 | | - <div id="fbfw-support"> |
71 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-support.php' ); ?> |
72 | | - </div> |
| 71 | + <div id="fbfw-support"> |
| 72 | + <?php require_once ( FBFW_PATH . 'lib/admin-tab-support.php' ); ?> |
| 73 | + </div> |
| 74 | + |
| 75 | + <div id="fbfw-uninstall"> |
| 76 | + <?php require_once ( FBFW_PATH . 'lib/admin-tab-uninstall.php' ); ?> |
| 77 | + </div> |
73 | 78 |
|
74 | | - <div id="fbfw-uninstall"> |
75 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-uninstall.php' ); ?> |
76 | 79 | </div> |
77 | 80 |
|
78 | | - </div> |
| 81 | + <p class="submit" style="text-align:center;"> |
| 82 | + <input type="submit" name="mfbfw_update" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'mfbfw' ); ?>" /> |
| 83 | + </p> |
79 | 84 |
|
80 | | - <p class="submit" style="text-align:center;"> |
81 | | - <input type="submit" name="mfbfw_update" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'mfbfw' ); ?>" /> |
82 | | - </p> |
| 85 | + </form> |
83 | 86 |
|
84 | | - </form> |
| 87 | + <form method="post" action=""> |
| 88 | + <div style="text-align:center;padding:0 0 1.5em;margin:-15px 0 5px;"> |
| 89 | + <?php wp_nonce_field( 'mfbfw-options-reset' ); ?> |
| 90 | + <input type="submit" name="mfbfw_update" id="reset" onClick="return confirmDefaults();" class="button-secondary" value="<?php esc_attr_e( 'Revert to defaults', 'mfbfw' ); ?>" /> |
| 91 | + <input type="hidden" name="action" value="reset" /> |
| 92 | + </div> |
| 93 | + </form> |
85 | 94 |
|
86 | | - <form method="post" action=""> |
87 | | - <div style="text-align:center;padding:0 0 1.5em;margin:-15px 0 5px;"> |
88 | | - <?php wp_nonce_field( 'mfbfw-options-reset' ); ?> |
89 | | - <input type="submit" name="mfbfw_update" id="reset" onClick="return confirmDefaults();" class="button-secondary" value="<?php esc_attr_e( 'Revert to defaults', 'mfbfw' ); ?>" /> |
90 | | - <input type="hidden" name="action" value="reset" /> |
91 | | - </div> |
92 | | - </form> |
93 | | - |
94 | | - <div id="mfbfwd"> |
95 | | - |
96 | | - <div class="mfbfw_box_yellow"> |
97 | | - <p style="line-height:1.5em;"><?php _e( 'If you use FancyBox and like it, buy the author a beer!', 'mfbfw' ); ?></p> |
98 | | - <form id="donate_form" action="https://www.paypal.com/cgi-bin/webscr" method="post"> |
99 | | - <input name="cmd" value="_donations" type="hidden"> |
100 | | - <input name="business" value="janis.skarnelis@gmail.com" type="hidden"> |
101 | | - <input name="item_name" value="FancyBox" type="hidden"> |
102 | | - <input name="amount" value="10.00" type="hidden"> |
103 | | - <input name="no_shipping" value="0" type="hidden"> |
104 | | - <input name="no_note" value="1" type="hidden"> |
105 | | - <input name="currency_code" value="EUR" type="hidden"> |
106 | | - <input name="tax" value="0" type="hidden"> |
107 | | - <input name="lc" value="LV" type="hidden"> |
108 | | - <input name="bn" value="PP-DonationsBF" type="hidden"> |
109 | | - <input type="image" style="margin:0;padding:0" border="0" src="<?php echo FBFW_URL ?>css/img/extra_donate.png" name="submit" alt="PayPal - The safer, easier way to pay online!"/> |
110 | | - </form> |
111 | | - </div> |
| 95 | + <div id="mfbfwd" style="border-top:1px dashed #DDDDDD;margin:20px 0 40px;overflow:hidden;padding-top:25px;width:100%;float:left"> |
112 | 96 |
|
113 | | - <div class="mfbfw_box_yellow"> |
114 | | - <p style="line-height:1.5em;"><?php _e( 'The author of this WordPress Plugin also likes beer :P', 'mfbfw' ); ?></p> |
115 | | - <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> |
116 | | - <input type="hidden" name="cmd" value="_s-xclick"/> |
117 | | - <input type="hidden" name="hosted_button_id" value="3878319"/> |
118 | | - <input type="image" style="margin:0;padding:0" border="0" src="<?php echo FBFW_URL ?>css/img/extra_donate.png" name="submit" alt="PayPal - The safer, easier way to pay online!"/> |
119 | | - <img height="1" width="1" border="0" alt="" src="https://www.paypal.com/es_ES/i/scr/pixel.gif" /> |
120 | | - </form> |
121 | | - </div> |
| 97 | + Plugin developer and supported by <a href="https://colorlib.com">Colorlib</a> |
122 | 98 |
|
123 | | - <div class="mfbfw_box_blue"> |
124 | | - <p style="line-height:1.5em;"><a href="http://twitter.com/moskis/"><?php _e( 'Follow me on Twitter for more WordPress Plugins and Themes', 'mfbfw' ); ?></a></p> |
125 | | - <img height="16" width="16" border="0" alt="" src="<?php echo FBFW_URL ?>css/img/extra_twitter.png" /> |
126 | 99 | </div> |
127 | 100 |
|
128 | 101 | </div> |
129 | 102 |
|
130 | | -</div> |
131 | | - |
132 | | -<?php |
133 | | - |
| 103 | + <?php |
134 | 104 | } |
135 | | - |
136 | 105 | ?> |
0 commit comments