Version Description
(Released: May 07, 2018) = * Compatibility check up to version 4.9.5 * Update: Moved domain from catchthemes.com to catchplugins.com
Download this release
Release Info
Developer | catchthemes |
Plugin | To Top |
Version | 1.6 |
Comparing to | |
See all releases |
Code changes from version 1.5.6 to 1.6
- LICENSE.txt +0 -0
- README.txt +11 -7
- admin/class-to-top-admin.php +5 -3
- admin/css/admin-dashboard.css +715 -0
- admin/css/customizer.css +0 -0
- admin/css/to-top-admin.css +107 -27
- admin/images/arrow-dark.png +0 -0
- admin/images/arrow-down.png +0 -0
- admin/images/arrow-light.png +0 -0
- admin/images/arrow-up.png +0 -0
- admin/images/default.png +0 -0
- admin/images/free-plugin-246x116.png +0 -0
- admin/images/free-theme-246x175.jpg +0 -0
- admin/images/premium-plugin-246x116.png +0 -0
- admin/images/premium-theme-246x175.jpg +0 -0
- admin/index.php +0 -0
- admin/js/jquery.matchHeight.min.js +1 -0
- admin/js/to-top-admin.js +48 -3
- admin/js/to-top-customizer-scripts.js +0 -0
- admin/partials/customizer/customizer-custom-controls.php +1 -1
- admin/partials/footer.php +14 -0
- admin/partials/sidebar.php +45 -0
- admin/partials/to-top-admin-display.php +57 -343
- admin/partials/to-top-dashboard.php +314 -0
- includes/class-to-top-activator.php +3 -3
- includes/class-to-top-deactivator.php +3 -3
- includes/class-to-top-i18n.php +3 -3
- includes/class-to-top-loader.php +3 -3
- includes/class-to-top.php +4 -4
- includes/index.php +0 -0
- index.php +0 -0
- languages/to-top.pot +192 -134
- public/class-to-top-public.php +3 -3
- public/css/font-awesome/css/font-awesome.css +0 -0
- public/css/font-awesome/css/font-awesome.min.css +0 -0
- public/css/font-awesome/fonts/FontAwesome.otf +0 -0
- public/css/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- public/css/font-awesome/fonts/fontawesome-webfont.svg +0 -0
- public/css/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- public/css/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- public/css/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- public/css/genericons/Genericons.eot +0 -0
- public/css/genericons/Genericons.svg +0 -0
- public/css/genericons/Genericons.ttf +0 -0
- public/css/genericons/Genericons.woff +0 -0
- public/css/genericons/genericons.css +0 -0
- public/css/to-top-public.css +0 -0
- public/index.php +0 -0
- public/js/to-top-public.js +0 -0
- to-top.php +7 -7
- uninstall.php +1 -1
LICENSE.txt
CHANGED
File without changes
|
README.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Plugin Name ===
|
2 |
-
Contributors: catchthemes, sakinshrestha, pratikshrestha, maheshmaharjan
|
3 |
-
Donate link: https://
|
4 |
Tags: to top, scroll up, arrow, button, icon, link to top, scroll, back to top, scroll to top, scroll top, scroll up, simple scroll to top, simple back to top, smooth scroll
|
5 |
Requires at least: 4.5
|
6 |
-
Tested up to: 4.9
|
7 |
-
Stable tag:
|
8 |
License: GNU General Public License, version 3 (GPLv3)
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
@@ -32,7 +32,7 @@ When a page or post has heaps of content, visitors have to scroll down to read t
|
|
32 |
|
33 |
= Premium Support =
|
34 |
|
35 |
-
Catch
|
36 |
|
37 |
= Translation =
|
38 |
|
@@ -57,8 +57,12 @@ You'll then see To Top dashboard from which you can enable or disable the button
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
|
|
60 |
= 1.5.6 =
|
61 |
-
* Replaced: div with span (Reported by: jacktester)
|
62 |
|
63 |
= 1.5.5 =
|
64 |
* Bug Fixed: Translation issue, replace top-up text domain to to-top in to-top-admin-display.php file ( Reported By: Guillaume Blet )
|
@@ -95,4 +99,4 @@ You'll then see To Top dashboard from which you can enable or disable the button
|
|
95 |
* Added Font Awesome Support
|
96 |
|
97 |
= 1.0 =
|
98 |
-
* Initial Release
|
1 |
=== Plugin Name ===
|
2 |
+
Contributors: catchplugins, catchthemes, sakinshrestha, pratikshrestha, maheshmaharjan
|
3 |
+
Donate link: https://catchplugins.com/plugins/to-top/
|
4 |
Tags: to top, scroll up, arrow, button, icon, link to top, scroll, back to top, scroll to top, scroll top, scroll up, simple scroll to top, simple back to top, smooth scroll
|
5 |
Requires at least: 4.5
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: trunk
|
8 |
License: GNU General Public License, version 3 (GPLv3)
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
32 |
|
33 |
= Premium Support =
|
34 |
|
35 |
+
Catch Plugins team does not provide support for the To Top plugin on the WordPress.org forums. Support is provided at [To Top Support Forum](https://catchplugins.com/support-forum/forum/to-top/)
|
36 |
|
37 |
= Translation =
|
38 |
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 1.6 (Released: May 07, 2018) =
|
61 |
+
* Compatibility check up to version 4.9.5
|
62 |
+
* Update: Moved domain from catchthemes.com to catchplugins.com
|
63 |
+
|
64 |
= 1.5.6 =
|
65 |
+
* Replaced: div with span (Reported by: jacktester)
|
66 |
|
67 |
= 1.5.5 =
|
68 |
* Bug Fixed: Translation issue, replace top-up text domain to to-top in to-top-admin-display.php file ( Reported By: Guillaume Blet )
|
99 |
* Added Font Awesome Support
|
100 |
|
101 |
= 1.0 =
|
102 |
+
* Initial Release
|
admin/class-to-top-admin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* The admin-specific functionality of the plugin.
|
5 |
*
|
6 |
-
* @link
|
7 |
* @since 1.0
|
8 |
*
|
9 |
* @package To_Top
|
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package To_Top
|
20 |
* @subpackage To_Top/admin
|
21 |
-
* @author Catch
|
22 |
*/
|
23 |
class To_Top_Admin {
|
24 |
|
@@ -74,6 +74,7 @@ class To_Top_Admin {
|
|
74 |
|
75 |
if ( 'toplevel_page_to-top' == $hook ) {
|
76 |
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/to-top-admin.css', array( 'dashicons', 'wp-color-picker' ), $this->version, 'all' );
|
|
|
77 |
}
|
78 |
|
79 |
$option = to_top_get_options();
|
@@ -108,6 +109,7 @@ class To_Top_Admin {
|
|
108 |
if ( 'toplevel_page_to-top' == $hook ) {
|
109 |
wp_enqueue_media();
|
110 |
|
|
|
111 |
wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/to-top-admin.js', array( 'jquery', 'wp-color-picker' ), $this->version, false );
|
112 |
}
|
113 |
|
@@ -761,4 +763,4 @@ class To_Top_Admin {
|
|
761 |
return false;
|
762 |
}
|
763 |
}
|
764 |
-
}
|
3 |
/**
|
4 |
* The admin-specific functionality of the plugin.
|
5 |
*
|
6 |
+
* @link catchplugins.com
|
7 |
* @since 1.0
|
8 |
*
|
9 |
* @package To_Top
|
18 |
*
|
19 |
* @package To_Top
|
20 |
* @subpackage To_Top/admin
|
21 |
+
* @author Catch Plugins <info@catchplugins.com>
|
22 |
*/
|
23 |
class To_Top_Admin {
|
24 |
|
74 |
|
75 |
if ( 'toplevel_page_to-top' == $hook ) {
|
76 |
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/to-top-admin.css', array( 'dashicons', 'wp-color-picker' ), $this->version, 'all' );
|
77 |
+
wp_enqueue_style( $this->plugin_name.'-tabs', plugin_dir_url( __FILE__ ) . 'css/admin-dashboard.css', array(), $this->version, 'all' );
|
78 |
}
|
79 |
|
80 |
$option = to_top_get_options();
|
109 |
if ( 'toplevel_page_to-top' == $hook ) {
|
110 |
wp_enqueue_media();
|
111 |
|
112 |
+
wp_enqueue_script( 'minHeight', plugin_dir_url( __FILE__ ) . 'js/jquery.matchHeight.min.js', array( 'jquery' ), $this->version, false );
|
113 |
wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/to-top-admin.js', array( 'jquery', 'wp-color-picker' ), $this->version, false );
|
114 |
}
|
115 |
|
763 |
return false;
|
764 |
}
|
765 |
}
|
766 |
+
}
|
admin/css/admin-dashboard.css
ADDED
@@ -0,0 +1,715 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* All of the CSS for your admin-dashboard functionality should be
|
3 |
+
* included in this file.
|
4 |
+
*/
|
5 |
+
|
6 |
+
.wpcatchtab.active,
|
7 |
+
table td strong {
|
8 |
+
display: block;
|
9 |
+
}
|
10 |
+
|
11 |
+
.show-more.button {
|
12 |
+
margin: 10px 0 5px 0;
|
13 |
+
}
|
14 |
+
|
15 |
+
.as-shortcode .new:hover .show-me,
|
16 |
+
.welcome-panel img,
|
17 |
+
.as-shortcode .new > div a,
|
18 |
+
.wpcatchtab.active,
|
19 |
+
#public-usage .content p strong,
|
20 |
+
table td strong {
|
21 |
+
display: block;
|
22 |
+
}
|
23 |
+
|
24 |
+
#public-usage .content {
|
25 |
+
display: -webkit-box;
|
26 |
+
display: -ms-flexbox;
|
27 |
+
display: flex;
|
28 |
+
-ms-flex-wrap: wrap;
|
29 |
+
flex-wrap: wrap;
|
30 |
+
}
|
31 |
+
|
32 |
+
#public-usage .content > .as-widget,
|
33 |
+
#public-usage .content > .as-shortcode {
|
34 |
+
-webkit-box-flex: 0;
|
35 |
+
-ms-flex: 0 1 100%;
|
36 |
+
flex: 0 1 100%;
|
37 |
+
}
|
38 |
+
|
39 |
+
.welcome-panel img {
|
40 |
+
height: 40px;
|
41 |
+
width: 40px;
|
42 |
+
vertical-align: middle;
|
43 |
+
margin: 0 auto 14px auto;
|
44 |
+
}
|
45 |
+
|
46 |
+
.welcome-panel .welcome-panel-column,
|
47 |
+
.welcome-panel .welcome-panel-column:first-child {
|
48 |
+
max-width: 980px;
|
49 |
+
width: 100%;
|
50 |
+
}
|
51 |
+
|
52 |
+
/* Form */
|
53 |
+
.show-more .dashicons {
|
54 |
+
vertical-align: middle;
|
55 |
+
}
|
56 |
+
|
57 |
+
.button.reset-token,
|
58 |
+
.button.reset-token:hover,
|
59 |
+
.button.reset-token:focus {
|
60 |
+
background-color: #d54e21;
|
61 |
+
border-color: #d54e21;
|
62 |
+
color: #fff;
|
63 |
+
}
|
64 |
+
|
65 |
+
.button.get-token,
|
66 |
+
.button.get-token:hover,
|
67 |
+
.button.get-token:focus {
|
68 |
+
background-color: #22D41A;
|
69 |
+
border-color: #22D41A;
|
70 |
+
color: #fff;
|
71 |
+
}
|
72 |
+
|
73 |
+
.as-shortcode .new {
|
74 |
+
position: relative;
|
75 |
+
}
|
76 |
+
|
77 |
+
.as-shortcode .new .dashicons,
|
78 |
+
.as-shortcode .button {
|
79 |
+
vertical-align: middle;
|
80 |
+
}
|
81 |
+
|
82 |
+
.as-shortcode .new > div a {
|
83 |
+
margin-bottom: 3px;
|
84 |
+
}
|
85 |
+
|
86 |
+
.as-shortcode .new>div {
|
87 |
+
display: none;
|
88 |
+
position: absolute;
|
89 |
+
right: -54px;
|
90 |
+
top: -1px;
|
91 |
+
}
|
92 |
+
|
93 |
+
#welcome-message {
|
94 |
+
border-radius: 4px;
|
95 |
+
margin-right: 20px;
|
96 |
+
margin-top: 10px;
|
97 |
+
padding: 1px 5px;
|
98 |
+
}
|
99 |
+
|
100 |
+
#access-token .info {
|
101 |
+
padding: 10px 12px;
|
102 |
+
}
|
103 |
+
|
104 |
+
#access-token .info,
|
105 |
+
#request-queries {
|
106 |
+
line-height: 2;
|
107 |
+
}
|
108 |
+
|
109 |
+
/* Custom Scripts */
|
110 |
+
|
111 |
+
.wrap {
|
112 |
+
position: relative;
|
113 |
+
margin: 25px 20px 0 10px;
|
114 |
+
-ms-word-wrap: break-word;
|
115 |
+
word-wrap: break-word;
|
116 |
+
}
|
117 |
+
|
118 |
+
.wrap,
|
119 |
+
.welcome-panel p,
|
120 |
+
.welcome-panel .welcome-panel-close::before,
|
121 |
+
.content .widefat td,
|
122 |
+
.content .widefat thead th {
|
123 |
+
color: #23282d;
|
124 |
+
}
|
125 |
+
|
126 |
+
.welcome-panel .welcome-panel-close::before {
|
127 |
+
left: inherit;
|
128 |
+
right: 10px;
|
129 |
+
z-index: 9;
|
130 |
+
}
|
131 |
+
|
132 |
+
.welcome-panel {
|
133 |
+
border-left: 4px solid #44b450;
|
134 |
+
margin: 21px 0;
|
135 |
+
padding-bottom: 21px;
|
136 |
+
padding-left: 21px;
|
137 |
+
padding-right: 21px;
|
138 |
+
}
|
139 |
+
|
140 |
+
.welcome-panel-content {
|
141 |
+
margin-left: 0;
|
142 |
+
}
|
143 |
+
|
144 |
+
.wrap h1,
|
145 |
+
.wrap h2,
|
146 |
+
.wrap h3,
|
147 |
+
.wrap h4,
|
148 |
+
.wrap h5,
|
149 |
+
.wrap h6,
|
150 |
+
.welcome-panel h3,
|
151 |
+
.wrap p,
|
152 |
+
.welcome-panel-column p,
|
153 |
+
#go-premium ul {
|
154 |
+
margin-top: 0;
|
155 |
+
}
|
156 |
+
|
157 |
+
.wrap a {
|
158 |
+
text-decoration: none;
|
159 |
+
}
|
160 |
+
|
161 |
+
.wrap a:hover,
|
162 |
+
.wrap a:focus {
|
163 |
+
opacity: 0.9;
|
164 |
+
}
|
165 |
+
|
166 |
+
.welcome-panel-column >:last-child,
|
167 |
+
#public-usage .content > div:last-child,
|
168 |
+
#public-usage .content .as-widget >:last-child,
|
169 |
+
#public-usage .content .as-shortcode >:last-child,
|
170 |
+
#public-usage .content .shortcode-option-container > div:last-child {
|
171 |
+
margin-bottom: 0;
|
172 |
+
}
|
173 |
+
|
174 |
+
.content-wrapper {
|
175 |
+
background-color: #fff;
|
176 |
+
position: relative;
|
177 |
+
}
|
178 |
+
|
179 |
+
.content-wrapper .content {
|
180 |
+
padding: 21px;
|
181 |
+
}
|
182 |
+
|
183 |
+
.content-wrapper .button.dismiss {
|
184 |
+
position: absolute;
|
185 |
+
right: 15px;
|
186 |
+
top: 15px;
|
187 |
+
background-color: transparent;
|
188 |
+
border: 0;
|
189 |
+
box-shadow: none;
|
190 |
+
padding: 0;
|
191 |
+
}
|
192 |
+
|
193 |
+
.content-wrapper h2,
|
194 |
+
.content-wrapper .header h3 {
|
195 |
+
margin: 0;
|
196 |
+
padding: 16px 21px;
|
197 |
+
}
|
198 |
+
|
199 |
+
.content-wrapper h2,
|
200 |
+
.content-wrapper .header h3,
|
201 |
+
.catch-sidebar-title,
|
202 |
+
.sidebar-spot-inner {
|
203 |
+
border-bottom: 1px solid #ddd;
|
204 |
+
}
|
205 |
+
|
206 |
+
.content-wrapper h2,
|
207 |
+
.content-wrapper .header h3,
|
208 |
+
.catchp-sidebar-spot h2,
|
209 |
+
.catchp-sidebar-full-width h2,
|
210 |
+
.widefat td,
|
211 |
+
.widefat thead th,
|
212 |
+
.about-text h2 {
|
213 |
+
font-size: 18px;
|
214 |
+
font-size: 1.125rem;
|
215 |
+
line-height: 1.5;
|
216 |
+
}
|
217 |
+
|
218 |
+
.welcome-panel .button {
|
219 |
+
border: none;
|
220 |
+
background: none;
|
221 |
+
box-shadow: none;
|
222 |
+
}
|
223 |
+
|
224 |
+
.welcome-panel .welcome-panel-close {
|
225 |
+
text-indent: -9999px;
|
226 |
+
}
|
227 |
+
|
228 |
+
.welcome-panel .welcome-panel-close::before {
|
229 |
+
font-size: 30px;
|
230 |
+
font-size: 1.875rem;
|
231 |
+
text-indent: 0;
|
232 |
+
}
|
233 |
+
|
234 |
+
.catchp-content-wrapper {
|
235 |
+
display: table;
|
236 |
+
width: 100%;
|
237 |
+
table-layout: fixed;
|
238 |
+
}
|
239 |
+
|
240 |
+
.wpcatchtab {
|
241 |
+
display: none;
|
242 |
+
}
|
243 |
+
|
244 |
+
.widefat thead th,
|
245 |
+
.table-icons {
|
246 |
+
font-weight: 600;
|
247 |
+
}
|
248 |
+
|
249 |
+
.content-wrapper .catchp-lists li strong {
|
250 |
+
font-weight: 700;
|
251 |
+
}
|
252 |
+
|
253 |
+
.wrap .content .as-shortcode .shortcode-option-container > div,
|
254 |
+
.about-text h2,
|
255 |
+
.wrap p,
|
256 |
+
.welcome-panel h3 {
|
257 |
+
margin-bottom: 14px;
|
258 |
+
}
|
259 |
+
|
260 |
+
.dashicons {
|
261 |
+
font-size: 30px;
|
262 |
+
font-size: 1.875rem;
|
263 |
+
height: 30px;
|
264 |
+
width: 30px;
|
265 |
+
}
|
266 |
+
|
267 |
+
.sidebar-spot-inner ul li,
|
268 |
+
.catchp-sidebar-spot h3 {
|
269 |
+
margin-bottom: 7px;
|
270 |
+
}
|
271 |
+
|
272 |
+
.wrap .wpcatchtab,
|
273 |
+
#sidebar,
|
274 |
+
.content-wrapper {
|
275 |
+
margin-top: 21px;
|
276 |
+
}
|
277 |
+
|
278 |
+
.content-wrapper,
|
279 |
+
.sidebar-spot-inner,
|
280 |
+
.sidebar-spot-inner ul,
|
281 |
+
.catch-sidebar-title {
|
282 |
+
margin-bottom: 21px;
|
283 |
+
}
|
284 |
+
|
285 |
+
.catchp-sidebar-spot,
|
286 |
+
.catchp-sidebar-full-width {
|
287 |
+
float: left;
|
288 |
+
width: 100%;
|
289 |
+
box-sizing: border-box;
|
290 |
+
}
|
291 |
+
|
292 |
+
.sidebar-spot-inner {
|
293 |
+
padding-bottom: 21px;
|
294 |
+
}
|
295 |
+
|
296 |
+
.catchp-lists:before,
|
297 |
+
.catchp-lists:after,
|
298 |
+
.content-wrapper:before,
|
299 |
+
.content-wrapper:after,
|
300 |
+
.content-wrapper .content:before,
|
301 |
+
.content-wrapper .content:after {
|
302 |
+
content: "";
|
303 |
+
display: table;
|
304 |
+
table-layout: fixed;
|
305 |
+
}
|
306 |
+
|
307 |
+
.catchp-lists:after,
|
308 |
+
.content-wrapper:after,
|
309 |
+
.content-wrapper .content:after {
|
310 |
+
clear: both;
|
311 |
+
}
|
312 |
+
|
313 |
+
.catchp-lists li {
|
314 |
+
position: relative;
|
315 |
+
padding-left: 21px;
|
316 |
+
}
|
317 |
+
|
318 |
+
.catchp-lists li:before {
|
319 |
+
content:"\2713\0020";
|
320 |
+
left: 0;
|
321 |
+
font-weight: 700;
|
322 |
+
position: absolute;
|
323 |
+
}
|
324 |
+
|
325 |
+
#pro-screenshot .catchp-lists li {
|
326 |
+
padding-left: 0;
|
327 |
+
}
|
328 |
+
|
329 |
+
#pro-screenshot .catchp-lists li::before {
|
330 |
+
content: none;
|
331 |
+
}
|
332 |
+
|
333 |
+
.wp-ui-highlight {
|
334 |
+
background-color: #0073aa;
|
335 |
+
}
|
336 |
+
|
337 |
+
/*Sidebar*/
|
338 |
+
.catch-sidebar-title {
|
339 |
+
padding-bottom: 10px;
|
340 |
+
}
|
341 |
+
|
342 |
+
.catch-sidebar-title,
|
343 |
+
.catchp-sidebar-spot h3 {
|
344 |
+
font-size: 14px;
|
345 |
+
font-size: 0.875rem;
|
346 |
+
font-weight: 700;
|
347 |
+
}
|
348 |
+
|
349 |
+
.catchp-sidebar-spot h3 {
|
350 |
+
color: #444;
|
351 |
+
}
|
352 |
+
|
353 |
+
/*For Table*/
|
354 |
+
.table-icons {
|
355 |
+
font-size: 21px;
|
356 |
+
font-size: 1.3125rem;
|
357 |
+
display: inline-block;
|
358 |
+
}
|
359 |
+
|
360 |
+
.icon-green,
|
361 |
+
.highlighted {
|
362 |
+
color: #48a348;
|
363 |
+
}
|
364 |
+
|
365 |
+
.icon-red {
|
366 |
+
color: #c7353e;
|
367 |
+
}
|
368 |
+
|
369 |
+
#title,
|
370 |
+
#pro,
|
371 |
+
#free,
|
372 |
+
.fixed .column-free,
|
373 |
+
.fixed .column-pro,
|
374 |
+
.catchp-footer {
|
375 |
+
text-align: center;
|
376 |
+
}
|
377 |
+
|
378 |
+
img {
|
379 |
+
height: auto;
|
380 |
+
max-width: 100%;
|
381 |
+
}
|
382 |
+
|
383 |
+
table {
|
384 |
+
border-collapse: collapse;
|
385 |
+
border-spacing: 0;
|
386 |
+
}
|
387 |
+
|
388 |
+
table thead th {
|
389 |
+
padding: 14px;
|
390 |
+
}
|
391 |
+
|
392 |
+
#premium-extensions table,
|
393 |
+
#premium-extensions th,
|
394 |
+
#premium-extensions td {
|
395 |
+
border: 1px solid #ddd;
|
396 |
+
}
|
397 |
+
|
398 |
+
table td strong,
|
399 |
+
table td p {
|
400 |
+
letter-spacing: 0.01em;
|
401 |
+
}
|
402 |
+
|
403 |
+
dd,
|
404 |
+
li {
|
405 |
+
margin-bottom: 21px;
|
406 |
+
}
|
407 |
+
|
408 |
+
.widefat td p,
|
409 |
+
.catchp-lists li p {
|
410 |
+
margin-top: 7px;
|
411 |
+
}
|
412 |
+
|
413 |
+
.fixed .column-free,
|
414 |
+
.fixed .column-pro {
|
415 |
+
width: 15%;
|
416 |
+
}
|
417 |
+
|
418 |
+
.fixed .column-free,
|
419 |
+
.fixed .column-pro,
|
420 |
+
.widefat td {
|
421 |
+
vertical-align: middle;
|
422 |
+
}
|
423 |
+
|
424 |
+
.widefat td,
|
425 |
+
.widefat thead th {
|
426 |
+
padding: 14px 21px;
|
427 |
+
}
|
428 |
+
|
429 |
+
/*Footer*/
|
430 |
+
.catchp-footer {
|
431 |
+
margin-top: 14px;
|
432 |
+
border-bottom: 1px solid #fff;
|
433 |
+
}
|
434 |
+
|
435 |
+
.catchp-footer-menu ul li,
|
436 |
+
.catchp-footer-menu ul li a,
|
437 |
+
.catchp-footer-site-info a {
|
438 |
+
display: inline-block;
|
439 |
+
margin-bottom: 0;
|
440 |
+
}
|
441 |
+
|
442 |
+
.catchp-footer-menu ul {
|
443 |
+
margin: 0;
|
444 |
+
}
|
445 |
+
|
446 |
+
.catchp-footer-menu ul li a{
|
447 |
+
padding: 10px;
|
448 |
+
}
|
449 |
+
|
450 |
+
.catchp-footer-site-info {
|
451 |
+
border-bottom: 1px solid #ddd;
|
452 |
+
}
|
453 |
+
|
454 |
+
.catchp-footer-site-info a {
|
455 |
+
padding: 12px;
|
456 |
+
}
|
457 |
+
|
458 |
+
.catchp-footer-menu {
|
459 |
+
border-top: 1px solid #fff;
|
460 |
+
border-bottom: 1px solid #ddd;
|
461 |
+
}
|
462 |
+
|
463 |
+
.content-wrapper.col-1,
|
464 |
+
.content-wrapper.col-2 {
|
465 |
+
max-width: 735px;
|
466 |
+
}
|
467 |
+
|
468 |
+
#plugin-description {
|
469 |
+
max-width: 1200px;
|
470 |
+
}
|
471 |
+
|
472 |
+
/* => 667px */
|
473 |
+
@media screen and (min-width: 41.6875em) {
|
474 |
+
.shortcode-option-container {
|
475 |
+
display: flex;
|
476 |
+
flex-flow: row wrap;
|
477 |
+
}
|
478 |
+
|
479 |
+
.shortcode-option-container > div {
|
480 |
+
-webkit-box-flex: 0;
|
481 |
+
-ms-flex: 0 1 50%;
|
482 |
+
flex: 0 1 50%;
|
483 |
+
}
|
484 |
+
|
485 |
+
.welcome-panel h3 {
|
486 |
+
text-align: left;
|
487 |
+
}
|
488 |
+
|
489 |
+
.welcome-panel img {
|
490 |
+
display: inline-block;
|
491 |
+
margin-bottom: 0;
|
492 |
+
margin-right: 14px;
|
493 |
+
}
|
494 |
+
|
495 |
+
#public-usage .content {
|
496 |
+
display: -webkit-box;
|
497 |
+
display: -ms-flexbox;
|
498 |
+
display: flex;
|
499 |
+
-ms-flex-wrap: nowrap;
|
500 |
+
flex-wrap: nowrap;
|
501 |
+
}
|
502 |
+
|
503 |
+
#public-usage .content > .as-widget,
|
504 |
+
#public-usage .content > .as-shortcode {
|
505 |
+
-webkit-box-flex: 0;
|
506 |
+
-ms-flex: 0 1 50%;
|
507 |
+
flex: 0 1 50%;
|
508 |
+
}
|
509 |
+
|
510 |
+
#public-usage .content > .as-widget {
|
511 |
+
padding-right: 21px;
|
512 |
+
}
|
513 |
+
|
514 |
+
#public-usage .content > .as-shortcode {
|
515 |
+
border-left: 1px solid #ddd;
|
516 |
+
padding-left: 21px;
|
517 |
+
}
|
518 |
+
|
519 |
+
#public-usage .content > .as-widget,
|
520 |
+
#public-usage .content > .as-shortcode {
|
521 |
+
margin-bottom: 0;
|
522 |
+
}
|
523 |
+
|
524 |
+
.catchp-sidebar-spot {
|
525 |
+
width: 50%;
|
526 |
+
padding-right: 21px;
|
527 |
+
}
|
528 |
+
|
529 |
+
.catchp-sidebar-spot-wrapper .catchp-sidebar-spot:nth-of-type(even),
|
530 |
+
.col-2 .catchp-lists li:nth-of-type(even),
|
531 |
+
.col-3 .catchp-lists li:nth-child(2n),
|
532 |
+
.col-4 .catchp-lists li:nth-child(2n) {
|
533 |
+
padding-right: 0;
|
534 |
+
}
|
535 |
+
|
536 |
+
.catchp-footer {
|
537 |
+
margin-top: 21px;
|
538 |
+
}
|
539 |
+
|
540 |
+
.catchp-lists li {
|
541 |
+
display: inline-block;
|
542 |
+
float: left;
|
543 |
+
-webkit-box-sizing: border-box;
|
544 |
+
box-sizing: border-box;
|
545 |
+
width: 100%;
|
546 |
+
}
|
547 |
+
|
548 |
+
.content-wrapper.col-3 {
|
549 |
+
max-width: 100%;
|
550 |
+
width: 100%;
|
551 |
+
}
|
552 |
+
|
553 |
+
.col-2 .catchp-lists li,
|
554 |
+
.col-3 .catchp-lists li,
|
555 |
+
.col-4 .catchp-lists li,
|
556 |
+
.module-container .module-wrap {
|
557 |
+
width: 50%;
|
558 |
+
}
|
559 |
+
|
560 |
+
.col-2 .catchp-lists li,
|
561 |
+
.col-3 .catchp-lists li,
|
562 |
+
.col-4 .catchp-lists li {
|
563 |
+
padding-right: 21px;
|
564 |
+
}
|
565 |
+
|
566 |
+
.module-wrap {
|
567 |
+
padding-right: 21px;
|
568 |
+
}
|
569 |
+
|
570 |
+
.module-container .module-wrap:nth-child(2n) {
|
571 |
+
padding-right: 0;
|
572 |
+
}
|
573 |
+
}
|
574 |
+
|
575 |
+
/* => 783px */
|
576 |
+
@media screen and (min-width: 48.9375em) {
|
577 |
+
.wrap {
|
578 |
+
margin-right: 30px;
|
579 |
+
}
|
580 |
+
|
581 |
+
.form-table input[type="text"],
|
582 |
+
.form-table input[type="search"],
|
583 |
+
.form-table input[type="radio"],
|
584 |
+
.form-table input[type="tel"],
|
585 |
+
.form-table input[type="time"],
|
586 |
+
.form-table input[type="url"],
|
587 |
+
.form-table input[type="week"],
|
588 |
+
.form-table input[type="password"],
|
589 |
+
.form-table input[type="checkbox"],
|
590 |
+
.form-table input[type="color"],
|
591 |
+
.form-table input[type="date"],
|
592 |
+
.form-table input[type="datetime"],
|
593 |
+
.form-table input[type="datetime-local"],
|
594 |
+
.form-table input[type="email"],
|
595 |
+
.form-table input[type="month"],
|
596 |
+
.form-table input[type="number"],
|
597 |
+
.form-table select,
|
598 |
+
.form-table textarea {
|
599 |
+
margin-right: 10px;
|
600 |
+
display: inline-block;
|
601 |
+
}
|
602 |
+
|
603 |
+
.form-table td span {
|
604 |
+
display: inline-block;
|
605 |
+
}
|
606 |
+
|
607 |
+
h3.option-toggle a {
|
608 |
+
background-position: 99% 50%;
|
609 |
+
}
|
610 |
+
|
611 |
+
h3.option-active a {
|
612 |
+
background-position: 99% 50%;
|
613 |
+
}
|
614 |
+
}
|
615 |
+
|
616 |
+
/* => 1024px */
|
617 |
+
@media screen and (min-width: 64em) {
|
618 |
+
.catchp-sidebar-spot-wrapper .catchp-sidebar-spot,
|
619 |
+
.catchp-sidebar-spot-wrapper .catchp-sidebar-spot:nth-of-type(even),
|
620 |
+
.col-3 .catchp-lists li:nth-child(2n) {
|
621 |
+
padding-right: 21px;
|
622 |
+
}
|
623 |
+
|
624 |
+
.catchp-sidebar-spot-wrapper .catchp-sidebar-spot:nth-child(3n) {
|
625 |
+
padding-right: 0;
|
626 |
+
}
|
627 |
+
|
628 |
+
.catchp-sidebar-spot,
|
629 |
+
.col-3 .catchp-lists li {
|
630 |
+
width: 33.33%;
|
631 |
+
}
|
632 |
+
|
633 |
+
.col-3 .catchp-lists li:nth-child(3n) {
|
634 |
+
padding-right: 0;
|
635 |
+
}
|
636 |
+
|
637 |
+
.table-icons {
|
638 |
+
font-size: 30px;
|
639 |
+
font-size: 1.875rem;
|
640 |
+
}
|
641 |
+
}
|
642 |
+
|
643 |
+
/* => 1200px */
|
644 |
+
@media screen and (min-width: 75em) {
|
645 |
+
.welcome-panel .welcome-panel-close::before,
|
646 |
+
.welcome-panel .welcome-panel-close {
|
647 |
+
top: 50%;
|
648 |
+
transform: translateY(-50%);
|
649 |
+
}
|
650 |
+
|
651 |
+
.welcome-panel {
|
652 |
+
padding-right: 49px;
|
653 |
+
}
|
654 |
+
|
655 |
+
.catchp_widget_settings,
|
656 |
+
.catchp-widget-sidebar {
|
657 |
+
display: table-cell;
|
658 |
+
vertical-align: top;
|
659 |
+
}
|
660 |
+
|
661 |
+
.catchp_widget_settings,
|
662 |
+
.catchp-sidebar-spot,
|
663 |
+
.col-2 .sidebar-spot-inner .catchp-lists li,
|
664 |
+
.col-3 .sidebar-spot-inner .catchp-lists li {
|
665 |
+
width: 100%;
|
666 |
+
}
|
667 |
+
|
668 |
+
.catchp-widget-sidebar {
|
669 |
+
width: 245px;
|
670 |
+
padding: 0 0 0 200px;
|
671 |
+
}
|
672 |
+
|
673 |
+
#sidebar {
|
674 |
+
margin-top: 66px;
|
675 |
+
}
|
676 |
+
|
677 |
+
.col-4 .catchp-lists li,
|
678 |
+
.col-4 .catchp-lists li:nth-child(2n) {
|
679 |
+
padding-right: 21px;
|
680 |
+
}
|
681 |
+
|
682 |
+
.catchp-sidebar-spot,
|
683 |
+
.catchp-sidebar-spot-wrapper .catchp-sidebar-spot,
|
684 |
+
.catchp-sidebar-spot-wrapper .catchp-sidebar-spot:nth-of-type(even),
|
685 |
+
.col-2 .sidebar-spot-inner .catchp-lists li,
|
686 |
+
.col-3 .sidebar-spot-inner .catchp-lists li,
|
687 |
+
.col-4 .catchp-lists li:nth-child(4n) {
|
688 |
+
padding-right: 0;
|
689 |
+
}
|
690 |
+
|
691 |
+
.catchp-sidebar-spot:last-child .sidebar-spot-inner {
|
692 |
+
border: 0;
|
693 |
+
}
|
694 |
+
|
695 |
+
.catchp-footer {
|
696 |
+
margin-top: 160px;
|
697 |
+
}
|
698 |
+
|
699 |
+
.col-4 .catchp-lists li {
|
700 |
+
width: 25%;
|
701 |
+
}
|
702 |
+
|
703 |
+
.module-container .module-wrap {
|
704 |
+
width: 33.33%;
|
705 |
+
}
|
706 |
+
|
707 |
+
.module-container .module-wrap:nth-child(2n) {
|
708 |
+
padding-right: 21px;
|
709 |
+
}
|
710 |
+
|
711 |
+
.module-container .module-wrap:nth-child(3n) {
|
712 |
+
padding-right: 0;
|
713 |
+
}
|
714 |
+
|
715 |
+
}
|
admin/css/customizer.css
CHANGED
File without changes
|
admin/css/to-top-admin.css
CHANGED
@@ -116,15 +116,9 @@
|
|
116 |
#to-top .form-table label.box:last-child {
|
117 |
margin-right: 0;
|
118 |
}
|
|
|
119 |
h3.option-toggle {
|
120 |
-
-webkit-border-top-left-radius: 3px;
|
121 |
-
-webkit-border-top-right-radius: 3px;
|
122 |
-
-moz-border-radius-topleft: 3px;
|
123 |
-
-moz-border-radius-topright: 3px;
|
124 |
-
border-top-left-radius: 3px;
|
125 |
-
border-top-right-radius: 3px;
|
126 |
margin: 20px 0 0 0;
|
127 |
-
min-width: 600px;
|
128 |
border:1px solid #dfdfdf;
|
129 |
background-color: #F1F1F1;
|
130 |
background-image: -ms-linear-gradient(top, #f9f9f9, #ececec);
|
@@ -133,35 +127,28 @@ h3.option-toggle {
|
|
133 |
background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec));
|
134 |
background-image: -webkit-linear-gradient(top, #f9f9f9, #ececec);
|
135 |
background-image: linear-gradient(top, #f9f9f9, #ececec);
|
136 |
-
height: 34px;
|
137 |
-
line-height: 34px;
|
138 |
font-size: 15px;
|
139 |
font-weight: normal;
|
140 |
float: left;
|
141 |
-
|
142 |
-
width: 98%;
|
143 |
}
|
|
|
144 |
h3.option-toggle a {
|
145 |
-
background:url(../images/arrow-
|
146 |
color: #464646;
|
147 |
-
padding-left: 10px;
|
148 |
text-decoration: none;
|
149 |
display: block;
|
150 |
text-shadow:#fff 0 1px 0;
|
|
|
151 |
}
|
152 |
-
|
153 |
-
|
154 |
-
|
|
|
155 |
}
|
|
|
156 |
.option-content {
|
157 |
-
-webkit-border-bottom-right-radius: 3px;
|
158 |
-
-webkit-border-bottom-left-radius: 3px;
|
159 |
-
-moz-border-radius-bottomright: 3px;
|
160 |
-
-moz-border-radius-bottomleft: 3px;
|
161 |
-
border-bottom-right-radius: 3px;
|
162 |
-
border-bottom-left-radius: 3px;
|
163 |
margin: 0;
|
164 |
-
min-width: 600px;
|
165 |
padding: 0;
|
166 |
border: 1px solid #dfdfdf;
|
167 |
border-top:none;
|
@@ -170,11 +157,9 @@ h3.option-toggle a:hover, h3.option-active a {
|
|
170 |
font-size: 12px;
|
171 |
clear: both;
|
172 |
color: #333;
|
173 |
-
|
174 |
-
}
|
175 |
-
.option-content p {
|
176 |
-
padding-left: 10px;
|
177 |
}
|
|
|
178 |
/* Genericon */
|
179 |
.genericon {
|
180 |
vertical-align: middle;
|
@@ -216,3 +201,98 @@ h3.option-toggle a:hover, h3.option-active a {
|
|
216 |
width: 32px;
|
217 |
z-index: 9999;
|
218 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
#to-top .form-table label.box:last-child {
|
117 |
margin-right: 0;
|
118 |
}
|
119 |
+
|
120 |
h3.option-toggle {
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
margin: 20px 0 0 0;
|
|
|
122 |
border:1px solid #dfdfdf;
|
123 |
background-color: #F1F1F1;
|
124 |
background-image: -ms-linear-gradient(top, #f9f9f9, #ececec);
|
127 |
background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec));
|
128 |
background-image: -webkit-linear-gradient(top, #f9f9f9, #ececec);
|
129 |
background-image: linear-gradient(top, #f9f9f9, #ececec);
|
|
|
|
|
130 |
font-size: 15px;
|
131 |
font-weight: normal;
|
132 |
float: left;
|
133 |
+
width: 100%;
|
|
|
134 |
}
|
135 |
+
|
136 |
h3.option-toggle a {
|
137 |
+
background:url(../images/arrow-down.png) 96% 50% no-repeat;
|
138 |
color: #464646;
|
|
|
139 |
text-decoration: none;
|
140 |
display: block;
|
141 |
text-shadow:#fff 0 1px 0;
|
142 |
+
padding: 12px;
|
143 |
}
|
144 |
+
|
145 |
+
h3.option-active a {
|
146 |
+
background:url(../images/arrow-up.png) 96% 50% no-repeat;
|
147 |
+
color: #000;
|
148 |
}
|
149 |
+
|
150 |
.option-content {
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
margin: 0;
|
|
|
152 |
padding: 0;
|
153 |
border: 1px solid #dfdfdf;
|
154 |
border-top:none;
|
157 |
font-size: 12px;
|
158 |
clear: both;
|
159 |
color: #333;
|
160 |
+
padding: 21px;
|
|
|
|
|
|
|
161 |
}
|
162 |
+
|
163 |
/* Genericon */
|
164 |
.genericon {
|
165 |
vertical-align: middle;
|
201 |
width: 32px;
|
202 |
z-index: 9999;
|
203 |
}
|
204 |
+
|
205 |
+
/*Custom Styles*/
|
206 |
+
.catch-modules .module-header,
|
207 |
+
.catch-modules-long .module-header {
|
208 |
+
background-color: #f3f3f3;
|
209 |
+
padding: 11px 18px;
|
210 |
+
}
|
211 |
+
|
212 |
+
.catch-modules .module-header h3,
|
213 |
+
.module-container .catch-modules-long h3 {
|
214 |
+
margin: 0;
|
215 |
+
}
|
216 |
+
|
217 |
+
.module-content {
|
218 |
+
padding: 11px 18px;
|
219 |
+
}
|
220 |
+
|
221 |
+
.module-container .module-wrap.catch-modules-long {
|
222 |
+
width: 100%;
|
223 |
+
padding-right: 0;
|
224 |
+
}
|
225 |
+
|
226 |
+
.module-container .catch-actions .button {
|
227 |
+
margin-top: 5px;
|
228 |
+
margin-right: 5px;
|
229 |
+
}
|
230 |
+
|
231 |
+
.module-container .module-wrap.catch-modules-long,
|
232 |
+
.wrap p.submit {
|
233 |
+
margin-bottom: 0;
|
234 |
+
padding-bottom: 0;
|
235 |
+
}
|
236 |
+
|
237 |
+
.form-table {
|
238 |
+
margin-top: 0;
|
239 |
+
table-layout: fixed;
|
240 |
+
}
|
241 |
+
|
242 |
+
.form-table th,
|
243 |
+
.form-table td {
|
244 |
+
padding-top: 0;
|
245 |
+
margin-top: 0;
|
246 |
+
padding-left: 0;
|
247 |
+
padding-bottom: 14px;
|
248 |
+
}
|
249 |
+
|
250 |
+
.form-table td {
|
251 |
+
padding-right: 0;
|
252 |
+
}
|
253 |
+
|
254 |
+
.form-table .catchwebtools-social th {
|
255 |
+
padding-right: 14px;
|
256 |
+
}
|
257 |
+
|
258 |
+
.form-table .catchwebtools-social {
|
259 |
+
padding-bottom: 15px;
|
260 |
+
}
|
261 |
+
|
262 |
+
.wp-core-ui .button,
|
263 |
+
.wp-core-ui .button-primary,
|
264 |
+
.wp-core-ui .button-secondary {
|
265 |
+
white-space: normal;
|
266 |
+
height: auto;
|
267 |
+
}
|
268 |
+
|
269 |
+
input[type="text"],
|
270 |
+
input[type="search"],
|
271 |
+
input[type="password"],
|
272 |
+
input[type="email"],
|
273 |
+
input[type="url"],
|
274 |
+
textarea {
|
275 |
+
max-width: 100%;
|
276 |
+
}
|
277 |
+
|
278 |
+
.notice.notice-warning {
|
279 |
+
padding: 12px 0 12px 12px;
|
280 |
+
box-shadow: none;
|
281 |
+
}
|
282 |
+
|
283 |
+
#module-disabled .module-content {
|
284 |
+
margin-top: 21px;
|
285 |
+
}
|
286 |
+
|
287 |
+
#update-nag,
|
288 |
+
.update-nag {
|
289 |
+
box-shadow: none;
|
290 |
+
margin: 0;
|
291 |
+
display: block;
|
292 |
+
}
|
293 |
+
|
294 |
+
#update-nag > *:last-child,
|
295 |
+
.update-nag > *:last-child {
|
296 |
+
margin-bottom: 0;
|
297 |
+
}
|
298 |
+
|
admin/images/arrow-dark.png
DELETED
Binary file
|
admin/images/arrow-down.png
ADDED
Binary file
|
admin/images/arrow-light.png
DELETED
Binary file
|
admin/images/arrow-up.png
ADDED
Binary file
|
admin/images/default.png
CHANGED
File without changes
|
admin/images/free-plugin-246x116.png
ADDED
Binary file
|
admin/images/free-theme-246x175.jpg
ADDED
Binary file
|
admin/images/premium-plugin-246x116.png
ADDED
Binary file
|
admin/images/premium-theme-246x175.jpg
ADDED
Binary file
|
admin/index.php
CHANGED
File without changes
|
admin/js/jquery.matchHeight.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){var b=-1,c=-1,d=function(a){return parseFloat(a)||0},e=function(b){var c=a(b),e=null,f=[];return c.each(function(){var b=a(this),c=b.offset().top-d(b.css("margin-top")),g=f.length>0?f[f.length-1]:null;null===g?f.push(b):Math.floor(Math.abs(e-c))<=1?f[f.length-1]=g.add(b):f.push(b),e=c}),f},f=function(b){var c={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof b?a.extend(c,b):("boolean"==typeof b?c.byRow=b:"remove"===b&&(c.remove=!0),c)},g=a.fn.matchHeight=function(b){var c=f(b);if(c.remove){var d=this;return this.css(c.property,""),a.each(g._groups,function(a,b){b.elements=b.elements.not(d)}),this}return this.length<=1&&!c.target?this:(g._groups.push({elements:this,options:c}),g._apply(this,c),this)};g.version="master",g._groups=[],g._throttle=80,g._maintainScroll=!1,g._beforeUpdate=null,g._afterUpdate=null,g._rows=e,g._parse=d,g._parseOptions=f,g._apply=function(b,c){var h=f(c),i=a(b),j=[i],k=a(window).scrollTop(),l=a("html").outerHeight(!0),m=i.parents().filter(":hidden");return m.each(function(){var b=a(this);b.data("style-cache",b.attr("style"))}),m.css("display","block"),h.byRow&&!h.target&&(i.each(function(){var b=a(this),c=b.css("display");"inline-block"!==c&&"flex"!==c&&"inline-flex"!==c&&(c="block"),b.data("style-cache",b.attr("style")),b.css({display:c,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),j=e(i),i.each(function(){var b=a(this);b.attr("style",b.data("style-cache")||"")})),a.each(j,function(b,c){var e=a(c),f=0;if(h.target)f=h.target.outerHeight(!1);else{if(h.byRow&&e.length<=1)return void e.css(h.property,"");e.each(function(){var b=a(this),c=b.attr("style"),d=b.css("display");"inline-block"!==d&&"flex"!==d&&"inline-flex"!==d&&(d="block");var e={display:d};e[h.property]="",b.css(e),b.outerHeight(!1)>f&&(f=b.outerHeight(!1)),c?b.attr("style",c):b.css("display","")})}e.each(function(){var b=a(this),c=0;h.target&&b.is(h.target)||("border-box"!==b.css("box-sizing")&&(c+=d(b.css("border-top-width"))+d(b.css("border-bottom-width")),c+=d(b.css("padding-top"))+d(b.css("padding-bottom"))),b.css(h.property,f-c+"px"))})}),m.each(function(){var b=a(this);b.attr("style",b.data("style-cache")||null)}),g._maintainScroll&&a(window).scrollTop(k/l*a("html").outerHeight(!0)),this},g._applyDataApi=function(){var b={};a("[data-match-height], [data-mh]").each(function(){var c=a(this),d=c.attr("data-mh")||c.attr("data-match-height");b[d]=d in b?b[d].add(c):c}),a.each(b,function(){this.matchHeight(!0)})};var h=function(b){g._beforeUpdate&&g._beforeUpdate(b,g._groups),a.each(g._groups,function(){g._apply(this.elements,this.options)}),g._afterUpdate&&g._afterUpdate(b,g._groups)};g._update=function(d,e){if(e&&"resize"===e.type){var f=a(window).width();if(f===b)return;b=f}d?-1===c&&(c=setTimeout(function(){h(e),c=-1},g._throttle)):h(e)},a(g._applyDataApi);var i=a.fn.on?"on":"bind";a(window)[i]("load",function(a){g._update(!1,a)}),a(window)[i]("resize orientationchange",function(a){g._update(!0,a)})});
|
admin/js/to-top-admin.js
CHANGED
@@ -12,9 +12,14 @@
|
|
12 |
|
13 |
$(".open").show();
|
14 |
|
15 |
-
$("h3.option-toggle").click(function(){
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
18 |
});
|
19 |
|
20 |
setTimeout(function () {
|
@@ -130,9 +135,49 @@
|
|
130 |
}
|
131 |
});
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
})( jQuery );
|
134 |
|
135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
/**
|
137 |
* Facebook Script
|
138 |
*/
|
12 |
|
13 |
$(".open").show();
|
14 |
|
15 |
+
$("h3.option-toggle").click(function(e){
|
16 |
+
e.preventDefault();
|
17 |
+
if( !$(this).hasClass('option-active') ){
|
18 |
+
$(this).siblings('.option-content').stop(true, true).hide(400);
|
19 |
+
$(this).siblings('.option-toggle').removeClass('option-active');
|
20 |
+
$(this).toggleClass("option-active").next().stop(true, true).slideToggle(400);
|
21 |
+
return false;
|
22 |
+
}
|
23 |
});
|
24 |
|
25 |
setTimeout(function () {
|
135 |
}
|
136 |
});
|
137 |
|
138 |
+
$(function() {
|
139 |
+
|
140 |
+
// Tabs
|
141 |
+
$('.catchp_widget_settings .nav-tab-wrapper a').on('click', function(e){
|
142 |
+
e.preventDefault();
|
143 |
+
|
144 |
+
if( !$(this).hasClass('ui-state-active') ){
|
145 |
+
$('.nav-tab').removeClass('nav-tab-active');
|
146 |
+
$('.wpcatchtab').removeClass('active').fadeOut(0);
|
147 |
+
|
148 |
+
$(this).addClass('nav-tab-active');
|
149 |
+
|
150 |
+
var anchorAttr = $(this).attr('href');
|
151 |
+
|
152 |
+
$(anchorAttr).addClass('active').fadeOut(0).fadeIn(500);
|
153 |
+
}
|
154 |
+
|
155 |
+
});
|
156 |
+
});
|
157 |
+
|
158 |
+
// jQuery Match Height init for sidebar spots
|
159 |
+
$(document).ready(function() {
|
160 |
+
$('.catchp-sidebar-spot .sidebar-spot-inner, .col-2 .catchp-lists li, .col-3 .catchp-lists li').matchHeight();
|
161 |
+
});
|
162 |
+
|
163 |
})( jQuery );
|
164 |
|
165 |
|
166 |
+
jQuery(function($) {
|
167 |
+
$('#image-settings').hide();
|
168 |
+
$('#to_top_options_style').change(function(){
|
169 |
+
if ($(this).val() == 'image')
|
170 |
+
{
|
171 |
+
$('#icon-settings').hide();
|
172 |
+
$('#image-settings').show();
|
173 |
+
} else {
|
174 |
+
$('#icon-settings').show();
|
175 |
+
$('#image-settings').hide();
|
176 |
+
}
|
177 |
+
});
|
178 |
+
});
|
179 |
+
|
180 |
+
|
181 |
/**
|
182 |
* Facebook Script
|
183 |
*/
|
admin/js/to-top-customizer-scripts.js
CHANGED
File without changes
|
admin/partials/customizer/customizer-custom-controls.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* @package Catch
|
4 |
* @subpackage To Top
|
5 |
* @since To Top 1.0
|
6 |
*/
|
1 |
<?php
|
2 |
/**
|
3 |
+
* @package Catch Plugins
|
4 |
* @subpackage To Top
|
5 |
* @since To Top 1.0
|
6 |
*/
|
admin/partials/footer.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- Footer -->
|
2 |
+
<div class="catchp-footer">
|
3 |
+
<div class="catchp-footer-site-info">
|
4 |
+
<a href="<?php echo esc_url( 'https://catchplugins.com/' ); ?>" target="_blank"><?php esc_html_e( 'Catch Plugins', 'to-top' ); ?></a>
|
5 |
+
</div>
|
6 |
+
|
7 |
+
<div class="catchp-footer-menu">
|
8 |
+
<ul>
|
9 |
+
<li><a href="<?php echo esc_url( 'https://catchthemes.com/themes/category/premium/' ); ?>" target="_blank"><?php esc_html_e( 'View Themes', 'to-top' ); ?></a></li>
|
10 |
+
<li><a href="<?php echo esc_url( 'https://catchplugins.com/plugins/' ); ?>" target="_blank"><?php esc_html_e( 'View Plugins', 'to-top' ); ?></a></li>
|
11 |
+
<li><a href="<?php echo esc_url( 'https://catchplugins.com/support/' ); ?>" target="_blank"><?php esc_html_e( 'Support', 'to-top' ); ?></a></li>
|
12 |
+
</ul>
|
13 |
+
</div>
|
14 |
+
</div> <!-- .catchp-footer -->
|
admin/partials/sidebar.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="catchp-widget-sidebar" id="sidebar-container">
|
2 |
+
<div id="sidebar">
|
3 |
+
<div class="catch-sidebar-title highlighted"><?php esc_html_e( 'Recommendations', 'to-top' ); ?></div>
|
4 |
+
|
5 |
+
<div class="catchp-sidebar-spot-wrapper">
|
6 |
+
<div class="catchp-sidebar-spot">
|
7 |
+
<div class="sidebar-spot-inner">
|
8 |
+
<h3><?php esc_html_e( 'Premium Themes', 'to-top' ); ?></h3>
|
9 |
+
<p><?php esc_html_e( 'Check out our simple, clean and responsive Premium WordPress Themes that come with an array of crucial features with a superior functionality.', 'to-top' ); ?> <a target="_blank" href="https://catchthemes.com/themes/category/premium/"><?php esc_html_e( 'Check our premium themes.', 'to-top' ); ?></a></p>
|
10 |
+
<a class="catch-banner-link" target="_blank" href="https://catchthemes.com/themes/category/premium/"><img class="catch-banner-image" src="<?php echo esc_url( plugins_url( 'images/premium-theme-246x175.jpg', dirname(__FILE__) ) ) ; ?>" alt="catch" width="246" height="175"></a>
|
11 |
+
</div>
|
12 |
+
</div>
|
13 |
+
|
14 |
+
<div class="catchp-sidebar-spot">
|
15 |
+
<div class="sidebar-spot-inner">
|
16 |
+
<h3><?php esc_html_e( 'Free Themes', 'to-top' ); ?></h3>
|
17 |
+
<p><?php esc_html_e( 'Check out our collection of Free WordPress Themes that are clean, simple and feature-rich.', 'to-top' ); ?> <a target="_blank" href="https://catchthemes.com/themes/category/free/"><?php esc_html_e( 'Check our free themes.', 'to-top' ); ?></a></p>
|
18 |
+
|
19 |
+
<a class="catch-banner-link" target="_blank" href="https://catchthemes.com/themes/category/free/"><img class="catch-banner-image" src="<?php echo esc_url( plugins_url( 'images/free-theme-246x175.jpg', dirname(__FILE__) ) ) ; ?>" alt="catch" width="246" height="175"></a>
|
20 |
+
</div>
|
21 |
+
</div>
|
22 |
+
|
23 |
+
<div class="catchp-sidebar-spot">
|
24 |
+
<div class="sidebar-spot-inner">
|
25 |
+
<h3><?php esc_html_e( 'Premium Plugins', 'to-top' ); ?></h3>
|
26 |
+
<p><?php esc_html_e( 'Check out our secured Premium WordPress Plugins to enhance and add extra functionalities to your website. An exceptional way to get the most out of WordPress!', 'to-top' ); ?> <a target="_blank" href="https://catchplugins.com/plugins/tag/pro/"><?php esc_html_e( 'Check our premium plugins.', 'to-top' ); ?></a></p>
|
27 |
+
<a class="catch-banner-link" target="_blank" href="https://catchplugins.com/plugins/tag/pro/">
|
28 |
+
<img class="catch-banner-image" src="<?php echo esc_url( plugins_url( 'images/premium-plugin-246x116.png', dirname(__FILE__) ) ) ; ?>" alt="catch" width="246" height="116"></a>
|
29 |
+
</div>
|
30 |
+
</div>
|
31 |
+
|
32 |
+
<div class="catchp-sidebar-spot">
|
33 |
+
<div class="sidebar-spot-inner">
|
34 |
+
<h3><?php esc_html_e( 'Free Plugins', 'to-top' ); ?></h3>
|
35 |
+
<p><?php esc_html_e( 'Check out our Free WordPress Plugins and get the taste of our service without affecting your wallet.', 'to-top' ); ?> <a target="_blank" href="https://catchplugins.com/plugins/tag/free/
|
36 |
+
"><?php esc_html_e( 'check our free plugins.', 'to-top' ); ?></a></p>
|
37 |
+
<a class="catch-banner-link" target="_blank" href="https://catchplugins.com/plugins/tag/free/
|
38 |
+
">
|
39 |
+
<img class="catch-banner-image" src="<?php echo esc_url( plugins_url( 'images/free-plugin-246x116.png', dirname(__FILE__) ) ) ; ?>" alt="catch" width="246" height="116"></a>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</div><!-- .catchp-sidebar-spot-wrapper -->
|
43 |
+
|
44 |
+
</div>
|
45 |
+
</div>
|
admin/partials/to-top-admin-display.php
CHANGED
@@ -1,353 +1,67 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Provide a admin area view for the plugin
|
5 |
*
|
6 |
* This file is used to markup the admin-facing aspects of the plugin.
|
7 |
*
|
8 |
-
* @link
|
9 |
-
* @since 1.0
|
10 |
*
|
11 |
-
* @package
|
12 |
-
* @subpackage
|
13 |
*/
|
14 |
-
?>
|
15 |
-
|
16 |
-
<!-- For Facebook -->
|
17 |
-
<div id="fb-root"></div>
|
18 |
-
|
19 |
-
<div id="to-top" class="wrap">
|
20 |
-
<h1 class="title"><?php esc_html_e( 'To Top Settings', 'to-top' ); ?></h1>
|
21 |
-
<?php if( isset($_GET['settings-updated']) ) { ?>
|
22 |
-
<div id="message" class="notice updated fade">
|
23 |
-
<p><strong><?php esc_html_e( 'Plugin Options Saved.', 'to-top' ) ?></strong></p>
|
24 |
-
</div>
|
25 |
-
<?php } ?>
|
26 |
-
|
27 |
-
<div id="plugin-option-header">
|
28 |
-
<div id="plugin-social">
|
29 |
-
<ul>
|
30 |
-
<li class="widget-fb">
|
31 |
-
<div data-show-faces="false" data-width="80" data-layout="button_count" data-send="false" data-href="<?php echo esc_url( 'https://facebook.com/catchthemes' ); ?>" class="fb-like"></div>
|
32 |
-
</li>
|
33 |
-
|
34 |
-
<li class="widget-tw">
|
35 |
-
<a data-dnt="true" data-show-screen-name="true" data-show-count="true" class="twitter-follow-button" href="<?php echo esc_url( 'https://twitter.com/catchthemes' ); ?>"> <?php esc_html_e( 'Follow @catchthemes', 'to-top' ) ?></a>
|
36 |
-
</li>
|
37 |
-
</ul>
|
38 |
-
</div><!-- #plugin-social -->
|
39 |
-
|
40 |
-
<div id="plugin-option-title">
|
41 |
-
<h2 class="logo">
|
42 |
-
<a href="<?php echo esc_url( __( 'https://catchthemes.com/', 'to-top' ) ); ?>" title="<?php esc_attr_e( 'Catch Themes', 'to-top' ); ?>" target="_blank">
|
43 |
-
|
44 |
-
<img src="https://catchthemes.com/wp-content/uploads/2016/11/catchthemes-logo.png" alt="<?php esc_html_e( 'Catch Themes', 'to-top' ); ?>" />
|
45 |
-
</a>
|
46 |
-
</h2>
|
47 |
-
</div><!-- #plugin-option-title -->
|
48 |
-
|
49 |
-
<div id="plugin-support">
|
50 |
-
<ul>
|
51 |
-
<li>
|
52 |
-
<a class="button" href="<?php echo esc_url( __('https://catchthemes.com/forum/to-top/', 'to-top' )); ?>" title="<?php esc_attr_e('Support Forum', 'to-top' ); ?>" target="_blank"><?php printf(__('Support Forum', 'to-top' )); ?></a>
|
53 |
-
</li>
|
54 |
-
<li>
|
55 |
-
<a class="button" href="<?php echo esc_url( __('https://catchthemes.com/wp-plugins/to-top/', 'to-top' )); ?>" title="<?php esc_attr_e('Plugin Details', 'to-top' ); ?>" target="_blank"><?php printf(__('Plugin Details', 'to-top' ) ); ?></a>
|
56 |
-
</li>
|
57 |
-
<li>
|
58 |
-
<a class="button" href="<?php echo esc_url( __('https://www.facebook.com/catchthemes/', 'to-top' ) ); ?>" title="<?php esc_attr_e( 'Like Catch Themes on Facebook', 'to-top' ); ?>" target="_blank"><?php printf(__('Facebook', 'to-top' )); ?></a>
|
59 |
-
</li>
|
60 |
-
<li>
|
61 |
-
<a class="button" href="<?php echo esc_url( __('https://twitter.com/catchthemes/', 'to-top' ) ); ?>" title="<?php esc_attr_e( 'Follow Catch Themes on Twitter', 'to-top' ); ?>" target="_blank"><?php printf( __('Twitter', 'to-top' ) ); ?></a>
|
62 |
-
</li>
|
63 |
-
<li>
|
64 |
-
<a class="button" href="<?php echo esc_url( __('https://wordpress.org/support/view/plugin-reviews/to-top', 'to-top' ) ); ?>" title="<?php esc_attr_e('Rate us 5 Star on WordPress', 'to-top' ); ?>" target="_blank"><?php printf( __('5 Star Rating', 'to-top' ) ); ?></a>
|
65 |
-
</li>
|
66 |
-
</ul>
|
67 |
-
</div><!-- #plugin-support -->
|
68 |
-
</div><!-- #plugin-option-header -->
|
69 |
-
|
70 |
-
<div id="customizer-message" class="update-nag">
|
71 |
-
<?php
|
72 |
-
$customizer_link = add_query_arg( array(
|
73 |
-
'autofocus[panel]' => 'to_top_panel',
|
74 |
-
),
|
75 |
-
admin_url('customize.php')
|
76 |
-
);
|
77 |
-
|
78 |
-
$settings_link = '<a href="' . esc_url( $customizer_link ) . '">' .esc_html__( 'Customizer', 'to-top' ) . '</a>';
|
79 |
-
?>
|
80 |
-
<p><strong><?php esc_html_e( 'Want Live Preview? Change the settings from ', 'to-top' ); echo $settings_link; ?></strong></p>
|
81 |
-
</div><!-- #message -->
|
82 |
-
|
83 |
-
<div id="to_top_main">
|
84 |
-
<form method="post" action="options.php">
|
85 |
-
<?php settings_fields( 'to-top-group' ); ?>
|
86 |
-
<?php $settings = to_top_get_options( 'to_top_options' ); ?>
|
87 |
-
<div class="option-container">
|
88 |
-
<h3 class="option-toggle option-active"><a href="#"><?php esc_html_e( 'Basic Settings', 'to-top' ); ?></a></h3>
|
89 |
-
<div class="option-content inside open">
|
90 |
-
<table class="form-table">
|
91 |
-
<tbody>
|
92 |
-
<tr>
|
93 |
-
<th scope="row"><?php esc_html_e( 'Scroll Offset (px)', 'to-top' ); ?></th>
|
94 |
-
<td>
|
95 |
-
<?php
|
96 |
-
echo '<input min="1" type="number" id="to_top_options[scroll_offset]" name="to_top_options[scroll_offset]" value="'. absint( $settings['scroll_offset'] ) .'"/>px';
|
97 |
-
|
98 |
-
echo '<p class="description">'. esc_html__( 'Number of pixels to be scrolled before the button appears', 'to-top' ) .'</p>';
|
99 |
-
?>
|
100 |
-
</td>
|
101 |
-
</tr>
|
102 |
-
|
103 |
-
<tr>
|
104 |
-
<th scope="row"><?php esc_html_e( 'Icon Opacity (%)', 'to-top' ); ?></th>
|
105 |
-
<td>
|
106 |
-
<?php
|
107 |
-
echo '<input min="1" max="100" type="number" id="to_top_options[icon_opacity]" name="to_top_options[icon_opacity]" value="'. absint( $settings['icon_opacity'] ) .'"/>%';
|
108 |
-
?>
|
109 |
-
</td>
|
110 |
-
</tr>
|
111 |
-
|
112 |
-
<tr>
|
113 |
-
<th scope="row"><?php esc_html_e( 'Style', 'to-top' ); ?></th>
|
114 |
-
|
115 |
-
<td>
|
116 |
-
<?php
|
117 |
-
echo '<select id="to_top_options_style" name="to_top_options[style]">';
|
118 |
-
echo '<option value="icon"' . selected( $settings['style'], 'icon', false) . '>'. esc_html__( 'Icon Using Dashicons', 'to-top') .'</option>';
|
119 |
-
echo '<option value="genericon-icon"' . selected( $settings['style'], 'genericon-icon', false) . '>'. esc_html__( 'Icon Using Genericons', 'to-top') .'</option>';
|
120 |
-
echo '<option value="font-awesome-icon"' . selected( $settings['style'], 'font-awesome-icon', false) . '>'. esc_html__( 'Icon Using Font Awesome Icons', 'to-top') .'</option>';
|
121 |
-
echo '<option value="image"' . selected( $settings['style'], 'image', false) . '>'. esc_html__( 'Image', 'to-top') .'</option>';
|
122 |
-
echo '</select>';
|
123 |
-
?>
|
124 |
-
</td>
|
125 |
-
</tr>
|
126 |
-
</tbody>
|
127 |
-
</table>
|
128 |
-
|
129 |
-
<?php submit_button( esc_html__( 'Save Changes', 'to-top' ) ); ?>
|
130 |
-
</div>
|
131 |
-
|
132 |
-
<div class="to_top_icon_settings">
|
133 |
-
<h3 class="option-toggle "><a href="#"><?php esc_html_e( 'Icon Settings', 'to-top' ); ?></a></h3>
|
134 |
-
<div class="option-content inside open">
|
135 |
-
<table class="form-table">
|
136 |
-
<tbody>
|
137 |
-
<tr>
|
138 |
-
<th scope="row"><?php esc_html_e( 'Select Icon Type', 'to-top' ); ?></th>
|
139 |
-
|
140 |
-
<td>
|
141 |
-
<?php
|
142 |
-
echo '<input type="radio" id="to_top_options_icon_type_1" name="to_top_options[icon_type]" value="dashicons-arrow-up"' . checked( 'dashicons-arrow-up', $settings['icon_type'], false ) . '/>';
|
143 |
-
echo '<label class="dashicon_label" for="to_top_options_icon_type_1"><span class="dashicon_to_top_admin dashicons dashicons-arrow-up"></span></label>';
|
144 |
-
|
145 |
-
echo '<input type="radio" id="to_top_options_icon_type_2" name="to_top_options[icon_type]" value="dashicons-arrow-up-alt"' . checked( 'dashicons-arrow-up-alt', $settings['icon_type'], false ) . '/>';
|
146 |
-
echo '<label class="dashicon_label" for="to_top_options_icon_type_2"><span class="dashicon_to_top_admin dashicons dashicons-arrow-up-alt"></span></label>';
|
147 |
-
|
148 |
-
echo '<input type="radio" id="to_top_options_icon_type_3" name="to_top_options[icon_type]" value="dashicons-arrow-up-alt2"' . checked( 'dashicons-arrow-up-alt2', $settings['icon_type'], false ) . '/>';
|
149 |
-
echo '<label class="dashicon_label" for="to_top_options_icon_type_3"><span class="dashicon_to_top_admin dashicons dashicons-arrow-up-alt2"></span></label>';
|
150 |
-
?>
|
151 |
-
</td>
|
152 |
-
</tr>
|
153 |
-
|
154 |
-
<tr>
|
155 |
-
<th scope="row"><?php esc_html_e( 'Icon Color', 'to-top' ); ?></th>
|
156 |
-
|
157 |
-
<td>
|
158 |
-
<?php
|
159 |
-
echo '<input type="text" class="to_top_icon_color" name="to_top_options[icon_color]" value="'. sanitize_text_field( $settings['icon_color'] ) .'"/>';
|
160 |
-
?>
|
161 |
-
</td>
|
162 |
-
</tr>
|
163 |
-
|
164 |
-
<tr>
|
165 |
-
<th scope="row"><?php esc_html_e( 'Icon Background Color', 'to-top' ); ?></th>
|
166 |
|
167 |
-
|
168 |
-
<?php
|
169 |
-
echo '<input type="text" class="to_top_icon_bg_color" name="to_top_options[icon_bg_color]" value="'. sanitize_text_field( $settings['icon_bg_color'] ) .'"/>';
|
170 |
-
?>
|
171 |
-
</td>
|
172 |
-
</tr>
|
173 |
-
|
174 |
-
<tr>
|
175 |
-
<th scope="row"><?php esc_html_e( 'Icon Size (px)', 'to-top' ); ?></th>
|
176 |
-
<td>
|
177 |
-
<?php
|
178 |
-
echo '<input min="0" type="number" id="to_top_icon_size" name="to_top_options[icon_size]" value="'. absint( $settings['icon_size'] ) .'"/>px';
|
179 |
-
?>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
|
183 |
-
<tr>
|
184 |
-
<th scope="row"><?php esc_html_e( 'Border Radius (%)', 'to-top' ); ?></th>
|
185 |
-
<td>
|
186 |
-
<?php
|
187 |
-
echo '<input min="0" max="50" type="number" id="to_top_border_radius" name="to_top_options[border_radius]" value="'. absint( $settings['border_radius'] ) .'"/>%';
|
188 |
-
|
189 |
-
echo '<p class="description">'. esc_html__( '0 will make the icon background square, 50 will make it a circle', 'to-top' ) .'</p>';
|
190 |
-
?>
|
191 |
-
</td>
|
192 |
-
</tr>
|
193 |
-
</tbody>
|
194 |
-
</table>
|
195 |
-
<?php submit_button( esc_html__( 'Save Changes', 'to-top' ) ); ?>
|
196 |
-
</div>
|
197 |
-
</div>
|
198 |
-
|
199 |
-
<div class="to_top_image_settings">
|
200 |
-
<h3 class="option-toggle"><a href="#"><?php esc_html_e( 'Image Settings', 'to-top' ); ?></a></h3>
|
201 |
-
<div class="option-content inside open">
|
202 |
-
<table class="form-table">
|
203 |
-
<tbody>
|
204 |
-
<tr>
|
205 |
-
<th scope="row"><?php esc_html_e( 'Image', 'to-top' ); ?></th>
|
206 |
-
<td>
|
207 |
-
<input class="upload-url" size="65" type="text" name="to_top_options[image]" value="<?php echo esc_url( $settings['image'] ); ?>" />
|
208 |
-
<input ref="<?php esc_attr_e( 'Insert Image','to-top' );?>" class="to_top_upload_image button" name="wsl-image-add" type="button" value="<?php esc_attr_e( 'Change Image','to-top' );?>" />
|
209 |
-
</td>
|
210 |
-
</tr>
|
211 |
-
|
212 |
-
<tr>
|
213 |
-
<th scope="row"><?php esc_html_e( 'Image Width (px)', 'to-top' ); ?></th>
|
214 |
-
<td>
|
215 |
-
<?php
|
216 |
-
echo '<input min="0" max="200" type="number" size="65" id="to_top_options[image_width]" name="to_top_options[image_width]" value="'. absint( $settings['image_width'] ) .'"/>px';
|
217 |
-
?>
|
218 |
-
</td>
|
219 |
-
</tr>
|
220 |
-
|
221 |
-
<tr>
|
222 |
-
<th scope="row"><?php esc_html_e( 'Image Alt', 'to-top' ); ?></th>
|
223 |
-
<td>
|
224 |
-
<?php
|
225 |
-
echo '<input type="text" size="65" id="to_top_options[image_alt]" name="to_top_options[image_alt]" value="'. sanitize_text_field( $settings['image_alt'] ) .'"/>';
|
226 |
-
?>
|
227 |
-
</td>
|
228 |
-
</tr>
|
229 |
-
</tbody>
|
230 |
-
</table>
|
231 |
-
<?php submit_button( esc_html__( 'Save Changes', 'to-top' ) ); ?>
|
232 |
-
</div>
|
233 |
-
</div>
|
234 |
-
|
235 |
-
<h3 class="option-toggle option-active"><a href="#"><?php esc_html_e( 'Advanced Settings', 'to-top' ); ?></a></h3>
|
236 |
-
<div class="option-content inside">
|
237 |
-
<table class="form-table">
|
238 |
-
<tbody>
|
239 |
-
<tr>
|
240 |
-
<th scope="row"><?php esc_html_e( 'Location', 'to-top' ); ?></th>
|
241 |
-
|
242 |
-
<td>
|
243 |
-
<?php
|
244 |
-
echo '<select id="to_top_options[location]" name="to_top_options[location]">';
|
245 |
-
echo '<option value="bottom-right"' . selected( $settings['location'], 'bottom-right', false) . '>'. esc_html__( 'Bottom Right', 'to-top') .'</option>';
|
246 |
-
echo '<option value="bottom-left"' . selected( $settings['location'], 'bottom-left', false) . '>'. esc_html__( 'Bottom Left', 'to-top') .'</option>';
|
247 |
-
echo '<option value="top-right"' . selected( $settings['location'], 'top-right', false) . '>'. esc_html__( 'Top Right', 'to-top') .'</option>';
|
248 |
-
echo '<option value="top-left"' . selected( $settings['location'], 'top-left', false) . '>'. esc_html__( 'Top Left', 'to-top') .'</option>';
|
249 |
-
echo '</select>';
|
250 |
-
?>
|
251 |
-
</td>
|
252 |
-
</tr>
|
253 |
-
|
254 |
-
<tr>
|
255 |
-
<th scope="row"><?php esc_html_e( 'Margin X (px)', 'to-top' ); ?></th>
|
256 |
-
<td>
|
257 |
-
<?php
|
258 |
-
echo '<input min="1" type="number" id="to_top_options[margin_x]" name="to_top_options[margin_x]" value="'. absint( $settings['margin_x'] ) .'"/>px';
|
259 |
-
?>
|
260 |
-
</td>
|
261 |
-
</tr>
|
262 |
-
|
263 |
-
<tr>
|
264 |
-
<th scope="row"><?php esc_html_e( 'Margin Y (px)', 'to-top' ); ?></th>
|
265 |
-
<td>
|
266 |
-
<?php
|
267 |
-
echo '<input min="1" type="number" id="to_top_options[margin_y]" name="to_top_options[margin_y]" value="'. absint( $settings['margin_y'] ) .'"/>px';
|
268 |
-
?>
|
269 |
-
</td>
|
270 |
-
</tr>
|
271 |
-
|
272 |
-
<tr>
|
273 |
-
<th scope="row"><?php esc_html_e( 'Show on WP-ADMIN?', 'to-top' ); ?></th>
|
274 |
-
|
275 |
-
<td>
|
276 |
-
<?php
|
277 |
-
echo '<input name="to_top_options[show_on_admin]" id="to_top_options[show_on_admin]" type="checkbox" value="1" class="to_top_options[show_on_admin]" ' . checked( 1, $settings['show_on_admin'], false ) . ' />' . esc_html__( 'Check to Enable','to-top' );
|
278 |
-
echo '<p class="description">' . esc_html__( 'Button will be shown on admin section', 'to-top' ) .'</p>';
|
279 |
-
?>
|
280 |
-
</td>
|
281 |
-
</tr>
|
282 |
-
|
283 |
-
<tr>
|
284 |
-
<th scope="row"><?php esc_html_e( 'Enable Auto Hide', 'to-top' ); ?></th>
|
285 |
-
|
286 |
-
<td>
|
287 |
-
<?php
|
288 |
-
echo '<input name="to_top_options[enable_autohide]" id="to_top_options[enable_autohide]" type="checkbox" value="1" class="to_top_options[enable_autohide]" ' . checked( 1, $settings['enable_autohide'], false ) . ' />' . esc_html__( 'Check to Enable','to-top' );
|
289 |
-
?>
|
290 |
-
</td>
|
291 |
-
</tr>
|
292 |
-
|
293 |
-
<tr>
|
294 |
-
<th scope="row"><?php esc_html_e( 'Auto Hide Time (secs)', 'to-top' ); ?></th>
|
295 |
-
<td>
|
296 |
-
<?php
|
297 |
-
echo '<input min="1" type="number" id="to_top_options[autohide_time]" name="to_top_options[autohide_time]" value="'. absint( $settings['autohide_time'] ) .'"/>sec(s)';
|
298 |
-
|
299 |
-
echo '<p class="description">'. esc_html__( 'Button will be auto hidden after this duration in seconds, if enabled', 'to-top' ) .'</p>';
|
300 |
-
?>
|
301 |
-
</td>
|
302 |
-
</tr>
|
303 |
-
|
304 |
-
<tr>
|
305 |
-
<th scope="row"><?php esc_html_e( 'Hide on Small Devices?', 'to-top' ); ?></th>
|
306 |
-
|
307 |
-
<td>
|
308 |
-
<?php
|
309 |
-
echo '<input name="to_top_options[enable_hide_small_device]" id="to_top_options[enable_hide_small_device]" type="checkbox" value="1" class="to_top_options[enable_hide_small_device]" ' . checked( 1, $settings['enable_hide_small_device'], false ) . ' />' . esc_html__( 'Check to Enable','to-top' );
|
310 |
-
echo '<p class="description">' . esc_html__( 'Button will be hidden on small devices when the width below matches', 'to-top' ) .'</p>';
|
311 |
-
?>
|
312 |
-
</td>
|
313 |
-
</tr>
|
314 |
-
|
315 |
-
<tr>
|
316 |
-
<th scope="row"><?php esc_html_e( 'Small Device Max Width (px)', 'to-top' ); ?></th>
|
317 |
-
<td>
|
318 |
-
<?php
|
319 |
-
echo '<input min="1" type="number" id="to_top_options[small_device_max_width]" name="to_top_options[small_device_max_width]" value="'. absint( $settings['small_device_max_width'] ) .'"/>px';
|
320 |
-
|
321 |
-
echo '<p class="description">'. esc_html__( 'Button will be hidden on devices with lesser or equal width', 'to-top' ) .'</p>';
|
322 |
-
?>
|
323 |
-
</td>
|
324 |
-
</tr>
|
325 |
-
</tbody>
|
326 |
-
</table>
|
327 |
-
|
328 |
-
<?php submit_button( esc_html__( 'Save Changes', 'to-top' ) ); ?>
|
329 |
-
</div>
|
330 |
-
|
331 |
-
<h3 class="option-toggle option-active"><a href="#"><?php esc_html_e( 'Reset Settings', 'to-top' ); ?></a></h3>
|
332 |
-
<div class="option-content inside">
|
333 |
-
<table class="form-table">
|
334 |
-
<tbody>
|
335 |
-
<tr>
|
336 |
-
<th scope="row"><?php esc_html_e( 'Reset All Settings', 'to-top' ); ?></th>
|
337 |
-
|
338 |
-
<td>
|
339 |
-
<?php
|
340 |
-
echo '<input name="to_top_options[reset]" id="to_top_options[reset]" type="checkbox" value="1" class="to_top_options[reset]" ' . checked( 1, $settings['reset'], false ) . ' />' . esc_html__( 'Check to Reset All Settings','to-top' );
|
341 |
-
echo '<p class="description">' . esc_html__( 'Caution: All data will be lost', 'to-top' ) .'</p>';
|
342 |
-
?>
|
343 |
-
</td>
|
344 |
-
</tr>
|
345 |
-
</tbody>
|
346 |
-
</table>
|
347 |
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Provide a admin area view for the plugin
|
4 |
*
|
5 |
* This file is used to markup the admin-facing aspects of the plugin.
|
6 |
*
|
7 |
+
* @link catchplugins.com
|
8 |
+
* @since 1.0.0
|
9 |
*
|
10 |
+
* @package Catch_Instagram_Feed_Gallery_Widget
|
11 |
+
* @subpackage Catch_Instagram_Feed_Gallery_Widget/admin/partials
|
12 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
+
<div class="wrap">
|
17 |
+
<h1 class="wp-heading-inline"><?php esc_html_e( 'To Top', 'to-top' ); ?></h1>
|
18 |
+
|
19 |
+
<div class="catchp-content-wrapper">
|
20 |
+
<div class="catchp_widget_settings">
|
21 |
+
<form id="catch-instagram-feed-gallery-widget-main" method="post" action="options.php">
|
22 |
+
|
23 |
+
<h2 class="nav-tab-wrapper">
|
24 |
+
<a class="nav-tab nav-tab-active" id="dashboard-tab" href="#dashboard"><?php esc_html_e( 'Dashboard', 'to-top' ); ?></a>
|
25 |
+
<a class="nav-tab" id="features-tab" href="#features"><?php esc_html_e( 'Features', 'to-top' ); ?></a>
|
26 |
+
</h2>
|
27 |
+
|
28 |
+
<div id="dashboard" class="wpcatchtab nosave active">
|
29 |
+
<?php require_once plugin_dir_path( dirname( __FILE__ ) ) . '/partials/to-top-dashboard.php'; ?>
|
30 |
+
</div><!-- .dashboard -->
|
31 |
+
|
32 |
+
<div id="features" class="wpcatchtab save">
|
33 |
+
<div class="content-wrapper col-3">
|
34 |
+
<div class="header">
|
35 |
+
<h3><?php esc_html_e( 'Features', 'to-top' ); ?></h3>
|
36 |
+
</div><!-- .header -->
|
37 |
+
<div class="content">
|
38 |
+
<ul class="catchp-lists">
|
39 |
+
<li>
|
40 |
+
<strong><?php esc_html_e( 'Supports all themes on WordPress', 'to-top' ); ?></strong>
|
41 |
+
<p><?php esc_html_e( 'You don’t have to worry if you have a slightly different or complicated theme installed on your website. It supports all the themes on WordPress and makes your website more striking and playful.', 'to-top' ); ?></p>
|
42 |
+
</li>
|
43 |
+
|
44 |
+
<li>
|
45 |
+
<strong><?php esc_html_e( 'Lightweight', 'to-top' ); ?></strong>
|
46 |
+
<p><?php esc_html_e( 'It is extremely lightweight. You do not need to worry about it affecting the space and speed of your website.', 'to-top' ); ?></p>
|
47 |
+
</li>
|
48 |
+
|
49 |
+
<li>
|
50 |
+
<strong><?php esc_html_e( 'Incredible Support', 'to-top' ); ?></strong>
|
51 |
+
<p><?php esc_html_e( 'We have a great line of support team and support documentation. You do not need to worry about how to use the plugins we provide, just refer to our Tech Support Forum. Further, if you need to do advanced customization to your website, you can always hire our theme customizer!', 'to-top' ); ?></p>
|
52 |
+
</li>
|
53 |
+
</ul>
|
54 |
+
</div><!-- .content -->
|
55 |
+
</div><!-- content-wrapper -->
|
56 |
+
</div> <!-- Featured -->
|
57 |
+
|
58 |
+
</form><!-- #catch-instagram-feed-gallery-widget-main -->
|
59 |
+
|
60 |
+
</div><!-- .catchp_widget_settings -->
|
61 |
+
|
62 |
+
|
63 |
+
<?php require_once plugin_dir_path( dirname( __FILE__ ) ) . '/partials/sidebar.php'; ?>
|
64 |
+
</div> <!-- .catchp-content-wrapper -->
|
65 |
+
|
66 |
+
<?php require_once plugin_dir_path( dirname( __FILE__ ) ) . '/partials/footer.php'; ?>
|
67 |
+
</div><!-- .wrap -->
|
admin/partials/to-top-dashboard.php
ADDED
@@ -0,0 +1,314 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Provide a admin area view for the plugin
|
5 |
+
*
|
6 |
+
* This file is used to markup the admin-facing aspects of the plugin.
|
7 |
+
*
|
8 |
+
* @link catchplugins.com
|
9 |
+
* @since 1.0
|
10 |
+
*
|
11 |
+
* @package To_Top
|
12 |
+
* @subpackage To_Top/admin/partials
|
13 |
+
*/
|
14 |
+
?>
|
15 |
+
|
16 |
+
<!-- For Facebook -->
|
17 |
+
<!-- <div id="fb-root"></div> -->
|
18 |
+
|
19 |
+
<?php if( isset($_GET['settings-updated']) ) { ?>
|
20 |
+
<div id="message" class="notice updated fade">
|
21 |
+
<p><strong><?php esc_html_e( 'Plugin Options Saved.', 'to-top' ) ?></strong></p>
|
22 |
+
</div>
|
23 |
+
<?php } ?>
|
24 |
+
|
25 |
+
<div id="to_top_main">
|
26 |
+
<div class="content-wrapper">
|
27 |
+
<div class="content">
|
28 |
+
<div id="customizer-message" class="update-nag">
|
29 |
+
<?php
|
30 |
+
$customizer_link = add_query_arg( array(
|
31 |
+
'autofocus[panel]' => 'to_top_panel',
|
32 |
+
),
|
33 |
+
admin_url('customize.php')
|
34 |
+
);
|
35 |
+
|
36 |
+
$settings_link = '<a href="' . esc_url( $customizer_link ) . '">' .esc_html__( 'Customizer', 'to-top' ) . '</a>';
|
37 |
+
?>
|
38 |
+
<p><strong><?php esc_html_e( 'Want Live Preview? Change the settings from ', 'to-top' ); echo $settings_link; ?></strong></p>
|
39 |
+
</div><!-- #message -->
|
40 |
+
</div><!-- .content -->
|
41 |
+
</div><!-- .content-wrapper -->
|
42 |
+
|
43 |
+
<div class="content-wrapper">
|
44 |
+
<div class="header">
|
45 |
+
<h3><?php esc_html_e( 'Settings', 'to-top' ); ?></h3>
|
46 |
+
</div><!-- .header -->
|
47 |
+
<div class="content">
|
48 |
+
<form method="post" action="options.php">
|
49 |
+
<?php settings_fields( 'to-top-group' ); ?>
|
50 |
+
<?php $settings = to_top_get_options( 'to_top_options' ); ?>
|
51 |
+
<div class="option-container">
|
52 |
+
<h3 class="option-toggle option-active"><a href="#"><?php esc_html_e( 'Basic Settings', 'to-top' ); ?></a></h3>
|
53 |
+
<div class="option-content open">
|
54 |
+
<table class="form-table">
|
55 |
+
<tbody>
|
56 |
+
<tr>
|
57 |
+
<th scope="row"><?php esc_html_e( 'Scroll Offset (px)', 'to-top' ); ?></th>
|
58 |
+
<td>
|
59 |
+
<?php
|
60 |
+
echo '<input min="1" type="number" id="to_top_options[scroll_offset]" name="to_top_options[scroll_offset]" value="'. absint( $settings['scroll_offset'] ) .'"/>px';
|
61 |
+
|
62 |
+
echo '<p class="description">'. esc_html__( 'Number of pixels to be scrolled before the button appears', 'to-top' ) .'</p>';
|
63 |
+
?>
|
64 |
+
</td>
|
65 |
+
</tr>
|
66 |
+
|
67 |
+
<tr>
|
68 |
+
<th scope="row"><?php esc_html_e( 'Icon Opacity (%)', 'to-top' ); ?></th>
|
69 |
+
<td>
|
70 |
+
<?php
|
71 |
+
echo '<input min="1" max="100" type="number" id="to_top_options[icon_opacity]" name="to_top_options[icon_opacity]" value="'. absint( $settings['icon_opacity'] ) .'"/>%';
|
72 |
+
?>
|
73 |
+
</td>
|
74 |
+
</tr>
|
75 |
+
|
76 |
+
<tr>
|
77 |
+
<th scope="row"><?php esc_html_e( 'Style', 'to-top' ); ?></th>
|
78 |
+
|
79 |
+
<td>
|
80 |
+
<?php
|
81 |
+
echo '<select id="to_top_options_style" name="to_top_options[style]">';
|
82 |
+
echo '<option value="icon"' . selected( $settings['style'], 'icon', false) . '>'. esc_html__( 'Icon Using Dashicons', 'to-top') .'</option>';
|
83 |
+
echo '<option value="genericon-icon"' . selected( $settings['style'], 'genericon-icon', false) . '>'. esc_html__( 'Icon Using Genericons', 'to-top') .'</option>';
|
84 |
+
echo '<option value="font-awesome-icon"' . selected( $settings['style'], 'font-awesome-icon', false) . '>'. esc_html__( 'Icon Using Font Awesome Icons', 'to-top') .'</option>';
|
85 |
+
echo '<option value="image"' . selected( $settings['style'], 'image', false) . '>'. esc_html__( 'Image', 'to-top') .'</option>';
|
86 |
+
echo '</select>';
|
87 |
+
?>
|
88 |
+
</td>
|
89 |
+
</tr>
|
90 |
+
</tbody>
|
91 |
+
</table>
|
92 |
+
|
93 |
+
<?php submit_button( esc_html__( 'Save Changes', 'to-top' ) ); ?>
|
94 |
+
</div>
|
95 |
+
|
96 |
+
<h3 class="option-toggle" id="icon-settings"><a href="#"><?php esc_html_e( 'Icon Settings', 'to-top' ); ?></a></h3>
|
97 |
+
<div class="option-content">
|
98 |
+
<table class="form-table">
|
99 |
+
<tbody>
|
100 |
+
<tr>
|
101 |
+
<th scope="row"><?php esc_html_e( 'Select Icon Type', 'to-top' ); ?></th>
|
102 |
+
|
103 |
+
<td>
|
104 |
+
<?php
|
105 |
+
echo '<input type="radio" id="to_top_options_icon_type_1" name="to_top_options[icon_type]" value="dashicons-arrow-up"' . checked( 'dashicons-arrow-up', $settings['icon_type'], false ) . '/>';
|
106 |
+
echo '<label class="dashicon_label" for="to_top_options_icon_type_1"><span class="dashicon_to_top_admin dashicons dashicons-arrow-up"></span></label>';
|
107 |
+
|
108 |
+
echo '<input type="radio" id="to_top_options_icon_type_2" name="to_top_options[icon_type]" value="dashicons-arrow-up-alt"' . checked( 'dashicons-arrow-up-alt', $settings['icon_type'], false ) . '/>';
|
109 |
+
echo '<label class="dashicon_label" for="to_top_options_icon_type_2"><span class="dashicon_to_top_admin dashicons dashicons-arrow-up-alt"></span></label>';
|
110 |
+
|
111 |
+
echo '<input type="radio" id="to_top_options_icon_type_3" name="to_top_options[icon_type]" value="dashicons-arrow-up-alt2"' . checked( 'dashicons-arrow-up-alt2', $settings['icon_type'], false ) . '/>';
|
112 |
+
echo '<label class="dashicon_label" for="to_top_options_icon_type_3"><span class="dashicon_to_top_admin dashicons dashicons-arrow-up-alt2"></span></label>';
|
113 |
+
?>
|
114 |
+
</td>
|
115 |
+
</tr>
|
116 |
+
|
117 |
+
<tr>
|
118 |
+
<th scope="row"><?php esc_html_e( 'Icon Color', 'to-top' ); ?></th>
|
119 |
+
|
120 |
+
<td>
|
121 |
+
<?php
|
122 |
+
echo '<input type="text" class="to_top_icon_color" name="to_top_options[icon_color]" value="'. sanitize_text_field( $settings['icon_color'] ) .'"/>';
|
123 |
+
?>
|
124 |
+
</td>
|
125 |
+
</tr>
|
126 |
+
|
127 |
+
<tr>
|
128 |
+
<th scope="row"><?php esc_html_e( 'Icon Background Color', 'to-top' ); ?></th>
|
129 |
+
|
130 |
+
<td>
|
131 |
+
<?php
|
132 |
+
echo '<input type="text" class="to_top_icon_bg_color" name="to_top_options[icon_bg_color]" value="'. sanitize_text_field( $settings['icon_bg_color'] ) .'"/>';
|
133 |
+
?>
|
134 |
+
</td>
|
135 |
+
</tr>
|
136 |
+
|
137 |
+
<tr>
|
138 |
+
<th scope="row"><?php esc_html_e( 'Icon Size (px)', 'to-top' ); ?></th>
|
139 |
+
<td>
|
140 |
+
<?php
|
141 |
+
echo '<input min="0" type="number" id="to_top_icon_size" name="to_top_options[icon_size]" value="'. absint( $settings['icon_size'] ) .'"/>px';
|
142 |
+
?>
|
143 |
+
</td>
|
144 |
+
</tr>
|
145 |
+
|
146 |
+
<tr>
|
147 |
+
<th scope="row"><?php esc_html_e( 'Border Radius (%)', 'to-top' ); ?></th>
|
148 |
+
<td>
|
149 |
+
<?php
|
150 |
+
echo '<input min="0" max="50" type="number" id="to_top_border_radius" name="to_top_options[border_radius]" value="'. absint( $settings['border_radius'] ) .'"/>%';
|
151 |
+
|
152 |
+
echo '<p class="description">'. esc_html__( '0 will make the icon background square, 50 will make it a circle', 'to-top' ) .'</p>';
|
153 |
+
?>
|
154 |
+
</td>
|
155 |
+
</tr>
|
156 |
+
</tbody>
|
157 |
+
</table>
|
158 |
+
<?php submit_button( esc_html__( 'Save Changes', 'to-top' ) ); ?>
|
159 |
+
</div>
|
160 |
+
|
161 |
+
<h3 class="option-toggle" id="image-settings"><a href="#"><?php esc_html_e( 'Image Settings', 'to-top' ); ?></a></h3>
|
162 |
+
<div class="option-content">
|
163 |
+
<table class="form-table">
|
164 |
+
<tbody>
|
165 |
+
<tr>
|
166 |
+
<th scope="row"><?php esc_html_e( 'Image', 'to-top' ); ?></th>
|
167 |
+
<td>
|
168 |
+
<input class="upload-url" size="65" type="text" name="to_top_options[image]" value="<?php echo esc_url( $settings['image'] ); ?>" />
|
169 |
+
<input ref="<?php esc_attr_e( 'Insert Image','to-top' );?>" class="to_top_upload_image button" name="wsl-image-add" type="button" value="<?php esc_attr_e( 'Change Image','to-top' );?>" />
|
170 |
+
</td>
|
171 |
+
</tr>
|
172 |
+
|
173 |
+
<tr>
|
174 |
+
<th scope="row"><?php esc_html_e( 'Image Width (px)', 'to-top' ); ?></th>
|
175 |
+
<td>
|
176 |
+
<?php
|
177 |
+
echo '<input min="0" max="200" type="number" size="65" id="to_top_options[image_width]" name="to_top_options[image_width]" value="'. absint( $settings['image_width'] ) .'"/>px';
|
178 |
+
?>
|
179 |
+
</td>
|
180 |
+
</tr>
|
181 |
+
|
182 |
+
<tr>
|
183 |
+
<th scope="row"><?php esc_html_e( 'Image Alt', 'to-top' ); ?></th>
|
184 |
+
<td>
|
185 |
+
<?php
|
186 |
+
echo '<input type="text" size="65" id="to_top_options[image_alt]" name="to_top_options[image_alt]" value="'. sanitize_text_field( $settings['image_alt'] ) .'"/>';
|
187 |
+
?>
|
188 |
+
</td>
|
189 |
+
</tr>
|
190 |
+
</tbody>
|
191 |
+
</table>
|
192 |
+
<?php submit_button( esc_html__( 'Save Changes', 'to-top' ) ); ?>
|
193 |
+
</div>
|
194 |
+
|
195 |
+
<h3 class="option-toggle"><a href="#"><?php esc_html_e( 'Advanced Settings', 'to-top' ); ?></a></h3>
|
196 |
+
<div class="option-content">
|
197 |
+
<table class="form-table">
|
198 |
+
<tbody>
|
199 |
+
<tr>
|
200 |
+
<th scope="row"><?php esc_html_e( 'Location', 'to-top' ); ?></th>
|
201 |
+
|
202 |
+
<td>
|
203 |
+
<?php
|
204 |
+
echo '<select id="to_top_options[location]" name="to_top_options[location]">';
|
205 |
+
echo '<option value="bottom-right"' . selected( $settings['location'], 'bottom-right', false) . '>'. esc_html__( 'Bottom Right', 'to-top') .'</option>';
|
206 |
+
echo '<option value="bottom-left"' . selected( $settings['location'], 'bottom-left', false) . '>'. esc_html__( 'Bottom Left', 'to-top') .'</option>';
|
207 |
+
echo '<option value="top-right"' . selected( $settings['location'], 'top-right', false) . '>'. esc_html__( 'Top Right', 'to-top') .'</option>';
|
208 |
+
echo '<option value="top-left"' . selected( $settings['location'], 'top-left', false) . '>'. esc_html__( 'Top Left', 'to-top') .'</option>';
|
209 |
+
echo '</select>';
|
210 |
+
?>
|
211 |
+
</td>
|
212 |
+
</tr>
|
213 |
+
|
214 |
+
<tr>
|
215 |
+
<th scope="row"><?php esc_html_e( 'Margin X (px)', 'to-top' ); ?></th>
|
216 |
+
<td>
|
217 |
+
<?php
|
218 |
+
echo '<input min="1" type="number" id="to_top_options[margin_x]" name="to_top_options[margin_x]" value="'. absint( $settings['margin_x'] ) .'"/>px';
|
219 |
+
?>
|
220 |
+
</td>
|
221 |
+
</tr>
|
222 |
+
|
223 |
+
<tr>
|
224 |
+
<th scope="row"><?php esc_html_e( 'Margin Y (px)', 'to-top' ); ?></th>
|
225 |
+
<td>
|
226 |
+
<?php
|
227 |
+
echo '<input min="1" type="number" id="to_top_options[margin_y]" name="to_top_options[margin_y]" value="'. absint( $settings['margin_y'] ) .'"/>px';
|
228 |
+
?>
|
229 |
+
</td>
|
230 |
+
</tr>
|
231 |
+
|
232 |
+
<tr>
|
233 |
+
<th scope="row"><?php esc_html_e( 'Show on WP-ADMIN?', 'to-top' ); ?></th>
|
234 |
+
|
235 |
+
<td>
|
236 |
+
<?php
|
237 |
+
echo '<input name="to_top_options[show_on_admin]" id="to_top_options[show_on_admin]" type="checkbox" value="1" class="to_top_options[show_on_admin]" ' . checked( 1, $settings['show_on_admin'], false ) . ' />' . esc_html__( 'Check to Enable','to-top' );
|
238 |
+
echo '<p class="description">' . esc_html__( 'Button will be shown on admin section', 'to-top' ) .'</p>';
|
239 |
+
?>
|
240 |
+
</td>
|
241 |
+
</tr>
|
242 |
+
|
243 |
+
<tr>
|
244 |
+
<th scope="row"><?php esc_html_e( 'Enable Auto Hide', 'to-top' ); ?></th>
|
245 |
+
|
246 |
+
<td>
|
247 |
+
<?php
|
248 |
+
echo '<input name="to_top_options[enable_autohide]" id="to_top_options[enable_autohide]" type="checkbox" value="1" class="to_top_options[enable_autohide]" ' . checked( 1, $settings['enable_autohide'], false ) . ' />' . esc_html__( 'Check to Enable','to-top' );
|
249 |
+
?>
|
250 |
+
</td>
|
251 |
+
</tr>
|
252 |
+
|
253 |
+
<tr>
|
254 |
+
<th scope="row"><?php esc_html_e( 'Auto Hide Time (secs)', 'to-top' ); ?></th>
|
255 |
+
<td>
|
256 |
+
<?php
|
257 |
+
echo '<input min="1" type="number" id="to_top_options[autohide_time]" name="to_top_options[autohide_time]" value="'. absint( $settings['autohide_time'] ) .'"/>sec(s)';
|
258 |
+
|
259 |
+
echo '<p class="description">'. esc_html__( 'Button will be auto hidden after this duration in seconds, if enabled', 'to-top' ) .'</p>';
|
260 |
+
?>
|
261 |
+
</td>
|
262 |
+
</tr>
|
263 |
+
|
264 |
+
<tr>
|
265 |
+
<th scope="row"><?php esc_html_e( 'Hide on Small Devices?', 'to-top' ); ?></th>
|
266 |
+
|
267 |
+
<td>
|
268 |
+
<?php
|
269 |
+
echo '<input name="to_top_options[enable_hide_small_device]" id="to_top_options[enable_hide_small_device]" type="checkbox" value="1" class="to_top_options[enable_hide_small_device]" ' . checked( 1, $settings['enable_hide_small_device'], false ) . ' />' . esc_html__( 'Check to Enable','to-top' );
|
270 |
+
echo '<p class="description">' . esc_html__( 'Button will be hidden on small devices when the width below matches', 'to-top' ) .'</p>';
|
271 |
+
?>
|
272 |
+
</td>
|
273 |
+
</tr>
|
274 |
+
|
275 |
+
<tr>
|
276 |
+
<th scope="row"><?php esc_html_e( 'Small Device Max Width (px)', 'to-top' ); ?></th>
|
277 |
+
<td>
|
278 |
+
<?php
|
279 |
+
echo '<input min="1" type="number" id="to_top_options[small_device_max_width]" name="to_top_options[small_device_max_width]" value="'. absint( $settings['small_device_max_width'] ) .'"/>px';
|
280 |
+
|
281 |
+
echo '<p class="description">'. esc_html__( 'Button will be hidden on devices with lesser or equal width', 'to-top' ) .'</p>';
|
282 |
+
?>
|
283 |
+
</td>
|
284 |
+
</tr>
|
285 |
+
</tbody>
|
286 |
+
</table>
|
287 |
+
|
288 |
+
<?php submit_button( esc_html__( 'Save Changes', 'to-top' ) ); ?>
|
289 |
+
</div>
|
290 |
+
|
291 |
+
<h3 class="option-toggle"><a href="#"><?php esc_html_e( 'Reset Settings', 'to-top' ); ?></a></h3>
|
292 |
+
<div class="option-content">
|
293 |
+
<table class="form-table">
|
294 |
+
<tbody>
|
295 |
+
<tr>
|
296 |
+
<th scope="row"><?php esc_html_e( 'Reset All Settings', 'to-top' ); ?></th>
|
297 |
+
|
298 |
+
<td>
|
299 |
+
<?php
|
300 |
+
echo '<input name="to_top_options[reset]" id="to_top_options[reset]" type="checkbox" value="1" class="to_top_options[reset]" ' . checked( 1, $settings['reset'], false ) . ' />' . esc_html__( 'Check to Reset All Settings','to-top' );
|
301 |
+
echo '<p class="description">' . esc_html__( 'Caution: All data will be lost', 'to-top' ) .'</p>';
|
302 |
+
?>
|
303 |
+
</td>
|
304 |
+
</tr>
|
305 |
+
</tbody>
|
306 |
+
</table>
|
307 |
+
|
308 |
+
<?php submit_button( esc_html__( 'Save Changes', 'to-top' ) ); ?>
|
309 |
+
</div>
|
310 |
+
</div>
|
311 |
+
</form>
|
312 |
+
</div><!-- .content -->
|
313 |
+
</div><!-- .content-wrapper -->
|
314 |
+
</div><!-- #customcss -->
|
includes/class-to-top-activator.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Fired during plugin activation
|
5 |
*
|
6 |
-
* @link
|
7 |
* @since 1.0
|
8 |
*
|
9 |
* @package To_Top
|
@@ -18,7 +18,7 @@
|
|
18 |
* @since 1.0
|
19 |
* @package To_Top
|
20 |
* @subpackage To_Top/includes
|
21 |
-
* @author Catch
|
22 |
*/
|
23 |
class To_Top_Activator {
|
24 |
|
@@ -33,4 +33,4 @@ class To_Top_Activator {
|
|
33 |
|
34 |
}
|
35 |
|
36 |
-
}
|
3 |
/**
|
4 |
* Fired during plugin activation
|
5 |
*
|
6 |
+
* @link catchplugins.com
|
7 |
* @since 1.0
|
8 |
*
|
9 |
* @package To_Top
|
18 |
* @since 1.0
|
19 |
* @package To_Top
|
20 |
* @subpackage To_Top/includes
|
21 |
+
* @author Catch Plugins <info@catchplugins.com>
|
22 |
*/
|
23 |
class To_Top_Activator {
|
24 |
|
33 |
|
34 |
}
|
35 |
|
36 |
+
}
|
includes/class-to-top-deactivator.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Fired during plugin deactivation
|
5 |
*
|
6 |
-
* @link
|
7 |
* @since 1.0
|
8 |
*
|
9 |
* @package To_Top
|
@@ -18,7 +18,7 @@
|
|
18 |
* @since 1.0
|
19 |
* @package To_Top
|
20 |
* @subpackage To_Top/includes
|
21 |
-
* @author Catch
|
22 |
*/
|
23 |
class To_Top_Deactivator {
|
24 |
|
@@ -33,4 +33,4 @@ class To_Top_Deactivator {
|
|
33 |
|
34 |
}
|
35 |
|
36 |
-
}
|
3 |
/**
|
4 |
* Fired during plugin deactivation
|
5 |
*
|
6 |
+
* @link catchplugins.com
|
7 |
* @since 1.0
|
8 |
*
|
9 |
* @package To_Top
|
18 |
* @since 1.0
|
19 |
* @package To_Top
|
20 |
* @subpackage To_Top/includes
|
21 |
+
* @author Catch Plugins <info@catchplugins.com>
|
22 |
*/
|
23 |
class To_Top_Deactivator {
|
24 |
|
33 |
|
34 |
}
|
35 |
|
36 |
+
}
|
includes/class-to-top-i18n.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Loads and defines the internationalization files for this plugin
|
7 |
* so that it is ready for translation.
|
8 |
*
|
9 |
-
* @link
|
10 |
* @since 1.0
|
11 |
*
|
12 |
* @package To_Top
|
@@ -22,7 +22,7 @@
|
|
22 |
* @since 1.0
|
23 |
* @package To_Top
|
24 |
* @subpackage To_Top/includes
|
25 |
-
* @author Catch
|
26 |
*/
|
27 |
class To_Top_i18n {
|
28 |
|
@@ -44,4 +44,4 @@ class To_Top_i18n {
|
|
44 |
|
45 |
|
46 |
|
47 |
-
}
|
6 |
* Loads and defines the internationalization files for this plugin
|
7 |
* so that it is ready for translation.
|
8 |
*
|
9 |
+
* @link catchplugins.com
|
10 |
* @since 1.0
|
11 |
*
|
12 |
* @package To_Top
|
22 |
* @since 1.0
|
23 |
* @package To_Top
|
24 |
* @subpackage To_Top/includes
|
25 |
+
* @author Catch Plugins <info@catchplugins.com>
|
26 |
*/
|
27 |
class To_Top_i18n {
|
28 |
|
44 |
|
45 |
|
46 |
|
47 |
+
}
|
includes/class-to-top-loader.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Register all actions and filters for the plugin
|
5 |
*
|
6 |
-
* @link
|
7 |
* @since 1.0
|
8 |
*
|
9 |
* @package To_Top
|
@@ -19,7 +19,7 @@
|
|
19 |
*
|
20 |
* @package To_Top
|
21 |
* @subpackage To_Top/includes
|
22 |
-
* @author Catch
|
23 |
*/
|
24 |
class To_Top_Loader {
|
25 |
|
@@ -126,4 +126,4 @@ class To_Top_Loader {
|
|
126 |
|
127 |
}
|
128 |
|
129 |
-
}
|
3 |
/**
|
4 |
* Register all actions and filters for the plugin
|
5 |
*
|
6 |
+
* @link catchplugins.com
|
7 |
* @since 1.0
|
8 |
*
|
9 |
* @package To_Top
|
19 |
*
|
20 |
* @package To_Top
|
21 |
* @subpackage To_Top/includes
|
22 |
+
* @author Catch Plugins <info@catchplugins.com>
|
23 |
*/
|
24 |
class To_Top_Loader {
|
25 |
|
126 |
|
127 |
}
|
128 |
|
129 |
+
}
|
includes/class-to-top.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* A class definition that includes attributes and functions used across both the
|
7 |
* public-facing side of the site and the admin area.
|
8 |
*
|
9 |
-
* @link
|
10 |
* @since 1.0
|
11 |
*
|
12 |
* @package To_Top
|
@@ -25,7 +25,7 @@
|
|
25 |
* @since 1.0
|
26 |
* @package To_Top
|
27 |
* @subpackage To_Top/includes
|
28 |
-
* @author Catch
|
29 |
*/
|
30 |
class To_Top {
|
31 |
|
@@ -69,7 +69,7 @@ class To_Top {
|
|
69 |
public function __construct() {
|
70 |
|
71 |
$this->plugin_name = 'to-top';
|
72 |
-
$this->version = '1.5.
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
@@ -228,4 +228,4 @@ class To_Top {
|
|
228 |
public function get_version() {
|
229 |
return $this->version;
|
230 |
}
|
231 |
-
}
|
6 |
* A class definition that includes attributes and functions used across both the
|
7 |
* public-facing side of the site and the admin area.
|
8 |
*
|
9 |
+
* @link catchplugins.com
|
10 |
* @since 1.0
|
11 |
*
|
12 |
* @package To_Top
|
25 |
* @since 1.0
|
26 |
* @package To_Top
|
27 |
* @subpackage To_Top/includes
|
28 |
+
* @author Catch Plugins <info@catchplugins.com>
|
29 |
*/
|
30 |
class To_Top {
|
31 |
|
69 |
public function __construct() {
|
70 |
|
71 |
$this->plugin_name = 'to-top';
|
72 |
+
$this->version = '1.5.4';
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
228 |
public function get_version() {
|
229 |
return $this->version;
|
230 |
}
|
231 |
+
}
|
includes/index.php
CHANGED
File without changes
|
index.php
CHANGED
File without changes
|
languages/to-top.pot
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
# Copyright (C) 2017 Catch
|
2 |
# This file is distributed under the GNU General Public License v3.
|
3 |
#, fuzzy
|
4 |
msgid ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: To Top\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
|
8 |
-
"POT-Creation-Date: 2018-05-
|
9 |
"PO-Revision-Date: 2016-12-07 23:04-0500\n"
|
10 |
-
"Last-Translator: Sakin Shrestha <info@
|
11 |
-
"Language-Team: Catch
|
12 |
"Language: en_US\n"
|
13 |
"MIME-Version: 1.0\n"
|
14 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -21,331 +21,389 @@ msgstr ""
|
|
21 |
"X-Poedit-SourceCharset: UTF-8\n"
|
22 |
"X-Poedit-SearchPath-0: ..\n"
|
23 |
|
24 |
-
#: ../admin/class-to-top-admin.php:
|
|
|
25 |
msgid "Settings"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: ../admin/class-to-top-admin.php:
|
29 |
-
#: ../admin/partials/to-top-admin-display.php:20
|
30 |
msgid "To Top Settings"
|
31 |
msgstr ""
|
32 |
|
33 |
-
#: ../admin/class-to-top-admin.php:
|
34 |
msgid "You do not have sufficient permissions to access this page."
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: ../admin/class-to-top-admin.php:
|
38 |
msgid "To Top Options"
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: ../admin/class-to-top-admin.php:
|
42 |
-
#: ../admin/partials/to-top-
|
43 |
msgid "Basic Settings"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: ../admin/class-to-top-admin.php:
|
47 |
-
#: ../admin/partials/to-top-
|
48 |
msgid "Scroll Offset (px)"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../admin/class-to-top-admin.php:
|
52 |
-
#: ../admin/partials/to-top-
|
53 |
msgid "Number of pixels to be scrolled before the button appears"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: ../admin/class-to-top-admin.php:
|
57 |
-
#: ../admin/partials/to-top-
|
58 |
msgid "Icon Opacity (%)"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: ../admin/class-to-top-admin.php:
|
62 |
-
#: ../admin/partials/to-top-
|
63 |
msgid "Style"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: ../admin/class-to-top-admin.php:
|
67 |
-
#: ../admin/partials/to-top-
|
68 |
msgid "Icon Using Dashicons"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: ../admin/class-to-top-admin.php:
|
72 |
-
#: ../admin/partials/to-top-
|
73 |
msgid "Icon Using Genericons"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: ../admin/class-to-top-admin.php:
|
77 |
-
#: ../admin/partials/to-top-
|
78 |
msgid "Icon Using Font Awesome Icons"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: ../admin/class-to-top-admin.php:
|
82 |
-
#: ../admin/partials/to-top-
|
83 |
-
#: ../admin/partials/to-top-
|
84 |
msgid "Image"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: ../admin/class-to-top-admin.php:
|
88 |
-
#: ../admin/partials/to-top-
|
89 |
msgid "Select Icon Type"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: ../admin/class-to-top-admin.php:
|
93 |
-
#: ../admin/partials/to-top-
|
94 |
msgid "Icon Color"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: ../admin/class-to-top-admin.php:
|
98 |
-
#: ../admin/partials/to-top-
|
99 |
msgid "Icon Background Color"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: ../admin/class-to-top-admin.php:
|
103 |
-
#: ../admin/partials/to-top-
|
104 |
msgid "Icon Size (px)"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: ../admin/class-to-top-admin.php:
|
108 |
-
#: ../admin/partials/to-top-
|
109 |
msgid "Border Radius (%)"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: ../admin/class-to-top-admin.php:
|
113 |
-
#: ../admin/partials/to-top-
|
114 |
msgid "0 will make the icon background square, 50 will make it a circle"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: ../admin/class-to-top-admin.php:
|
118 |
-
#: ../admin/partials/to-top-
|
119 |
msgid "Image Width (px)"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: ../admin/class-to-top-admin.php:
|
123 |
-
#: ../admin/partials/to-top-
|
124 |
msgid "Image Alt"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: ../admin/class-to-top-admin.php:
|
128 |
-
#: ../admin/partials/to-top-
|
129 |
msgid "Advanced Settings"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: ../admin/class-to-top-admin.php:
|
133 |
-
#: ../admin/partials/to-top-
|
134 |
msgid "Location"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: ../admin/class-to-top-admin.php:
|
138 |
-
#: ../admin/partials/to-top-
|
139 |
msgid "Bottom Right"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: ../admin/class-to-top-admin.php:
|
143 |
-
#: ../admin/partials/to-top-
|
144 |
msgid "Bottom Left"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: ../admin/class-to-top-admin.php:
|
148 |
-
#: ../admin/partials/to-top-
|
149 |
msgid "Top Right"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: ../admin/class-to-top-admin.php:
|
153 |
-
#: ../admin/partials/to-top-
|
154 |
msgid "Top Left"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: ../admin/class-to-top-admin.php:
|
158 |
-
#: ../admin/partials/to-top-
|
159 |
msgid "Margin X (px)"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: ../admin/class-to-top-admin.php:
|
163 |
-
#: ../admin/partials/to-top-
|
164 |
msgid "Margin Y (px)"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: ../admin/class-to-top-admin.php:
|
168 |
msgid "Check to show on WP-ADMIN"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: ../admin/class-to-top-admin.php:
|
172 |
-
#: ../admin/partials/to-top-
|
173 |
msgid "Button will be shown on admin section"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: ../admin/class-to-top-admin.php:
|
177 |
msgid "Check to Enable Auto Hide"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: ../admin/class-to-top-admin.php:
|
181 |
-
#: ../admin/partials/to-top-
|
182 |
msgid "Auto Hide Time (secs)"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: ../admin/class-to-top-admin.php:
|
186 |
-
#: ../admin/partials/to-top-
|
187 |
msgid "Button will be auto hidden after this duration in seconds, if enabled"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: ../admin/class-to-top-admin.php:
|
191 |
msgid "Check to Hide on Small Devices"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: ../admin/class-to-top-admin.php:
|
195 |
-
#: ../admin/partials/to-top-
|
196 |
msgid "Button will be hidden on small devices when the width below matches"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: ../admin/class-to-top-admin.php:
|
200 |
-
#: ../admin/partials/to-top-
|
201 |
msgid "Small Device Max Width (px)"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: ../admin/class-to-top-admin.php:
|
205 |
-
#: ../admin/partials/to-top-
|
206 |
msgid "Button will be hidden on devices with lesser or equal width"
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: ../admin/class-to-top-admin.php:
|
210 |
-
#: ../admin/partials/to-top-
|
211 |
msgid "Reset Settings"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: ../admin/class-to-top-admin.php:
|
215 |
-
#: ../admin/partials/to-top-
|
216 |
msgid "Check to Reset All Settings"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: ../admin/class-to-top-admin.php:
|
220 |
msgid ""
|
221 |
"Caution: All data will be lost. Refresh the page after save to view full "
|
222 |
"effects."
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: ../admin/partials/
|
226 |
-
msgid "
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: ../admin/partials/
|
230 |
-
msgid "
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: ../admin/partials/
|
234 |
-
msgid "
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: ../admin/partials/
|
238 |
-
|
239 |
-
msgid "Catch Themes"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: ../admin/partials/
|
243 |
-
msgid "
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: ../admin/partials/
|
247 |
-
msgid "
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: ../admin/partials/
|
251 |
-
msgid "
|
|
|
|
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: ../admin/partials/
|
255 |
-
msgid "
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: ../admin/partials/
|
259 |
-
msgid "
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: ../admin/partials/
|
263 |
-
msgid "
|
|
|
|
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: ../admin/partials/
|
267 |
-
msgid "
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: ../admin/partials/
|
271 |
-
msgid "
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: ../admin/partials/
|
275 |
-
msgid "
|
|
|
|
|
|
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: ../admin/partials/
|
279 |
-
msgid "
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: ../admin/partials/
|
283 |
-
msgid "
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: ../admin/partials/
|
287 |
-
msgid "
|
|
|
|
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: ../admin/partials/
|
291 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: ../admin/partials/to-top-
|
295 |
msgid "Customizer"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: ../admin/partials/to-top-
|
299 |
msgid "Want Live Preview? Change the settings from "
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: ../admin/partials/to-top-
|
303 |
-
#: ../admin/partials/to-top-
|
304 |
-
#: ../admin/partials/to-top-
|
305 |
-
#: ../admin/partials/to-top-
|
306 |
-
#: ../admin/partials/to-top-
|
307 |
msgid "Save Changes"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: ../admin/partials/to-top-
|
311 |
msgid "Icon Settings"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: ../admin/partials/to-top-
|
315 |
msgid "Image Settings"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: ../admin/partials/to-top-
|
319 |
msgid "Insert Image"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: ../admin/partials/to-top-
|
323 |
msgid "Change Image"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: ../admin/partials/to-top-
|
327 |
msgid "Show on WP-ADMIN?"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: ../admin/partials/to-top-
|
331 |
-
#: ../admin/partials/to-top-
|
332 |
-
#: ../admin/partials/to-top-
|
333 |
msgid "Check to Enable"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: ../admin/partials/to-top-
|
337 |
msgid "Enable Auto Hide"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: ../admin/partials/to-top-
|
341 |
msgid "Hide on Small Devices?"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: ../admin/partials/to-top-
|
345 |
msgid "Reset All Settings"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: ../admin/partials/to-top-
|
349 |
msgid "Caution: All data will be lost"
|
350 |
msgstr ""
|
351 |
|
1 |
+
# Copyright (C) 2017 Catch Plugins
|
2 |
# This file is distributed under the GNU General Public License v3.
|
3 |
#, fuzzy
|
4 |
msgid ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: To Top\n"
|
7 |
"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
|
8 |
+
"POT-Creation-Date: 2018-05-07 20:50+0545\n"
|
9 |
"PO-Revision-Date: 2016-12-07 23:04-0500\n"
|
10 |
+
"Last-Translator: Sakin Shrestha <info@catchplugins.com>\n"
|
11 |
+
"Language-Team: Catch Plugins <info@catchplugins.com>\n"
|
12 |
"Language: en_US\n"
|
13 |
"MIME-Version: 1.0\n"
|
14 |
"Content-Type: text/plain; charset=UTF-8\n"
|
21 |
"X-Poedit-SourceCharset: UTF-8\n"
|
22 |
"X-Poedit-SearchPath-0: ..\n"
|
23 |
|
24 |
+
#: ../admin/class-to-top-admin.php:135
|
25 |
+
#: ../admin/partials/to-top-dashboard.php:45
|
26 |
msgid "Settings"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: ../admin/class-to-top-admin.php:148
|
|
|
30 |
msgid "To Top Settings"
|
31 |
msgstr ""
|
32 |
|
33 |
+
#: ../admin/class-to-top-admin.php:157
|
34 |
msgid "You do not have sufficient permissions to access this page."
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: ../admin/class-to-top-admin.php:285
|
38 |
msgid "To Top Options"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: ../admin/class-to-top-admin.php:292
|
42 |
+
#: ../admin/partials/to-top-dashboard.php:52
|
43 |
msgid "Basic Settings"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: ../admin/class-to-top-admin.php:303
|
47 |
+
#: ../admin/partials/to-top-dashboard.php:57
|
48 |
msgid "Scroll Offset (px)"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: ../admin/class-to-top-admin.php:304
|
52 |
+
#: ../admin/partials/to-top-dashboard.php:62
|
53 |
msgid "Number of pixels to be scrolled before the button appears"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: ../admin/class-to-top-admin.php:324
|
57 |
+
#: ../admin/partials/to-top-dashboard.php:68
|
58 |
msgid "Icon Opacity (%)"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: ../admin/class-to-top-admin.php:344
|
62 |
+
#: ../admin/partials/to-top-dashboard.php:77
|
63 |
msgid "Style"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: ../admin/class-to-top-admin.php:349
|
67 |
+
#: ../admin/partials/to-top-dashboard.php:82
|
68 |
msgid "Icon Using Dashicons"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: ../admin/class-to-top-admin.php:350
|
72 |
+
#: ../admin/partials/to-top-dashboard.php:83
|
73 |
msgid "Icon Using Genericons"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: ../admin/class-to-top-admin.php:351
|
77 |
+
#: ../admin/partials/to-top-dashboard.php:84
|
78 |
msgid "Icon Using Font Awesome Icons"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: ../admin/class-to-top-admin.php:352 ../admin/class-to-top-admin.php:451
|
82 |
+
#: ../admin/partials/to-top-dashboard.php:85
|
83 |
+
#: ../admin/partials/to-top-dashboard.php:166
|
84 |
msgid "Image"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: ../admin/class-to-top-admin.php:364
|
88 |
+
#: ../admin/partials/to-top-dashboard.php:101
|
89 |
msgid "Select Icon Type"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: ../admin/class-to-top-admin.php:379
|
93 |
+
#: ../admin/partials/to-top-dashboard.php:118
|
94 |
msgid "Icon Color"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: ../admin/class-to-top-admin.php:394
|
98 |
+
#: ../admin/partials/to-top-dashboard.php:128
|
99 |
msgid "Icon Background Color"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: ../admin/class-to-top-admin.php:409
|
103 |
+
#: ../admin/partials/to-top-dashboard.php:138
|
104 |
msgid "Icon Size (px)"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: ../admin/class-to-top-admin.php:429
|
108 |
+
#: ../admin/partials/to-top-dashboard.php:147
|
109 |
msgid "Border Radius (%)"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: ../admin/class-to-top-admin.php:430
|
113 |
+
#: ../admin/partials/to-top-dashboard.php:152
|
114 |
msgid "0 will make the icon background square, 50 will make it a circle"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: ../admin/class-to-top-admin.php:467
|
118 |
+
#: ../admin/partials/to-top-dashboard.php:174
|
119 |
msgid "Image Width (px)"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: ../admin/class-to-top-admin.php:488
|
123 |
+
#: ../admin/partials/to-top-dashboard.php:183
|
124 |
msgid "Image Alt"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: ../admin/class-to-top-admin.php:503
|
128 |
+
#: ../admin/partials/to-top-dashboard.php:195
|
129 |
msgid "Advanced Settings"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: ../admin/class-to-top-admin.php:514
|
133 |
+
#: ../admin/partials/to-top-dashboard.php:200
|
134 |
msgid "Location"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: ../admin/class-to-top-admin.php:520
|
138 |
+
#: ../admin/partials/to-top-dashboard.php:205
|
139 |
msgid "Bottom Right"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: ../admin/class-to-top-admin.php:521
|
143 |
+
#: ../admin/partials/to-top-dashboard.php:206
|
144 |
msgid "Bottom Left"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: ../admin/class-to-top-admin.php:522
|
148 |
+
#: ../admin/partials/to-top-dashboard.php:207
|
149 |
msgid "Top Right"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: ../admin/class-to-top-admin.php:523
|
153 |
+
#: ../admin/partials/to-top-dashboard.php:208
|
154 |
msgid "Top Left"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: ../admin/class-to-top-admin.php:535
|
158 |
+
#: ../admin/partials/to-top-dashboard.php:215
|
159 |
msgid "Margin X (px)"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: ../admin/class-to-top-admin.php:555
|
163 |
+
#: ../admin/partials/to-top-dashboard.php:224
|
164 |
msgid "Margin Y (px)"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: ../admin/class-to-top-admin.php:575
|
168 |
msgid "Check to show on WP-ADMIN"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: ../admin/class-to-top-admin.php:576
|
172 |
+
#: ../admin/partials/to-top-dashboard.php:238
|
173 |
msgid "Button will be shown on admin section"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: ../admin/class-to-top-admin.php:590
|
177 |
msgid "Check to Enable Auto Hide"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: ../admin/class-to-top-admin.php:605
|
181 |
+
#: ../admin/partials/to-top-dashboard.php:254
|
182 |
msgid "Auto Hide Time (secs)"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: ../admin/class-to-top-admin.php:606
|
186 |
+
#: ../admin/partials/to-top-dashboard.php:259
|
187 |
msgid "Button will be auto hidden after this duration in seconds, if enabled"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: ../admin/class-to-top-admin.php:626
|
191 |
msgid "Check to Hide on Small Devices"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: ../admin/class-to-top-admin.php:627
|
195 |
+
#: ../admin/partials/to-top-dashboard.php:270
|
196 |
msgid "Button will be hidden on small devices when the width below matches"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: ../admin/class-to-top-admin.php:641
|
200 |
+
#: ../admin/partials/to-top-dashboard.php:276
|
201 |
msgid "Small Device Max Width (px)"
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: ../admin/class-to-top-admin.php:642
|
205 |
+
#: ../admin/partials/to-top-dashboard.php:281
|
206 |
msgid "Button will be hidden on devices with lesser or equal width"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: ../admin/class-to-top-admin.php:661
|
210 |
+
#: ../admin/partials/to-top-dashboard.php:291
|
211 |
msgid "Reset Settings"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: ../admin/class-to-top-admin.php:672
|
215 |
+
#: ../admin/partials/to-top-dashboard.php:300
|
216 |
msgid "Check to Reset All Settings"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: ../admin/class-to-top-admin.php:673
|
220 |
msgid ""
|
221 |
"Caution: All data will be lost. Refresh the page after save to view full "
|
222 |
"effects."
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: ../admin/partials/footer.php:4
|
226 |
+
msgid "Catch Plugins"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: ../admin/partials/footer.php:9
|
230 |
+
msgid "View Themes"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: ../admin/partials/footer.php:10
|
234 |
+
msgid "View Plugins"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: ../admin/partials/footer.php:11
|
238 |
+
msgid "Support"
|
|
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: ../admin/partials/sidebar.php:3
|
242 |
+
msgid "Recommendations"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: ../admin/partials/sidebar.php:8
|
246 |
+
msgid "Premium Themes"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: ../admin/partials/sidebar.php:9
|
250 |
+
msgid ""
|
251 |
+
"Check out our simple, clean and responsive Premium WordPress Themes that "
|
252 |
+
"come with an array of crucial features with a superior functionality."
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: ../admin/partials/sidebar.php:9
|
256 |
+
msgid "Check our premium themes."
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: ../admin/partials/sidebar.php:16
|
260 |
+
msgid "Free Themes"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: ../admin/partials/sidebar.php:17
|
264 |
+
msgid ""
|
265 |
+
"Check out our collection of Free WordPress Themes that are clean, simple "
|
266 |
+
"and feature-rich."
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: ../admin/partials/sidebar.php:17
|
270 |
+
msgid "Check our free themes."
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: ../admin/partials/sidebar.php:25
|
274 |
+
msgid "Premium Plugins"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: ../admin/partials/sidebar.php:26
|
278 |
+
msgid ""
|
279 |
+
"Check out our secured Premium WordPress Plugins to enhance and add extra "
|
280 |
+
"functionalities to your website. An exceptional way to get the most out of "
|
281 |
+
"WordPress!"
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: ../admin/partials/sidebar.php:26
|
285 |
+
msgid "Check our premium plugins."
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: ../admin/partials/sidebar.php:34
|
289 |
+
msgid "Free Plugins"
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: ../admin/partials/sidebar.php:35
|
293 |
+
msgid ""
|
294 |
+
"Check out our Free WordPress Plugins and get the taste of our service "
|
295 |
+
"without affecting your wallet."
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: ../admin/partials/sidebar.php:36
|
299 |
+
msgid "check our free plugins."
|
300 |
+
msgstr ""
|
301 |
+
|
302 |
+
#: ../admin/partials/to-top-admin-display.php:17
|
303 |
+
msgid "To Top"
|
304 |
+
msgstr ""
|
305 |
+
|
306 |
+
#: ../admin/partials/to-top-admin-display.php:24
|
307 |
+
msgid "Dashboard"
|
308 |
+
msgstr ""
|
309 |
+
|
310 |
+
#: ../admin/partials/to-top-admin-display.php:25
|
311 |
+
#: ../admin/partials/to-top-admin-display.php:35
|
312 |
+
msgid "Features"
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#: ../admin/partials/to-top-admin-display.php:40
|
316 |
+
msgid "Supports all themes on WordPress"
|
317 |
+
msgstr ""
|
318 |
+
|
319 |
+
#: ../admin/partials/to-top-admin-display.php:41
|
320 |
+
msgid ""
|
321 |
+
"You don’t have to worry if you have a slightly different or complicated "
|
322 |
+
"theme installed on your website. It supports all the themes on WordPress "
|
323 |
+
"and makes your website more striking and playful."
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: ../admin/partials/to-top-admin-display.php:45
|
327 |
+
msgid "Lightweight"
|
328 |
+
msgstr ""
|
329 |
+
|
330 |
+
#: ../admin/partials/to-top-admin-display.php:46
|
331 |
+
msgid ""
|
332 |
+
"It is extremely lightweight. You do not need to worry about it affecting "
|
333 |
+
"the space and speed of your website."
|
334 |
+
msgstr ""
|
335 |
+
|
336 |
+
#: ../admin/partials/to-top-admin-display.php:50
|
337 |
+
msgid "Incredible Support"
|
338 |
+
msgstr ""
|
339 |
+
|
340 |
+
#: ../admin/partials/to-top-admin-display.php:51
|
341 |
+
msgid ""
|
342 |
+
"We have a great line of support team and support documentation. You do not "
|
343 |
+
"need to worry about how to use the plugins we provide, just refer to our "
|
344 |
+
"Tech Support Forum. Further, if you need to do advanced customization to "
|
345 |
+
"your website, you can always hire our theme customizer!"
|
346 |
+
msgstr ""
|
347 |
+
|
348 |
+
#: ../admin/partials/to-top-dashboard.php:21
|
349 |
+
msgid "Plugin Options Saved."
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: ../admin/partials/to-top-dashboard.php:36
|
353 |
msgid "Customizer"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: ../admin/partials/to-top-dashboard.php:38
|
357 |
msgid "Want Live Preview? Change the settings from "
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: ../admin/partials/to-top-dashboard.php:93
|
361 |
+
#: ../admin/partials/to-top-dashboard.php:158
|
362 |
+
#: ../admin/partials/to-top-dashboard.php:192
|
363 |
+
#: ../admin/partials/to-top-dashboard.php:288
|
364 |
+
#: ../admin/partials/to-top-dashboard.php:308
|
365 |
msgid "Save Changes"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: ../admin/partials/to-top-dashboard.php:96
|
369 |
msgid "Icon Settings"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: ../admin/partials/to-top-dashboard.php:161
|
373 |
msgid "Image Settings"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: ../admin/partials/to-top-dashboard.php:169
|
377 |
msgid "Insert Image"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: ../admin/partials/to-top-dashboard.php:169
|
381 |
msgid "Change Image"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: ../admin/partials/to-top-dashboard.php:233
|
385 |
msgid "Show on WP-ADMIN?"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: ../admin/partials/to-top-dashboard.php:237
|
389 |
+
#: ../admin/partials/to-top-dashboard.php:248
|
390 |
+
#: ../admin/partials/to-top-dashboard.php:269
|
391 |
msgid "Check to Enable"
|
392 |
msgstr ""
|
393 |
|
394 |
+
#: ../admin/partials/to-top-dashboard.php:244
|
395 |
msgid "Enable Auto Hide"
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: ../admin/partials/to-top-dashboard.php:265
|
399 |
msgid "Hide on Small Devices?"
|
400 |
msgstr ""
|
401 |
|
402 |
+
#: ../admin/partials/to-top-dashboard.php:296
|
403 |
msgid "Reset All Settings"
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: ../admin/partials/to-top-dashboard.php:301
|
407 |
msgid "Caution: All data will be lost"
|
408 |
msgstr ""
|
409 |
|
public/class-to-top-public.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* The public-facing functionality of the plugin.
|
5 |
*
|
6 |
-
* @link
|
7 |
* @since 1.0
|
8 |
*
|
9 |
* @package To_Top
|
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package To_Top
|
20 |
* @subpackage To_Top/public
|
21 |
-
* @author Catch
|
22 |
*/
|
23 |
class To_Top_Public {
|
24 |
|
@@ -172,7 +172,7 @@ class To_Top_Public {
|
|
172 |
unset( $image[0] );
|
173 |
|
174 |
$image = implode( '', $image );
|
175 |
-
|
176 |
echo '<span id="to_top_scrollup"><img alt="' . esc_attr( $option['image_alt'] ) . '" src="' . esc_url( $image ) . '"/></span>' ;
|
177 |
}
|
178 |
}
|
3 |
/**
|
4 |
* The public-facing functionality of the plugin.
|
5 |
*
|
6 |
+
* @link catchplugins.com
|
7 |
* @since 1.0
|
8 |
*
|
9 |
* @package To_Top
|
18 |
*
|
19 |
* @package To_Top
|
20 |
* @subpackage To_Top/public
|
21 |
+
* @author Catch Plugins <info@catchplugins.com>
|
22 |
*/
|
23 |
class To_Top_Public {
|
24 |
|
172 |
unset( $image[0] );
|
173 |
|
174 |
$image = implode( '', $image );
|
175 |
+
|
176 |
echo '<span id="to_top_scrollup"><img alt="' . esc_attr( $option['image_alt'] ) . '" src="' . esc_url( $image ) . '"/></span>' ;
|
177 |
}
|
178 |
}
|
public/css/font-awesome/css/font-awesome.css
CHANGED
File without changes
|
public/css/font-awesome/css/font-awesome.min.css
CHANGED
File without changes
|
public/css/font-awesome/fonts/FontAwesome.otf
CHANGED
File without changes
|
public/css/font-awesome/fonts/fontawesome-webfont.eot
CHANGED
File without changes
|
public/css/font-awesome/fonts/fontawesome-webfont.svg
CHANGED
File without changes
|
public/css/font-awesome/fonts/fontawesome-webfont.ttf
CHANGED
File without changes
|
public/css/font-awesome/fonts/fontawesome-webfont.woff
CHANGED
File without changes
|
public/css/font-awesome/fonts/fontawesome-webfont.woff2
CHANGED
File without changes
|
public/css/genericons/Genericons.eot
CHANGED
File without changes
|
public/css/genericons/Genericons.svg
CHANGED
File without changes
|
public/css/genericons/Genericons.ttf
CHANGED
File without changes
|
public/css/genericons/Genericons.woff
CHANGED
File without changes
|
public/css/genericons/genericons.css
CHANGED
File without changes
|
public/css/to-top-public.css
CHANGED
File without changes
|
public/index.php
CHANGED
File without changes
|
public/js/to-top-public.js
CHANGED
File without changes
|
to-top.php
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: To Top
|
4 |
-
* Plugin URI: https://
|
5 |
* Description: To Top plugin allows the visitor as well as admin to easily scroll back to the top of the page, with fully customizable options and ability to use image.
|
6 |
-
* Author: Catch
|
7 |
-
* Author URI: https://
|
8 |
-
* Version: 1.
|
9 |
* License: GNU General Public License, version 3 (GPLv3)
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
11 |
* Text Domain: to-top
|
12 |
* Domain Path: languages
|
13 |
*
|
14 |
-
* Copyright (C) 2012-2018 Catch
|
15 |
*
|
16 |
* To Top Plugin is free software; you can redistribute it and/or modify
|
17 |
* it under the terms of the GNU General Public License as published by
|
@@ -27,8 +27,8 @@
|
|
27 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
28 |
*
|
29 |
* @package To_Top
|
30 |
-
* @link
|
31 |
-
* @author Catch
|
32 |
* @version 1.5
|
33 |
*/
|
34 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: To Top
|
4 |
+
* Plugin URI: https://catchplugins.com/plugins/to-top/
|
5 |
* Description: To Top plugin allows the visitor as well as admin to easily scroll back to the top of the page, with fully customizable options and ability to use image.
|
6 |
+
* Author: Catch Plugins
|
7 |
+
* Author URI: https://catchplugins.com/
|
8 |
+
* Version: 1.6
|
9 |
* License: GNU General Public License, version 3 (GPLv3)
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
11 |
* Text Domain: to-top
|
12 |
* Domain Path: languages
|
13 |
*
|
14 |
+
* Copyright (C) 2012-2018 Catch Plugins, (info@catchplugins.com)
|
15 |
*
|
16 |
* To Top Plugin is free software; you can redistribute it and/or modify
|
17 |
* it under the terms of the GNU General Public License as published by
|
27 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
28 |
*
|
29 |
* @package To_Top
|
30 |
+
* @link catchplugins.com
|
31 |
+
* @author Catch Plugins
|
32 |
* @version 1.5
|
33 |
*/
|
34 |
|
uninstall.php
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
* For more information, see the following discussion:
|
20 |
* https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
|
21 |
*
|
22 |
-
* @link
|
23 |
* @since 1.0
|
24 |
*
|
25 |
* @package To_Top
|
19 |
* For more information, see the following discussion:
|
20 |
* https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
|
21 |
*
|
22 |
+
* @link catchplugins.com
|
23 |
* @since 1.0
|
24 |
*
|
25 |
* @package To_Top
|