Cryout Serious Theme Settings - Version 0.5.9

Version Description

  • Extended support for Mantra 3.0
  • Fixed missing "need help" image on some browsers due to typo
  • Added direct access check to all php files
  • Updated themes information
  • Bumped supported WordPress version to 4.9.1
Download this release

Release Info

Developer Cryout Creations
Plugin Icon wp plugin Cryout Serious Theme Settings
Version 0.5.9
Comparing to
See all releases

Code changes from version 0.5.8.1 to 0.5.9

cryout-theme-settings.php CHANGED
@@ -3,15 +3,18 @@
3
  Plugin Name: Cryout Serious Theme Settings
4
  Plugin URI: https://www.cryoutcreations.eu/serious-theme-settings
5
  Description: This plugin is designed to restore our theme's settings page functionality after the enforcement of the Customize-based theme settings. It is only compatible with and will only function when one of our themes is active: Nirvana, Parabola, Tempera or Mantra.
6
- Version: 0.5.8.1
7
  Author: Cryout Creations
8
  Author URI: https://www.cryoutcreations.eu
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl.html
11
  */
12
 
 
 
 
13
  class Cryout_Theme_Settings {
14
- public $version = "0.5.8.1";
15
  public $settings = array();
16
 
17
  private $status = 0; // 0 = inactive, 1 = active, 2 = good theme, wrong version, 3 = wrong theme, 4 = compatibility for wp4.4, 5 = theme requires update
3
  Plugin Name: Cryout Serious Theme Settings
4
  Plugin URI: https://www.cryoutcreations.eu/serious-theme-settings
5
  Description: This plugin is designed to restore our theme's settings page functionality after the enforcement of the Customize-based theme settings. It is only compatible with and will only function when one of our themes is active: Nirvana, Parabola, Tempera or Mantra.
6
+ Version: 0.5.9
7
  Author: Cryout Creations
8
  Author URI: https://www.cryoutcreations.eu
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl.html
11
  */
12
 
13
+ // Exit if accessed directly
14
+ if ( !defined( 'ABSPATH' ) ) exit;
15
+
16
  class Cryout_Theme_Settings {
17
+ public $version = "0.5.9";
18
  public $settings = array();
19
 
20
  private $status = 0; // 0 = inactive, 1 = active, 2 = good theme, wrong version, 3 = wrong theme, 4 = compatibility for wp4.4, 5 = theme requires update
inc/extra.php CHANGED
@@ -1,182 +1,187 @@
1
- <div id="latest-themes" class="postbox">
2
- <h3 class="hndle"> Our latest free themes </h3>
3
- <div id="slider">
4
- <a href="#" class="control_next">></a>
5
- <a href="#" class="control_prev"><</a>
6
- <ul>
7
- <li><a href="https://www.cryoutcreations.eu/wordpress-themes/anima" target="_blank"><span>Anima WordPress Theme</span><img src="<?php echo $url ?>/anima.jpg"></a></li>
8
- <li><a href="https://www.cryoutcreations.eu/wordpress-themes/septera" target="_blank"><span>Septera WordPress Theme</span><img src="<?php echo $url ?>/septera.jpg"></a></li>
9
- <li><a href="https://www.cryoutcreations.eu/wordpress-themes/verbosa" target="_blank"><span>Verbosa WordPress Theme</span><img src="<?php echo $url ?>/verbosa.jpg"></a></li>
10
- <li><a href="https://www.cryoutcreations.eu/wordpress-themes/fluida" target="_blank"><span>Fluida WordPress Theme</span><img src="<?php echo $url ?>/fluida.jpg"></a></li>
11
- </ul>
12
- </div>
13
- </div>
14
-
15
- <div id="priority-support" class="postbox priority-support">
16
- <div title="Click to toggle" class="handlediv"><br /></div>
17
- <h3 class="hndle"> Need help? </h3>
18
- <div class="inside">
19
- <a href="https://www.cryoutcreations.eu/pricing" target="_blank"><img src="<?php echo $url ?>/priority-support.jpg' ?>"></a>
20
- </div><!--inside-->
21
- </div>
22
-
23
- <style type="text/css">
24
- .priority-support.postbox .inside {
25
- margin: 0;
26
- padding: 5px 0 0 0;
27
- }
28
-
29
- #slider {
30
- position: relative;
31
- overflow: hidden;
32
- margin: 5px auto 0;
33
- }
34
-
35
- #slider ul {
36
- position: relative;
37
- margin: 0;
38
- padding: 0;
39
- height: 375px;
40
- list-style: none;
41
- overflow: hidden;
42
- }
43
-
44
- #slider ul li {
45
- position: relative;
46
- display: block;
47
- float: left;
48
- margin: 0;
49
- padding: 0;
50
- width: 500px;
51
- height: 375px;
52
- background: #ccc;
53
- text-align: center;
54
- }
55
-
56
- #slider a span {
57
- display: inline-block;
58
- position: absolute;
59
- left: 0;
60
- right: 0;
61
- bottom: 0;
62
- margin: auto;
63
- opacity: 0;
64
- background: rgba(0,0,0,.5);
65
- max-width: 200px;
66
- height: 40px;
67
- line-height: 40px;
68
- font-size: 1.2em;
69
- color: #FFF;
70
- -webkit-transition: .3s ease-out all;
71
- transition: .3s ease-out all;
72
- }
73
-
74
- #slider:hover a span {
75
- opacity: 1;
76
- }
77
-
78
- a.control_prev,
79
- a.control_next {
80
- position: absolute;
81
- top: 50%;
82
- -webkit-transform:translateY(-50%);
83
- transform:translateY(-50%);
84
- z-index: 999;
85
- display: block;
86
- padding: 4% 3%;
87
- width: auto;
88
- height: auto;
89
- background: #2a2a2a;
90
- color: #fff;
91
- text-decoration: none;
92
- font-weight: 600;
93
- font-size: 18px;
94
- opacity: 0.3;
95
- cursor: pointer;
96
- }
97
-
98
- a.control_prev:hover,
99
- a.control_next:hover {
100
- opacity: .8;
101
- -webkit-transition: all 0.2s ease;
102
- transition: all 0.2s ease;
103
- }
104
-
105
- a.control_prev {
106
- border-radius: 0 2px 2px 0;
107
- }
108
-
109
- a.control_next {
110
- right: 0;
111
- border-radius: 2px 0 0 2px;
112
- }
113
-
114
- .no-js #slider img {
115
- width: 100%;
116
- }
117
-
118
- .no-js #slider ul li {
119
- width: 50%;
120
- height: 50%;
121
- }
122
-
123
- .no-js .control_next,
124
- .no-js .control_prev {
125
- display: none;
126
- }
127
-
128
- .no-js #slider ul li:hover a span {
129
- background: rgba(0,0,0,.8);
130
- }
131
- </style>
132
-
133
- <script type="text/javascript">
134
- jQuery(document).ready(function ($) {
135
- interval = 25000;
136
- // autoplay
137
- setInterval(function () {
138
- moveRight();
139
- }, interval);
140
-
141
-
142
- var slideCount = $('#slider ul li').length;
143
- var slideWidth = $('#slider ul li').width();
144
- var slideHeight = $('#slider ul li').height();
145
- var sliderUlWidth = slideCount * slideWidth;
146
-
147
- $('#slider').css({ width: slideWidth, height: slideHeight });
148
-
149
- $('#slider ul').css({ width: sliderUlWidth, marginLeft: - slideWidth });
150
-
151
- $('#slider ul li:last-child').prependTo('#slider ul');
152
-
153
- function moveLeft() {
154
- $('#slider ul').animate({
155
- left: + slideWidth
156
- }, 500, function () {
157
- $('#slider ul li:last-child').prependTo('#slider ul');
158
- $('#slider ul').css('left', '');
159
- });
160
- };
161
-
162
- function moveRight() {
163
- $('#slider ul').animate({
164
- left: - slideWidth
165
- }, 500, function () {
166
- $('#slider ul li:first-child').appendTo('#slider ul');
167
- $('#slider ul').css('left', '');
168
- });
169
- };
170
-
171
- $('a.control_prev').click(function ( e ) {
172
- e.preventDefault();
173
- moveLeft();
174
- });
175
-
176
- $('a.control_next').click(function ( e ) {
177
- e.preventDefault();
178
- moveRight();
179
- });
180
-
181
- });
 
 
 
 
 
182
  </script>
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( !defined( 'ABSPATH' ) ) exit;
4
+ ?>
5
+ <div id="latest-themes" class="postbox">
6
+ <h3 class="hndle"> Our latest free themes </h3>
7
+ <div id="slider">
8
+ <a href="#" class="control_next">></a>
9
+ <a href="#" class="control_prev"><</a>
10
+ <ul>
11
+ <li><a href="https://www.cryoutcreations.eu/wordpress-themes/kahuna" target="_blank"><span>Kahuna WordPress Theme</span><img src="<?php echo $url ?>/kahuna.jpg"></a></li>
12
+ <li><a href="https://www.cryoutcreations.eu/wordpress-themes/anima" target="_blank"><span>Anima WordPress Theme</span><img src="<?php echo $url ?>/anima.jpg"></a></li>
13
+ <li><a href="https://www.cryoutcreations.eu/wordpress-themes/septera" target="_blank"><span>Septera WordPress Theme</span><img src="<?php echo $url ?>/septera.jpg"></a></li>
14
+ <li><a href="https://www.cryoutcreations.eu/wordpress-themes/verbosa" target="_blank"><span>Verbosa WordPress Theme</span><img src="<?php echo $url ?>/verbosa.jpg"></a></li>
15
+ <li><a href="https://www.cryoutcreations.eu/wordpress-themes/fluida" target="_blank"><span>Fluida WordPress Theme</span><img src="<?php echo $url ?>/fluida.jpg"></a></li>
16
+ </ul>
17
+ </div>
18
+ </div>
19
+
20
+ <div id="priority-support" class="postbox priority-support">
21
+ <div title="Click to toggle" class="handlediv"><br /></div>
22
+ <h3 class="hndle"> Need help? </h3>
23
+ <div class="inside">
24
+ <a href="https://www.cryoutcreations.eu/pricing" target="_blank"><img src="<?php echo $url ?>/priority-support.jpg'"></a>
25
+ </div><!--inside-->
26
+ </div>
27
+
28
+ <style type="text/css">
29
+ .priority-support.postbox .inside {
30
+ margin: 0;
31
+ padding: 5px 0 0 0;
32
+ }
33
+
34
+ #slider {
35
+ position: relative;
36
+ overflow: hidden;
37
+ margin: 5px auto 0;
38
+ }
39
+
40
+ #slider ul {
41
+ position: relative;
42
+ margin: 0;
43
+ padding: 0;
44
+ height: 375px;
45
+ list-style: none;
46
+ overflow: hidden;
47
+ }
48
+
49
+ #slider ul li {
50
+ position: relative;
51
+ display: block;
52
+ float: left;
53
+ margin: 0;
54
+ padding: 0;
55
+ width: 500px;
56
+ height: 375px;
57
+ background: #ccc;
58
+ text-align: center;
59
+ }
60
+
61
+ #slider a span {
62
+ display: inline-block;
63
+ position: absolute;
64
+ left: 0;
65
+ right: 0;
66
+ bottom: 0;
67
+ margin: auto;
68
+ opacity: 0;
69
+ background: rgba(0,0,0,.5);
70
+ max-width: 200px;
71
+ height: 40px;
72
+ line-height: 40px;
73
+ font-size: 1.2em;
74
+ color: #FFF;
75
+ -webkit-transition: .3s ease-out all;
76
+ transition: .3s ease-out all;
77
+ }
78
+
79
+ #slider:hover a span {
80
+ opacity: 1;
81
+ }
82
+
83
+ a.control_prev,
84
+ a.control_next {
85
+ position: absolute;
86
+ top: 50%;
87
+ -webkit-transform:translateY(-50%);
88
+ transform:translateY(-50%);
89
+ z-index: 999;
90
+ display: block;
91
+ padding: 4% 3%;
92
+ width: auto;
93
+ height: auto;
94
+ background: #2a2a2a;
95
+ color: #fff;
96
+ text-decoration: none;
97
+ font-weight: 600;
98
+ font-size: 18px;
99
+ opacity: 0.3;
100
+ cursor: pointer;
101
+ }
102
+
103
+ a.control_prev:hover,
104
+ a.control_next:hover {
105
+ opacity: .8;
106
+ -webkit-transition: all 0.2s ease;
107
+ transition: all 0.2s ease;
108
+ }
109
+
110
+ a.control_prev {
111
+ border-radius: 0 2px 2px 0;
112
+ }
113
+
114
+ a.control_next {
115
+ right: 0;
116
+ border-radius: 2px 0 0 2px;
117
+ }
118
+
119
+ .no-js #slider img {
120
+ width: 100%;
121
+ }
122
+
123
+ .no-js #slider ul li {
124
+ width: 50%;
125
+ height: 50%;
126
+ }
127
+
128
+ .no-js .control_next,
129
+ .no-js .control_prev {
130
+ display: none;
131
+ }
132
+
133
+ .no-js #slider ul li:hover a span {
134
+ background: rgba(0,0,0,.8);
135
+ }
136
+ </style>
137
+
138
+ <script type="text/javascript">
139
+ jQuery(document).ready(function ($) {
140
+ interval = 25000;
141
+ // autoplay
142
+ setInterval(function () {
143
+ moveRight();
144
+ }, interval);
145
+
146
+
147
+ var slideCount = $('#slider ul li').length;
148
+ var slideWidth = $('#slider ul li').width();
149
+ var slideHeight = $('#slider ul li').height();
150
+ var sliderUlWidth = slideCount * slideWidth;
151
+
152
+ $('#slider').css({ width: slideWidth, height: slideHeight });
153
+
154
+ $('#slider ul').css({ width: sliderUlWidth, marginLeft: - slideWidth });
155
+
156
+ $('#slider ul li:last-child').prependTo('#slider ul');
157
+
158
+ function moveLeft() {
159
+ $('#slider ul').animate({
160
+ left: + slideWidth
161
+ }, 500, function () {
162
+ $('#slider ul li:last-child').prependTo('#slider ul');
163
+ $('#slider ul').css('left', '');
164
+ });
165
+ };
166
+
167
+ function moveRight() {
168
+ $('#slider ul').animate({
169
+ left: - slideWidth
170
+ }, 500, function () {
171
+ $('#slider ul li:first-child').appendTo('#slider ul');
172
+ $('#slider ul').css('left', '');
173
+ });
174
+ };
175
+
176
+ $('a.control_prev').click(function ( e ) {
177
+ e.preventDefault();
178
+ moveLeft();
179
+ });
180
+
181
+ $('a.control_next').click(function ( e ) {
182
+ e.preventDefault();
183
+ moveRight();
184
+ });
185
+
186
+ });
187
  </script>
inc/mantra.php CHANGED
@@ -1,21 +1,30 @@
1
- <?php
2
- if (function_exists('mantra_init_fn')):
3
- add_action('admin_init', 'mantra_init_fn');
4
- endif;
5
-
6
- function mantra_theme_settings_restore($class='') {
7
- global $cryout_theme_settings;
8
- ?>
9
- <form name="mantra_form" action="options.php" method="post" enctype="multipart/form-data">
10
- <div id="accordion">
11
- <?php settings_fields('ma_options'); ?>
12
- <?php do_settings_sections('mantra-page'); ?>
13
- </div>
14
- <div id="submitDiv">
15
- <br>
16
- <input class="button" name="ma_options[mantra_submit]" type="submit" style="float:right;" value="<?php _e('Save Changes','mantra'); ?>" />
17
- <input class="button" name="ma_options[mantra_defaults]" id="mantra_defaults" type="submit" style="float:left;" value="<?php _e('Reset to Defaults','mantra'); ?>" />
18
- </div>
19
- </form>
20
- <?php
21
- } // mantra_theme_settings_buttons()
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( !defined( 'ABSPATH' ) ) exit;
4
+
5
+ if (function_exists('mantra_init_fn')):
6
+ add_action('admin_init', 'mantra_init_fn');
7
+ add_action('mantra_before_righty', 'mantra_extra');
8
+ endif;
9
+
10
+ function mantra_theme_settings_restore($class='') {
11
+ global $cryout_theme_settings;
12
+ ?>
13
+ <form name="mantra_form" action="options.php" method="post" enctype="multipart/form-data">
14
+ <div id="accordion">
15
+ <?php settings_fields('ma_options'); ?>
16
+ <?php do_settings_sections('mantra-page'); ?>
17
+ </div>
18
+ <div id="submitDiv">
19
+ <br>
20
+ <input class="button" name="ma_options[mantra_submit]" type="submit" style="float:right;" value="<?php _e('Save Changes','mantra'); ?>" />
21
+ <input class="button" name="ma_options[mantra_defaults]" id="mantra_defaults" type="submit" style="float:left;" value="<?php _e('Reset to Defaults','mantra'); ?>" />
22
+ </div>
23
+ </form>
24
+ <?php
25
+ } // mantra_theme_settings_buttons()
26
+
27
+ function mantra_extra() {
28
+ $url = plugin_dir_url( dirname(__FILE__) ) . '/media';
29
+ include_once( plugin_dir_path( __FILE__ ) . 'extra.php' );
30
+ } // mantra_extra()
inc/nirvana.php CHANGED
@@ -1,27 +1,30 @@
1
- <?php
2
- if (function_exists('nirvana_init_fn')):
3
- add_action('admin_init', 'nirvana_init_fn');
4
- add_action('nirvana_before_righty', 'nirvana_extra');
5
- endif;
6
-
7
- function nirvana_theme_settings_restore($class='') {
8
- global $cryout_theme_settings;
9
- ?>
10
- <form name="nirvana_form" id="nirvana_form" action="options.php" method="post" enctype="multipart/form-data">
11
- <div id="accordion" class="<?php echo $class; ?>">
12
- <?php settings_fields('nirvana_settings'); ?>
13
- <?php do_settings_sections('nirvana-page'); ?>
14
- </div>
15
- <div id="submitDiv">
16
- <br>
17
- <input class="button" name="nirvana_settings[nirvana_submit]" type="submit" id="nirvana_sumbit" style="float:right;" value="<?php _e('Save Changes','nirvana'); ?>" />
18
- <input class="button" name="nirvana_settings[nirvana_defaults]" id="nirvana_defaults" type="submit" style="float:left;" value="<?php _e('Reset to Defaults','nirvana'); ?>" />
19
- </div>
20
- </form>
21
- <?php
22
- } // nirvana_theme_settings_buttons()
23
-
24
- function nirvana_extra() {
25
- $url = plugin_dir_url( dirname(__FILE__) ) . '/media';
26
- include_once( plugin_dir_path( __FILE__ ) . 'extra.php' );
27
- } // nirvana_extra()
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( !defined( 'ABSPATH' ) ) exit;
4
+
5
+ if (function_exists('nirvana_init_fn')):
6
+ add_action('admin_init', 'nirvana_init_fn');
7
+ add_action('nirvana_before_righty', 'nirvana_extra');
8
+ endif;
9
+
10
+ function nirvana_theme_settings_restore($class='') {
11
+ global $cryout_theme_settings;
12
+ ?>
13
+ <form name="nirvana_form" id="nirvana_form" action="options.php" method="post" enctype="multipart/form-data">
14
+ <div id="accordion" class="<?php echo $class; ?>">
15
+ <?php settings_fields('nirvana_settings'); ?>
16
+ <?php do_settings_sections('nirvana-page'); ?>
17
+ </div>
18
+ <div id="submitDiv">
19
+ <br>
20
+ <input class="button" name="nirvana_settings[nirvana_submit]" type="submit" id="nirvana_sumbit" style="float:right;" value="<?php _e('Save Changes','nirvana'); ?>" />
21
+ <input class="button" name="nirvana_settings[nirvana_defaults]" id="nirvana_defaults" type="submit" style="float:left;" value="<?php _e('Reset to Defaults','nirvana'); ?>" />
22
+ </div>
23
+ </form>
24
+ <?php
25
+ } // nirvana_theme_settings_buttons()
26
+
27
+ function nirvana_extra() {
28
+ $url = plugin_dir_url( dirname(__FILE__) ) . '/media';
29
+ include_once( plugin_dir_path( __FILE__ ) . 'extra.php' );
30
+ } // nirvana_extra()
inc/parabola.php CHANGED
@@ -1,27 +1,30 @@
1
- <?php
2
- if (function_exists('parabola_init_fn')):
3
- add_action('admin_init', 'parabola_init_fn');
4
- add_action('parabola_before_righty', 'parabola_extra');
5
- endif;
6
-
7
- function parabola_theme_settings_restore($class='') {
8
- global $cryout_theme_settings;
9
- ?>
10
- <form name="parabola_form" action="options.php" method="post" enctype="multipart/form-data">
11
- <div id="accordion">
12
- <?php settings_fields('parabola_settings'); ?>
13
- <?php do_settings_sections('parabola-page'); ?>
14
- </div>
15
- <div id="submitDiv">
16
- <br>
17
- <input class="button" name="parabola_settings[parabola_submit]" type="submit" style="float:right;" value="<?php _e('Save Changes','parabola'); ?>" />
18
- <input class="button" name="parabola_settings[parabola_defaults]" id="parabola_defaults" type="submit" style="float:left;" value="<?php _e('Reset to Defaults','parabola'); ?>" />
19
- </div>
20
- </form>
21
- <?php
22
- } // parabola_theme_settings_buttons()
23
-
24
- function parabola_extra() {
25
- $url = plugin_dir_url( dirname(__FILE__) ) . '/media';
26
- include_once( plugin_dir_path( __FILE__ ) . 'extra.php' );
 
 
 
27
  } // parabola_extra()
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( !defined( 'ABSPATH' ) ) exit;
4
+
5
+ if (function_exists('parabola_init_fn')):
6
+ add_action('admin_init', 'parabola_init_fn');
7
+ add_action('parabola_before_righty', 'parabola_extra');
8
+ endif;
9
+
10
+ function parabola_theme_settings_restore($class='') {
11
+ global $cryout_theme_settings;
12
+ ?>
13
+ <form name="parabola_form" action="options.php" method="post" enctype="multipart/form-data">
14
+ <div id="accordion">
15
+ <?php settings_fields('parabola_settings'); ?>
16
+ <?php do_settings_sections('parabola-page'); ?>
17
+ </div>
18
+ <div id="submitDiv">
19
+ <br>
20
+ <input class="button" name="parabola_settings[parabola_submit]" type="submit" style="float:right;" value="<?php _e('Save Changes','parabola'); ?>" />
21
+ <input class="button" name="parabola_settings[parabola_defaults]" id="parabola_defaults" type="submit" style="float:left;" value="<?php _e('Reset to Defaults','parabola'); ?>" />
22
+ </div>
23
+ </form>
24
+ <?php
25
+ } // parabola_theme_settings_buttons()
26
+
27
+ function parabola_extra() {
28
+ $url = plugin_dir_url( dirname(__FILE__) ) . '/media';
29
+ include_once( plugin_dir_path( __FILE__ ) . 'extra.php' );
30
  } // parabola_extra()
inc/settings.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  $theme_page_url = admin_url( 'themes.php?page=' . $this->current_theme['slug'] . '-page' );
3
  $theme_slug = $this->current_theme['slug'];
4
  $theme_name = ucwords($this->current_theme['slug']);
1
  <?php
2
+ // Exit if accessed directly
3
+ if ( !defined( 'ABSPATH' ) ) exit;
4
+
5
  $theme_page_url = admin_url( 'themes.php?page=' . $this->current_theme['slug'] . '-page' );
6
  $theme_slug = $this->current_theme['slug'];
7
  $theme_name = ucwords($this->current_theme['slug']);
inc/tempera.php CHANGED
@@ -1,27 +1,30 @@
1
- <?php
2
- if (function_exists('tempera_init_fn')):
3
- add_action('admin_init', 'tempera_init_fn');
4
- add_action('tempera_before_righty', 'tempera_extra');
5
- endif;
6
-
7
- function tempera_theme_settings_restore($class='') {
8
- global $cryout_theme_settings;
9
- ?>
10
- <form name="tempera_form" id="tempera_form" action="options.php" method="post" enctype="multipart/form-data">
11
- <div id="accordion">
12
- <?php settings_fields('tempera_settings'); ?>
13
- <?php do_settings_sections('tempera-page'); ?>
14
- </div>
15
- <div id="submitDiv">
16
- <br>
17
- <input class="button" name="tempera_settings[tempera_submit]" type="submit" id="tempera_sumbit" style="float:right;" value="<?php _e('Save Changes','tempera'); ?>" />
18
- <input class="button" name="tempera_settings[tempera_defaults]" id="tempera_defaults" type="submit" style="float:left;" value="<?php _e('Reset to Defaults','tempera'); ?>" />
19
- </div>
20
- </form>
21
- <?php
22
- } // tempera_theme_settings_buttons()
23
-
24
- function tempera_extra() {
25
- $url = plugin_dir_url( dirname(__FILE__) ) . '/media';
26
- include_once( plugin_dir_path( __FILE__ ) . 'extra.php' );
 
 
 
27
  } // tempera_extra()
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( !defined( 'ABSPATH' ) ) exit;
4
+
5
+ if (function_exists('tempera_init_fn')):
6
+ add_action('admin_init', 'tempera_init_fn');
7
+ add_action('tempera_before_righty', 'tempera_extra');
8
+ endif;
9
+
10
+ function tempera_theme_settings_restore($class='') {
11
+ global $cryout_theme_settings;
12
+ ?>
13
+ <form name="tempera_form" id="tempera_form" action="options.php" method="post" enctype="multipart/form-data">
14
+ <div id="accordion">
15
+ <?php settings_fields('tempera_settings'); ?>
16
+ <?php do_settings_sections('tempera-page'); ?>
17
+ </div>
18
+ <div id="submitDiv">
19
+ <br>
20
+ <input class="button" name="tempera_settings[tempera_submit]" type="submit" id="tempera_sumbit" style="float:right;" value="<?php _e('Save Changes','tempera'); ?>" />
21
+ <input class="button" name="tempera_settings[tempera_defaults]" id="tempera_defaults" type="submit" style="float:left;" value="<?php _e('Reset to Defaults','tempera'); ?>" />
22
+ </div>
23
+ </form>
24
+ <?php
25
+ } // tempera_theme_settings_buttons()
26
+
27
+ function tempera_extra() {
28
+ $url = plugin_dir_url( dirname(__FILE__) ) . '/media';
29
+ include_once( plugin_dir_path( __FILE__ ) . 'extra.php' );
30
  } // tempera_extra()
media/anima.jpg CHANGED
Binary file
media/kahuna.jpg ADDED
Binary file
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Cryout Creations
3
  Donate link: https://www.cryoutcreations.eu/donate/
4
  Tags: theme, admin
5
  Requires at least: 4.2
6
- Tested up to: 4.8.1
7
- Stable tag: 0.5.8.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -50,9 +50,16 @@ You do not need this plugin if you use do not use any of the listed themes.
50
 
51
  == Changelog ==
52
 
 
 
 
 
 
 
 
53
  = 0.5.8.1 =
54
  * Fixed compatibility mode malfunctioning
55
- * Fixed misssing theme images in compatibility mode info
56
 
57
  = 0.5.8 =
58
  * Added meta links
3
  Donate link: https://www.cryoutcreations.eu/donate/
4
  Tags: theme, admin
5
  Requires at least: 4.2
6
+ Tested up to: 4.9.1
7
+ Stable tag: 0.5.9
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
50
 
51
  == Changelog ==
52
 
53
+ = 0.5.9 =
54
+ * Extended support for Mantra 3.0
55
+ * Fixed missing "need help" image on some browsers due to typo
56
+ * Added direct access check to all php files
57
+ * Updated themes information
58
+ * Bumped supported WordPress version to 4.9.1
59
+
60
  = 0.5.8.1 =
61
  * Fixed compatibility mode malfunctioning
62
+ * Fixed missing theme images in compatibility mode info
63
 
64
  = 0.5.8 =
65
  * Added meta links