Skip to content

Commit 39c149a

Browse files
committed
bug fixes and enhancements
1 parent 917c70e commit 39c149a

File tree

11 files changed

+1236
-748
lines changed

11 files changed

+1236
-748
lines changed

admin.php

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<?php
22

3-
function mfbfw_options_page()
4-
{
5-
require_once(FBFW_PATH . 'lib/admin-head.php');
3+
function mfbfw_options_page() {
4+
require_once( FBFW_PATH . 'lib/admin-head.php' );
65

7-
?>
6+
?>
87

98
<div class="wrap about-wrap full-width-layout">
109
<div id="icon-plugins" class="icon32"></div>
1110
<div class="inlined">
1211
<div id="pluginDescription">
13-
<h1><?php printf(__('Fancybox for WordPress (version %s)', 'mfbfw'), FBFW_VERSION); ?></h1>
12+
<h1><?php printf( __( 'Fancybox for WordPress (version %s)', 'mfbfw' ), FBFW_VERSION ); ?></h1>
1413
<p class="about-text">Seamlessly integrates FancyBox into your blog: Upload, activate, and you’re done.
1514
Additional configuration optional.</p></div>
1615
<div id="pluginLogo"><img src="<?php echo FBFW_URL . 'assets/images/icon.jpg'; ?>"></div>
@@ -20,74 +19,69 @@ function mfbfw_options_page()
2019

2120
<form method="post" action="options.php" id="options">
2221

23-
<?php settings_fields('mfbfw-options'); ?>
22+
<?php settings_fields( 'mfbfw-options' ); ?>
2423

2524
<div id="fbfwTabs">
2625
<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-support" style="color:green;"><?php _e('Support', '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-support" style="color:green;"><?php _e( 'Support', 'mfbfw' ); ?></a></li>
3432
</ul>
3533

36-
<div id="fbfw-info">
37-
<?php require_once(FBFW_PATH . 'lib/admin-tab-info.php'); ?>
38-
</div>
39-
4034
<div id="fbfw-appearance">
41-
<?php require_once(FBFW_PATH . 'lib/admin-tab-appearance.php'); ?>
35+
<?php require_once( FBFW_PATH . 'lib/admin-tab-appearance.php' ); ?>
4236
</div>
4337

4438
<div id="fbfw-animations">
45-
<?php require_once(FBFW_PATH . 'lib/admin-tab-animations.php'); ?>
39+
<?php require_once( FBFW_PATH . 'lib/admin-tab-animations.php' ); ?>
4640
</div>
4741

4842
<div id="fbfw-behaviour">
49-
<?php require_once(FBFW_PATH . 'lib/admin-tab-behaviour.php'); ?>
43+
<?php require_once( FBFW_PATH . 'lib/admin-tab-behaviour.php' ); ?>
5044
</div>
5145

5246
<div id="fbfw-galleries">
53-
<?php require_once(FBFW_PATH . 'lib/admin-tab-galleries.php'); ?>
47+
<?php require_once( FBFW_PATH . 'lib/admin-tab-galleries.php' ); ?>
5448
</div>
5549

5650
<div id="fbfw-other">
57-
<?php require_once(FBFW_PATH . 'lib/admin-tab-other.php'); ?>
51+
<?php require_once( FBFW_PATH . 'lib/admin-tab-other.php' ); ?>
5852
</div>
5953

6054
<div id="fbfw-support">
61-
<?php require_once(FBFW_PATH . 'lib/admin-tab-support.php'); ?>
55+
<?php require_once( FBFW_PATH . 'lib/admin-tab-support.php' ); ?>
6256
</div>
6357

6458
</div>
6559

6660
<p class="submit" style="text-align:center;">
6761
<input type="submit" name="mfbfw_update" class="button-primary"
68-
value="<?php esc_attr_e('Save Changes', 'mfbfw'); ?>"/>
62+
value="<?php esc_attr_e( 'Save Changes', 'mfbfw' ); ?>"/>
6963
</p>
7064

7165
</form>
7266

7367
<form method="post" action="">
7468
<div style="text-align:center;padding:0 0 1.5em;margin:-15px 0 5px;">
75-
<?php wp_nonce_field('mfbfw-options-reset'); ?>
69+
<?php wp_nonce_field( 'mfbfw-options-reset' ); ?>
7670
<input type="submit" name="mfbfw_update" id="reset" onClick="return confirmDefaults();"
77-
class="button-secondary" value="<?php esc_attr_e('Revert to defaults', 'mfbfw'); ?>"/>
71+
class="button-secondary" value="<?php esc_attr_e( 'Revert to defaults', 'mfbfw' ); ?>"/>
7872
<input type="hidden" name="action" value="reset"/>
7973
</div>
8074

81-
<div id="mfbfwd"
82-
style="border-top:1px dashed #DDDDDD;margin:20px 0 40px;overflow:hidden;padding-top:25px;width:100%;float:left">
75+
<div id="mfbfwd"
76+
style="border-top:1px dashed #DDDDDD;margin:20px 0 40px;overflow:hidden;padding-top:25px;width:100%;float:left">
8377

84-
Plugin developed and supported by <a href="https://colorlib.com">Colorlib</a>
78+
Plugin developed and supported by <a href="https://colorlib.com">Colorlib</a>
8579

86-
</div>
80+
</div>
8781

8882
</div>
8983

90-
<?php
84+
<?php
9185
}
9286

9387
?>

0 commit comments

Comments
 (0)