Version Description
New extension "Custom Sidebar" added in the extensions tab. New field in the Main tab in the metabox to add shorcode to the top of the page. Posts Slider shortcode added, see the documentation for more infos.
Download this release
Release Info
Developer | oceanwp |
Plugin | Ocean Extra |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- includes/metabox/metabox.php +6 -0
- includes/panel/assets/img/custom-sidebar-image.png +0 -0
- includes/panel/extensions.php +30 -23
- includes/shortcodes/posts-slider.php +173 -0
- ocean-extra.php +3 -2
- readme.txt +6 -1
includes/metabox/metabox.php
CHANGED
@@ -471,6 +471,12 @@ class Ocean_Post_Metaboxes {
|
|
471 |
'on' => esc_html__( 'Disable', 'ocean-extra' ),
|
472 |
),
|
473 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
),
|
475 |
);
|
476 |
|
471 |
'on' => esc_html__( 'Disable', 'ocean-extra' ),
|
472 |
),
|
473 |
),
|
474 |
+
'add_shortcode' => array(
|
475 |
+
'title' => esc_html__( 'Shortcode', 'ocean-extra' ),
|
476 |
+
'id' => $prefix . 'add_shortcode',
|
477 |
+
'type' => 'text_html',
|
478 |
+
'description' => esc_html__( 'Add your shortcode to be displayed before the page title.', 'ocean-extra' ),
|
479 |
+
),
|
480 |
),
|
481 |
);
|
482 |
|
includes/panel/assets/img/custom-sidebar-image.png
ADDED
Binary file
|
includes/panel/extensions.php
CHANGED
@@ -66,69 +66,76 @@ class Ocean_Extensions {
|
|
66 |
$premium['elementor-widgets'] = array(
|
67 |
'url' => 'https://oceanwp.org/extension/ocean-elementor-widgets/',
|
68 |
'image' => plugins_url( '/assets/img/elementor-widgets-image.png', __FILE__ ),
|
69 |
-
'name' => 'Elementor Widgets',
|
70 |
-
'desc' => 'Add some new widgets to the popular free page builder Elementor.',
|
71 |
'ref_url' => '',
|
72 |
);
|
73 |
|
74 |
$premium['side-panel'] = array(
|
75 |
'url' => 'https://oceanwp.org/extension/ocean-side-panel/',
|
76 |
'image' => plugins_url( '/assets/img/side-panel-image.png', __FILE__ ),
|
77 |
-
'name' => 'Side Panel',
|
78 |
-
'desc' => 'Add a responsive side panel with your preferred widgets inside.',
|
79 |
'ref_url' => '',
|
80 |
);
|
81 |
|
82 |
$premium['footer-callout'] = array(
|
83 |
'url' => 'https://oceanwp.org/extension/ocean-footer-callout/',
|
84 |
'image' => plugins_url( '/assets/img/footer-callout-image.png', __FILE__ ),
|
85 |
-
'name' => 'Footer Callout',
|
86 |
-
'desc' => 'Add some relevant/important information about your company or product in your footer.',
|
87 |
'ref_url' => '',
|
88 |
);
|
89 |
|
90 |
$premium['sticky-header'] = array(
|
91 |
'url' => 'https://oceanwp.org/extension/ocean-sticky-header/',
|
92 |
'image' => plugins_url( '/assets/img/sticky-header-image.png', __FILE__ ),
|
93 |
-
'name' => 'Sticky Header',
|
94 |
-
'desc' => 'Attach the header with or without the top bar at the top of your screen with an animation.',
|
95 |
'ref_url' => '',
|
96 |
);
|
97 |
|
98 |
$free['ocean-extra'] = array(
|
99 |
'url' => 'https://oceanwp.org/extension/ocean-extra/',
|
100 |
'image' => plugins_url( '/assets/img/ocean-extra-image.png', __FILE__ ),
|
101 |
-
'name' => 'Theme Panel',
|
102 |
-
'desc' => 'Add extra features like meta boxes, custom CSS and a panel to activate the premium extensions.',
|
103 |
);
|
104 |
|
105 |
$free['social-sharing'] = array(
|
106 |
'url' => 'https://oceanwp.org/extension/ocean-social-sharing/',
|
107 |
'image' => plugins_url( '/assets/img/social-share-image.png', __FILE__ ),
|
108 |
-
'name' => 'Social Sharing',
|
109 |
-
'desc' => 'Add social share buttons to your single posts with this free extension.',
|
110 |
);
|
111 |
|
112 |
$free['product-sharing'] = array(
|
113 |
'url' => 'https://oceanwp.org/extension/ocean-product-sharing/',
|
114 |
'image' => plugins_url( '/assets/img/product-share-image.png', __FILE__ ),
|
115 |
-
'name' => 'Product Sharing',
|
116 |
-
'desc' => 'Add social share buttons to your single product page with this free extension.',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
); ?>
|
118 |
|
119 |
<div id="ocean-extensions-wrap" class="wrap">
|
120 |
|
121 |
-
<h2>Ocean - Extensions
|
122 |
|
123 |
<div class="wp-filter ocean-admin-notice ocean-filter">
|
124 |
-
<div class="alignleft"><strong
|
125 |
-
<div class="alignright"><a href="https://oceanwp.org/core-extensions-bundle/" class="button button-primary" target="_blank"
|
126 |
</div>
|
127 |
|
128 |
<div class="wp-filter">
|
129 |
<ul class="filter-links">
|
130 |
-
<li><a href='?page=ocean-panel-extensions&filter=premium' class='<?php if ( !isset($_REQUEST['filter']) || isset( $_REQUEST['filter'] ) && $_REQUEST['filter'] == 'premium' ) { echo 'current'; } ?>'
|
131 |
-
<li><a href='?page=ocean-panel-extensions&filter=free' class='<?php if ( isset( $_REQUEST['filter'] ) && $_REQUEST['filter'] == 'free' ) { echo 'current'; } ?>'
|
132 |
</ul>
|
133 |
</div>
|
134 |
|
@@ -152,8 +159,8 @@ class Ocean_Extensions {
|
|
152 |
</div>
|
153 |
|
154 |
<div class="action-links">
|
155 |
-
<ul class="plugin-action-buttons"><li><a class="install-now button" href="<?php echo $info['url']; ?><?php echo $aff_ref; ?>" target="_blank"
|
156 |
-
<li><a href="<?php echo $info['url']; ?><?php echo $aff_ref; ?>" target="_blank"
|
157 |
</div>
|
158 |
|
159 |
<div class="desc column-description">
|
@@ -183,8 +190,8 @@ class Ocean_Extensions {
|
|
183 |
</div>
|
184 |
|
185 |
<div class="action-links">
|
186 |
-
<ul class="plugin-action-buttons"><li><a class="install-now button" href="<?php echo $info['url']; ?>"
|
187 |
-
<li><a href="<?php echo $info['url']; ?>"
|
188 |
</div>
|
189 |
|
190 |
<div class="desc column-description">
|
66 |
$premium['elementor-widgets'] = array(
|
67 |
'url' => 'https://oceanwp.org/extension/ocean-elementor-widgets/',
|
68 |
'image' => plugins_url( '/assets/img/elementor-widgets-image.png', __FILE__ ),
|
69 |
+
'name' => esc_html__( 'Elementor Widgets', 'ocean-extra' ),
|
70 |
+
'desc' => esc_html__( 'Add some new widgets to the popular free page builder Elementor.', 'ocean-extra' ),
|
71 |
'ref_url' => '',
|
72 |
);
|
73 |
|
74 |
$premium['side-panel'] = array(
|
75 |
'url' => 'https://oceanwp.org/extension/ocean-side-panel/',
|
76 |
'image' => plugins_url( '/assets/img/side-panel-image.png', __FILE__ ),
|
77 |
+
'name' => esc_html__( 'Side Panel', 'ocean-extra' ),
|
78 |
+
'desc' => esc_html__( 'Add a responsive side panel with your preferred widgets inside.', 'ocean-extra' ),
|
79 |
'ref_url' => '',
|
80 |
);
|
81 |
|
82 |
$premium['footer-callout'] = array(
|
83 |
'url' => 'https://oceanwp.org/extension/ocean-footer-callout/',
|
84 |
'image' => plugins_url( '/assets/img/footer-callout-image.png', __FILE__ ),
|
85 |
+
'name' => esc_html__( 'Footer Callout', 'ocean-extra' ),
|
86 |
+
'desc' => esc_html__( 'Add some relevant/important information about your company or product in your footer.', 'ocean-extra' ),
|
87 |
'ref_url' => '',
|
88 |
);
|
89 |
|
90 |
$premium['sticky-header'] = array(
|
91 |
'url' => 'https://oceanwp.org/extension/ocean-sticky-header/',
|
92 |
'image' => plugins_url( '/assets/img/sticky-header-image.png', __FILE__ ),
|
93 |
+
'name' => esc_html__( 'Sticky Header', 'ocean-extra' ),
|
94 |
+
'desc' => esc_html__( 'Attach the header with or without the top bar at the top of your screen with an animation.', 'ocean-extra' ),
|
95 |
'ref_url' => '',
|
96 |
);
|
97 |
|
98 |
$free['ocean-extra'] = array(
|
99 |
'url' => 'https://oceanwp.org/extension/ocean-extra/',
|
100 |
'image' => plugins_url( '/assets/img/ocean-extra-image.png', __FILE__ ),
|
101 |
+
'name' => esc_html__( 'Theme Panel', 'ocean-extra' ),
|
102 |
+
'desc' => esc_html__( 'Add extra features like meta boxes, custom CSS and a panel to activate the premium extensions.', 'ocean-extra' ),
|
103 |
);
|
104 |
|
105 |
$free['social-sharing'] = array(
|
106 |
'url' => 'https://oceanwp.org/extension/ocean-social-sharing/',
|
107 |
'image' => plugins_url( '/assets/img/social-share-image.png', __FILE__ ),
|
108 |
+
'name' => esc_html__( 'Social Sharing', 'ocean-extra' ),
|
109 |
+
'desc' => esc_html__( 'Add social share buttons to your single posts with this free extension.', 'ocean-extra' ),
|
110 |
);
|
111 |
|
112 |
$free['product-sharing'] = array(
|
113 |
'url' => 'https://oceanwp.org/extension/ocean-product-sharing/',
|
114 |
'image' => plugins_url( '/assets/img/product-share-image.png', __FILE__ ),
|
115 |
+
'name' => esc_html__( 'Product Sharing', 'ocean-extra' ),
|
116 |
+
'desc' => esc_html__( 'Add social share buttons to your single product page with this free extension.', 'ocean-extra' ),
|
117 |
+
);
|
118 |
+
|
119 |
+
$free['custom-sidebar'] = array(
|
120 |
+
'url' => 'https://oceanwp.org/extension/ocean-custom-sidebar/',
|
121 |
+
'image' => plugins_url( '/assets/img/custom-sidebar-image.png', __FILE__ ),
|
122 |
+
'name' => esc_html__( 'Custom Sidebar', 'ocean-extra' ),
|
123 |
+
'desc' => esc_html__( 'Generates an unlimited number of sidebars and place them on any page you wish.', 'ocean-extra' ),
|
124 |
); ?>
|
125 |
|
126 |
<div id="ocean-extensions-wrap" class="wrap">
|
127 |
|
128 |
+
<h2>Ocean - <?php esc_attr_e( 'Extensions', 'ocean-extra' ); ?></h2>
|
129 |
|
130 |
<div class="wp-filter ocean-admin-notice ocean-filter">
|
131 |
+
<div class="alignleft"><strong><?php esc_attr_e( 'Core Extensions Bundle', 'ocean-extra' ); ?></strong> – <?php esc_attr_e( 'Check out our extensions bundle which includes all extensions at a significant discount', 'ocean-extra' ); ?>.</div>
|
132 |
+
<div class="alignright"><a href="https://oceanwp.org/core-extensions-bundle/" class="button button-primary" target="_blank"><?php esc_attr_e( 'View our Extensions Bundle', 'ocean-extra' ); ?></a></div>
|
133 |
</div>
|
134 |
|
135 |
<div class="wp-filter">
|
136 |
<ul class="filter-links">
|
137 |
+
<li><a href='?page=ocean-panel-extensions&filter=premium' class='<?php if ( !isset($_REQUEST['filter']) || isset( $_REQUEST['filter'] ) && $_REQUEST['filter'] == 'premium' ) { echo 'current'; } ?>'><?php esc_attr_e( 'Premium', 'ocean-extra' ); ?></a></li>
|
138 |
+
<li><a href='?page=ocean-panel-extensions&filter=free' class='<?php if ( isset( $_REQUEST['filter'] ) && $_REQUEST['filter'] == 'free' ) { echo 'current'; } ?>'><?php esc_attr_e( 'Free', 'ocean-extra' ); ?></a></li>
|
139 |
</ul>
|
140 |
</div>
|
141 |
|
159 |
</div>
|
160 |
|
161 |
<div class="action-links">
|
162 |
+
<ul class="plugin-action-buttons"><li><a class="install-now button" href="<?php echo $info['url']; ?><?php echo $aff_ref; ?>" target="_blank"><?php esc_attr_e( 'Get this Add on', 'ocean-extra' ); ?></a></li>
|
163 |
+
<li><a href="<?php echo $info['url']; ?><?php echo $aff_ref; ?>" target="_blank"><?php esc_attr_e( 'More Details', 'ocean-extra' ); ?></a></li></ul>
|
164 |
</div>
|
165 |
|
166 |
<div class="desc column-description">
|
190 |
</div>
|
191 |
|
192 |
<div class="action-links">
|
193 |
+
<ul class="plugin-action-buttons"><li><a class="install-now button" href="<?php echo $info['url']; ?>"><?php esc_attr_e( 'Get this Add on', 'ocean-extra' ); ?></a></li>
|
194 |
+
<li><a href="<?php echo $info['url']; ?>"><?php esc_attr_e( 'More Details', 'ocean-extra' ); ?></a></li></ul>
|
195 |
</div>
|
196 |
|
197 |
<div class="desc column-description">
|
includes/shortcodes/posts-slider.php
ADDED
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Posts Slider Shortcode
|
4 |
+
*
|
5 |
+
* @package Ocean WordPress theme
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! class_exists( 'Ocean_Posts_Slider_Shortcode' ) ) {
|
9 |
+
|
10 |
+
class Ocean_Posts_Slider_Shortcode {
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Start things up
|
14 |
+
*
|
15 |
+
* @since 1.0.0
|
16 |
+
*/
|
17 |
+
public function __construct() {
|
18 |
+
add_shortcode( 'ocean_posts_slider', array( $this, 'posts_slider_shortcode' ) );
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Registers the function as a shortcode
|
23 |
+
*
|
24 |
+
* @since 1.0.0
|
25 |
+
*/
|
26 |
+
public function posts_slider_shortcode( $atts, $content = null ) {
|
27 |
+
|
28 |
+
// Extract attributes
|
29 |
+
extract( shortcode_atts( array(
|
30 |
+
'style' => 'two',
|
31 |
+
'number' => '6',
|
32 |
+
'exclude_cat' => '',
|
33 |
+
'margin' => '',
|
34 |
+
'size' => 'large',
|
35 |
+
'speed' => '7000',
|
36 |
+
'order' => 'DESC',
|
37 |
+
'orderby' => 'date',
|
38 |
+
'more_text' => esc_html__( 'Read More', 'ocean' ),
|
39 |
+
), $atts ) );
|
40 |
+
|
41 |
+
// Vars
|
42 |
+
$style = $style ? $style : 'two';
|
43 |
+
|
44 |
+
// Add classes
|
45 |
+
$classes = array( 'clr' );
|
46 |
+
$classes[] = $style;
|
47 |
+
if ( 'one' == $style ) {
|
48 |
+
$classes[] = 'container';
|
49 |
+
}
|
50 |
+
$classes = implode( ' ', $classes );
|
51 |
+
|
52 |
+
// If has margin
|
53 |
+
$add_style = '';
|
54 |
+
if ( '' != $margin ) {
|
55 |
+
$add_style = ' style="padding: '. $margin .';"';
|
56 |
+
}
|
57 |
+
|
58 |
+
// Query args
|
59 |
+
$args = array(
|
60 |
+
'post_type' => 'post',
|
61 |
+
'posts_per_page' => $number,
|
62 |
+
'order' => $order,
|
63 |
+
'orderby' => $orderby,
|
64 |
+
'no_found_rows' => true,
|
65 |
+
'tax_query' => array(
|
66 |
+
'relation' => 'AND',
|
67 |
+
),
|
68 |
+
);
|
69 |
+
|
70 |
+
// Exclude category
|
71 |
+
if ( ! empty( $exclude_cat ) ) {
|
72 |
+
|
73 |
+
// Sanitize category and convert to array
|
74 |
+
$exclude_cat = str_replace( ', ', ',', $exclude_cat );
|
75 |
+
$exclude_cat = explode( ',', $exclude_cat );
|
76 |
+
|
77 |
+
// Add to query arg
|
78 |
+
$args['tax_query'][] = array(
|
79 |
+
'taxonomy' => 'category',
|
80 |
+
'field' => 'slug',
|
81 |
+
'terms' => $exclude_cat,
|
82 |
+
'operator' => 'NOT IN',
|
83 |
+
);
|
84 |
+
|
85 |
+
}
|
86 |
+
|
87 |
+
$ocean_query = new WP_Query( $args );
|
88 |
+
|
89 |
+
// Output posts
|
90 |
+
if ( $ocean_query->have_posts() ) : ?>
|
91 |
+
|
92 |
+
<div id="ocean-post-list" class="<?php echo esc_attr( $classes ); ?>"<?php echo $add_style; ?>>
|
93 |
+
|
94 |
+
<div class="posts-slider owl-carousel owl-theme clr" data-slideshow="<?php echo esc_attr( $speed ); ?>">
|
95 |
+
|
96 |
+
<?php
|
97 |
+
// Start loop
|
98 |
+
while ( $ocean_query->have_posts() ) : $ocean_query->the_post();
|
99 |
+
|
100 |
+
if ( has_post_thumbnail() ) { ?>
|
101 |
+
|
102 |
+
<article id="post-<?php the_ID(); ?>" <?php post_class( 'clr' ); ?>>
|
103 |
+
|
104 |
+
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
|
105 |
+
|
106 |
+
<?php
|
107 |
+
// Display post thumbnail
|
108 |
+
the_post_thumbnail( $size, array(
|
109 |
+
'alt' => get_the_title(),
|
110 |
+
'itemprop' => 'image',
|
111 |
+
) ); ?>
|
112 |
+
|
113 |
+
</a>
|
114 |
+
|
115 |
+
<div class="slide-overlay-wrap">
|
116 |
+
|
117 |
+
<div class="slide-overlay">
|
118 |
+
|
119 |
+
<div class="ocean-post-category"><?php the_category( ' / ', get_the_ID() ); ?></div>
|
120 |
+
|
121 |
+
<?php
|
122 |
+
if ( 'one' == $style ) { ?>
|
123 |
+
<div class="line"></div>
|
124 |
+
<?php } ?>
|
125 |
+
|
126 |
+
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
127 |
+
|
128 |
+
<?php
|
129 |
+
if ( 'one' == $style ) { ?>
|
130 |
+
|
131 |
+
<div class="line"></div>
|
132 |
+
|
133 |
+
<div class="ocean-post-date"><?php echo get_the_date(); ?> <?php _e( 'by', 'ocean' ); ?> <?php the_author_posts_link(); ?></div>
|
134 |
+
<a href="<?php the_permalink(); ?>" class="readmore"><?php echo esc_attr( $more_text ); ?></a>
|
135 |
+
|
136 |
+
<?php
|
137 |
+
} else if ( 'two' == $style ) { ?>
|
138 |
+
|
139 |
+
<div class="ocean-post-excerpt">
|
140 |
+
<p><?php ocean_excerpt( 20 ); ?></p>
|
141 |
+
<a href="<?php the_permalink(); ?>" class="readmore"><?php echo esc_attr( $more_text ); ?></a>
|
142 |
+
</div>
|
143 |
+
|
144 |
+
<?php } ?>
|
145 |
+
|
146 |
+
</div>
|
147 |
+
|
148 |
+
</div>
|
149 |
+
|
150 |
+
</article>
|
151 |
+
|
152 |
+
<?php }
|
153 |
+
|
154 |
+
// End entry loop
|
155 |
+
endwhile;
|
156 |
+
|
157 |
+
// Reset the post data to prevent conflicts with WP globals
|
158 |
+
wp_reset_postdata(); ?>
|
159 |
+
|
160 |
+
</div>
|
161 |
+
|
162 |
+
</div>
|
163 |
+
|
164 |
+
<?php
|
165 |
+
// End post check
|
166 |
+
endif;
|
167 |
+
|
168 |
+
}
|
169 |
+
|
170 |
+
}
|
171 |
+
|
172 |
+
}
|
173 |
+
new Ocean_Posts_Slider_Shortcode();
|
ocean-extra.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Ocean Extra
|
4 |
* Plugin URI: https://oceanwp.org/extension/ocean-extra/
|
5 |
* Description: Add extra features like metaboxes, custom CSS and a panel to activate the premium extensions.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
* Requires at least: 4.0.0
|
@@ -86,7 +86,7 @@ final class Ocean_Extra {
|
|
86 |
$this->token = 'ocean-extra';
|
87 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
88 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
89 |
-
$this->version = '1.0.
|
90 |
|
91 |
define( 'OE_ROOT', dirname( __FILE__ ) );
|
92 |
define( 'OE_ADMIN_PANEL_HOOK_PREFIX', 'theme-panel_page_ocean-panel' );
|
@@ -175,6 +175,7 @@ final class Ocean_Extra {
|
|
175 |
if ( 'Ocean' == $theme->name || 'ocean' == $theme->template ) {
|
176 |
require_once( OE_ROOT .'/includes/panel/theme-panel.php' );
|
177 |
require_once( OE_ROOT .'/includes/metabox/gallery-metabox/gallery-metabox.php' );
|
|
|
178 |
if ( is_admin() ) {
|
179 |
require_once( OE_ROOT .'/includes/metabox/metabox.php' );
|
180 |
}
|
3 |
* Plugin Name: Ocean Extra
|
4 |
* Plugin URI: https://oceanwp.org/extension/ocean-extra/
|
5 |
* Description: Add extra features like metaboxes, custom CSS and a panel to activate the premium extensions.
|
6 |
+
* Version: 1.0.2
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
* Requires at least: 4.0.0
|
86 |
$this->token = 'ocean-extra';
|
87 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
88 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
89 |
+
$this->version = '1.0.2';
|
90 |
|
91 |
define( 'OE_ROOT', dirname( __FILE__ ) );
|
92 |
define( 'OE_ADMIN_PANEL_HOOK_PREFIX', 'theme-panel_page_ocean-panel' );
|
175 |
if ( 'Ocean' == $theme->name || 'ocean' == $theme->template ) {
|
176 |
require_once( OE_ROOT .'/includes/panel/theme-panel.php' );
|
177 |
require_once( OE_ROOT .'/includes/metabox/gallery-metabox/gallery-metabox.php' );
|
178 |
+
require_once( OE_ROOT .'/includes/shortcodes/posts-slider.php' );
|
179 |
if ( is_admin() ) {
|
180 |
require_once( OE_ROOT .'/includes/metabox/metabox.php' );
|
181 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: oceanwp
|
|
3 |
Tags: meta boxes, meta box, metaboxes, metabox, social sharing, ocean
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.6.1
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -33,6 +33,11 @@ This plugin will only work with the [Ocean](https://oceanwp.org/) theme.
|
|
33 |
|
34 |
== Changelog ==
|
35 |
|
|
|
|
|
|
|
|
|
|
|
36 |
= 1.0.1 =
|
37 |
Add documentation link in the panel.
|
38 |
|
3 |
Tags: meta boxes, meta box, metaboxes, metabox, social sharing, ocean
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.6.1
|
6 |
+
Stable tag: 1.0.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
33 |
|
34 |
== Changelog ==
|
35 |
|
36 |
+
= 1.0.2 =
|
37 |
+
New extension "Custom Sidebar" added in the extensions tab.
|
38 |
+
New field in the Main tab in the metabox to add shorcode to the top of the page.
|
39 |
+
Posts Slider shortcode added, see the documentation for more infos.
|
40 |
+
|
41 |
= 1.0.1 =
|
42 |
Add documentation link in the panel.
|
43 |
|