Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add _deprecated_file() notice to templates that are now deprecated. T…

…hese templates are for the News Post Types plugin and will no longer be supported in a future plugin. Users who wish to continue using this feature should add the templates to their child themes.
  • Loading branch information...
commit 7cb5b447f6ead4b6c36bb15afdbe25f3956abbef 1 parent 703728f
@justintadlock authored
View
11 sidebar-slideshow.php
@@ -1,15 +1,16 @@
<?php
/**
- * Video Sidebar Template
- *
- * The Slideshow sidebar first checks for an active sidebar of 'utility-slideshow'. If this sidebar isn't active, it
- * displays a tabbed recent/popular list of slideshows. The 'utility-slideshow' sidebar isn't registered by default.
- * If you want to use it, you must register a sidebar with that specific ID.
+ * Slideshow Sidebar Template
*
* @package News
* @subpackage Template
+ * @since 0.1.0
+ * @deprecated 0.3.0 Please include this template in your child theme if you plan to continue using it.
*/
+/* Deprecated file in version 0.3.0. */
+_deprecated_file( basename( __FILE__ ), '0.3.0', null, sprintf( __( 'Please copy the %s template from this theme into your child theme folder.', 'news' ), basename( __FILE__ ) ) );
+
if ( is_active_sidebar( 'slideshow' ) ) : ?>
<div id="sidebar-slideshow" class="sidebar utility">
View
9 sidebar-video.php
@@ -2,14 +2,15 @@
/**
* Video Sidebar Template
*
- * The Video sidebar first checks for an active sidebar of 'utility-video'. If this sidebar isn't active, it
- * displays a tabbed recent/popular list of videos. The 'utility-video' sidebar isn't registered by default.
- * If you want to use it, you must register a sidebar with that specific ID.
- *
* @package News
* @subpackage Template
+ * @since 0.1.0
+ * @deprecated 0.3.0 Please include this template in your child theme if you plan to continue using it.
*/
+/* Deprecated file in version 0.3.0. */
+_deprecated_file( basename( __FILE__ ), '0.3.0', null, sprintf( __( 'Please copy the %s template from this theme into your child theme folder.', 'news' ), basename( __FILE__ ) ) );
+
if ( is_active_sidebar( 'video' ) ) : ?>
<div id="sidebar-video" class="sidebar utility">
View
5 slideshow.php
@@ -4,8 +4,13 @@
*
* @package News
* @subpackage Template
+ * @since 0.1.0
+ * @deprecated 0.3.0 Please include this template in your child theme if you plan to continue using it.
*/
+/* Deprecated file in version 0.3.0. */
+_deprecated_file( basename( __FILE__ ), '0.3.0', null, sprintf( __( 'Please copy the %s template from this theme into your child theme folder.', 'news' ), basename( __FILE__ ) ) );
+
get_header(); ?>
<!-- Begin featured area. -->
View
5 video.php
@@ -4,8 +4,13 @@
*
* @package News
* @subpackage Template
+ * @since 0.1.0
+ * @deprecated 0.3.0 Please include this template in your child theme if you plan to continue using it.
*/
+/* Deprecated file in version 0.3.0. */
+_deprecated_file( basename( __FILE__ ), '0.3.0', null, sprintf( __( 'Please copy the %s template from this theme into your child theme folder.', 'news' ), basename( __FILE__ ) ) );
+
get_header(); ?>
<!-- Begin featured area. -->
Please sign in to comment.
Something went wrong with that request. Please try again.