|
1 | 1 | <?php |
2 | 2 |
|
3 | | -function mfbfw_options_page() { |
4 | | - |
5 | | - require_once( FBFW_PATH . 'lib/admin-head.php' ); |
6 | | - ?> |
7 | | - |
8 | | - <div class="wrap about-wrap full-width-layout"> |
9 | | - <div id="icon-plugins" class="icon32"></div> |
10 | | - <div class="inlined"> |
11 | | - <div id="pluginDescription"> |
12 | | - <h1><?php printf( __( 'Fancybox for WordPress (version %s)', 'mfbfw' ), FBFW_VERSION ); ?></h1> |
13 | | - <p class="about-text">Seamlessly integrates FancyBox into your blog: Upload, activate, and you’re done. Additional configuration optional.</p></div> |
14 | | - <div id="pluginLogo"><img src="<?php echo FBFW_URL . 'assets/images/icon.jpg'; ?>"></div> |
15 | | - </div> |
16 | | - |
17 | | - <br /> |
18 | | - |
19 | | - <form method="post" action="options.php" id="options"> |
20 | | - |
21 | | - <?php settings_fields( 'mfbfw-options' ); ?> |
22 | | - |
23 | | - <div id="fbfwTabs"> |
24 | | - <ul class="nav-tab-wrapper wp-clearfix"> |
25 | | - <li><a href="#fbfw-info"><?php _e( 'Info', 'mfbfw' ); ?></a></li> |
26 | | - <li><a href="#fbfw-appearance"><?php _e( 'Appearance', 'mfbfw' ); ?></a></li> |
27 | | - <li><a href="#fbfw-animations"><?php _e( 'Animations', 'mfbfw' ); ?></a></li> |
28 | | - <li><a href="#fbfw-behaviour"><?php _e( 'Behaviour', 'mfbfw' ); ?></a></li> |
29 | | - <li><a href="#fbfw-galleries"><?php _e( 'Galleries', 'mfbfw' ); ?></a></li> |
30 | | - <li><a href="#fbfw-other"><?php _e( 'Misc.', 'mfbfw' ); ?></a></li> |
31 | | - <!--<li><a href="#fbfw-calls"><?php _e( 'Extra Calls', 'mfbfw' ); ?></a></li>--> |
32 | | - <!--<li><a href="#fbfw-troubleshooting"><?php _e( 'Troubleshooting', 'mfbfw' ); ?></a></li>--> |
33 | | - <li><a href="#fbfw-support" style="color:green;"><?php _e( 'Support', 'mfbfw' ); ?></a></li> |
34 | | - <!--<li><a href="#fbfw-uninstall" style="color:red;"><?php _e( 'Uninstall', 'mfbfw' ); ?></a></li>--> |
35 | | - </ul> |
36 | | - |
37 | | - <div id="fbfw-info"> |
38 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-info.php' ); ?> |
39 | | - </div> |
40 | | - |
41 | | - <div id="fbfw-appearance"> |
42 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-appearance.php' ); ?> |
43 | | - </div> |
44 | | - |
45 | | - <div id="fbfw-animations"> |
46 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-animations.php' ); ?> |
47 | | - </div> |
48 | | - |
49 | | - <div id="fbfw-behaviour"> |
50 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-behaviour.php' ); ?> |
51 | | - </div> |
52 | | - |
53 | | - <div id="fbfw-galleries"> |
54 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-galleries.php' ); ?> |
55 | | - </div> |
56 | | - |
57 | | - <div id="fbfw-other"> |
58 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-other.php' ); ?> |
59 | | - </div> |
60 | | - |
61 | | - <!--<div id="fbfw-calls"> |
62 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-calls.php' ); ?> |
| 3 | +function mfbfw_options_page() |
| 4 | +{ |
| 5 | + |
| 6 | + require_once(FBFW_PATH . 'lib/admin-head.php'); |
| 7 | + ?> |
| 8 | + |
| 9 | + <div class="wrap about-wrap full-width-layout"> |
| 10 | + <div id="icon-plugins" class="icon32"></div> |
| 11 | + <div class="inlined"> |
| 12 | + <div id="pluginDescription"> |
| 13 | + <h1><?php printf(__('Fancybox for WordPress (version %s)', 'mfbfw'), FBFW_VERSION); ?></h1> |
| 14 | + <p class="about-text">Seamlessly integrates FancyBox into your blog: Upload, activate, and you’re done. |
| 15 | + Additional configuration optional.</p></div> |
| 16 | + <div id="pluginLogo"><img src="<?php echo FBFW_URL . 'assets/images/icon.jpg'; ?>"></div> |
| 17 | + </div> |
| 18 | + |
| 19 | + <br/> |
| 20 | + |
| 21 | + <form method="post" action="options.php" id="options"> |
| 22 | + |
| 23 | + <?php settings_fields('mfbfw-options'); ?> |
| 24 | + |
| 25 | + <div id="fbfwTabs"> |
| 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('Misc.', '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>--> |
| 37 | + </ul> |
| 38 | + |
| 39 | + <div id="fbfw-info"> |
| 40 | + <?php require_once(FBFW_PATH . 'lib/admin-tab-info.php'); ?> |
| 41 | + </div> |
| 42 | + |
| 43 | + <div id="fbfw-appearance"> |
| 44 | + <?php require_once(FBFW_PATH . 'lib/admin-tab-appearance.php'); ?> |
| 45 | + </div> |
| 46 | + |
| 47 | + <div id="fbfw-animations"> |
| 48 | + <?php require_once(FBFW_PATH . 'lib/admin-tab-animations.php'); ?> |
| 49 | + </div> |
| 50 | + |
| 51 | + <div id="fbfw-behaviour"> |
| 52 | + <?php require_once(FBFW_PATH . 'lib/admin-tab-behaviour.php'); ?> |
| 53 | + </div> |
| 54 | + |
| 55 | + <div id="fbfw-galleries"> |
| 56 | + <?php require_once(FBFW_PATH . 'lib/admin-tab-galleries.php'); ?> |
| 57 | + </div> |
| 58 | + |
| 59 | + <div id="fbfw-other"> |
| 60 | + <?php require_once(FBFW_PATH . 'lib/admin-tab-other.php'); ?> |
| 61 | + </div> |
| 62 | + |
| 63 | + <!--<div id="fbfw-calls"> |
| 64 | + <?php require_once(FBFW_PATH . 'lib/admin-tab-calls.php'); ?> |
63 | 65 | </div> |
64 | 66 |
|
65 | 67 | <div id="fbfw-troubleshooting"> |
66 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-troubleshooting.php' ); ?> |
| 68 | + <?php require_once(FBFW_PATH . 'lib/admin-tab-troubleshooting.php'); ?> |
67 | 69 | </div>--> |
68 | 70 |
|
69 | | - <div id="fbfw-support"> |
70 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-support.php' ); ?> |
71 | | - </div> |
72 | | -<!-- |
| 71 | + <div id="fbfw-support"> |
| 72 | + <?php require_once(FBFW_PATH . 'lib/admin-tab-support.php'); ?> |
| 73 | + </div> |
| 74 | + <!-- |
73 | 75 | <div id="fbfw-uninstall"> |
74 | | - <?php require_once ( FBFW_PATH . 'lib/admin-tab-uninstall.php' ); ?> |
| 76 | + <?php require_once(FBFW_PATH . 'lib/admin-tab-uninstall.php'); ?> |
75 | 77 | </div> |
76 | 78 | --> |
77 | | - </div> |
| 79 | + </div> |
78 | 80 |
|
79 | | - <p class="submit" style="text-align:center;"> |
80 | | - <input type="submit" name="mfbfw_update" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'mfbfw' ); ?>" /> |
81 | | - </p> |
| 81 | + <p class="submit" style="text-align:center;"> |
| 82 | + <input type="submit" name="mfbfw_update" class="button-primary" |
| 83 | + value="<?php esc_attr_e('Save Changes', 'mfbfw'); ?>"/> |
| 84 | + </p> |
82 | 85 |
|
83 | | - </form> |
| 86 | + </form> |
84 | 87 |
|
85 | | - <form method="post" action=""> |
86 | | - <div style="text-align:center;padding:0 0 1.5em;margin:-15px 0 5px;"> |
87 | | - <?php wp_nonce_field( 'mfbfw-options-reset' ); ?> |
88 | | - <input type="submit" name="mfbfw_update" id="reset" onClick="return confirmDefaults();" class="button-secondary" value="<?php esc_attr_e( 'Revert to defaults', 'mfbfw' ); ?>" /> |
89 | | - <input type="hidden" name="action" value="reset" /> |
90 | | - </div> |
91 | | - </form> |
| 88 | + <form method="post" action=""> |
| 89 | + <div style="text-align:center;padding:0 0 1.5em;margin:-15px 0 5px;"> |
| 90 | + <?php wp_nonce_field('mfbfw-options-reset'); ?> |
| 91 | + <input type="submit" name="mfbfw_update" id="reset" onClick="return confirmDefaults();" |
| 92 | + class="button-secondary" value="<?php esc_attr_e('Revert to defaults', 'mfbfw'); ?>"/> |
| 93 | + <input type="hidden" name="action" value="reset"/> |
| 94 | + </div> |
| 95 | + </form> |
92 | 96 |
|
93 | | - <div id="mfbfwd" style="border-top:1px dashed #DDDDDD;margin:20px 0 40px;overflow:hidden;padding-top:25px;width:100%;float:left"> |
| 97 | + <div id="mfbfwd" |
| 98 | + style="border-top:1px dashed #DDDDDD;margin:20px 0 40px;overflow:hidden;padding-top:25px;width:100%;float:left"> |
94 | 99 |
|
95 | | - Plugin developed and supported by <a href="https://colorlib.com">Colorlib</a> |
| 100 | + Plugin developed and supported by <a href="https://colorlib.com">Colorlib</a> |
96 | 101 |
|
97 | | - </div> |
| 102 | + </div> |
98 | 103 |
|
99 | | - </div> |
| 104 | + </div> |
100 | 105 |
|
101 | | - <?php |
| 106 | + <?php |
102 | 107 | } |
| 108 | + |
103 | 109 | ?> |
0 commit comments