Permalink
Browse files

Clean up webcomic.php

  • Loading branch information...
mgsisk committed Jan 28, 2013
1 parent 318c968 commit 35f76fb93b2bad2b0511b923516092ea2353cdf1
Showing with 25 additions and 25 deletions.
  1. +25 −25 webcomic.php
View
@@ -118,8 +118,8 @@ class Webcomic {
* @uses Webcomic::the_excerpt()
* @uses Webcomic::the_content()
* @uses Webcomic::pre_get_posts()
- * @uses WebcomicShortcodes
* @uses WebcomicWidgets
+ * @uses WebcomicShortcodes
*/
public function __construct() {
self::$dir = plugin_dir_path( __FILE__ );
@@ -1008,30 +1008,6 @@ public function tweet_webcomic( $new, $old, $post ) {
}
}
- /** Return the appropriate theme ID for custom collection themes.
- *
- * @param string $theme Name of the current theme.
- * @return string
- * @uses Webcomic::$config
- * @uses Webcomic::$collection
- * @hook template
- */
- public function template( $theme ) {
- return ( self::$collection and self::$config[ 'collections' ][ self::$collection ][ 'theme' ] and $template = substr( self::$config[ 'collections' ][ self::$collection ][ 'theme' ], 0, strpos( self::$config[ 'collections' ][ self::$collection ][ 'theme' ], '|' ) ) and is_readable( get_theme_root() . "/{$template}" ) ) ? $template : $theme;
- }
-
- /** Return the appropriate theme ID for custom collection themes.
- *
- * @param string $theme Name of the current theme.
- * @return string
- * @uses Webcomic::$config
- * @uses Webcomic::$collection
- * @hook stylesheet
- */
- public function stylesheet( $theme ) {
- return ( self::$collection and self::$config[ 'collections' ][ self::$collection ][ 'theme' ] and $stylesheet = substr( self::$config[ 'collections' ][ self::$collection ][ 'theme' ], strpos( self::$config[ 'collections' ][ self::$collection ][ 'theme' ], '|' ) + 1 ) and is_readable( get_theme_root() . "/{$stylesheet}" ) ) ? $stylesheet : $theme;
- }
-
/** Integrate webcomics into the main site feed.
*
* @param array $query Post request query.
@@ -1073,6 +1049,18 @@ public function get_term( $term, $taxonomy ) {
return $term;
}
+ /** Return the appropriate theme ID for custom collection themes.
+ *
+ * @param string $theme Name of the current theme.
+ * @return string
+ * @uses Webcomic::$config
+ * @uses Webcomic::$collection
+ * @hook template
+ */
+ public function template( $theme ) {
+ return ( self::$collection and self::$config[ 'collections' ][ self::$collection ][ 'theme' ] and $template = substr( self::$config[ 'collections' ][ self::$collection ][ 'theme' ], 0, strpos( self::$config[ 'collections' ][ self::$collection ][ 'theme' ], '|' ) ) and is_readable( get_theme_root() . "/{$template}" ) ) ? $template : $theme;
+ }
+
/** Display webcomics in place of transcripts in searches.
*
* @param array $posts Posts array.
@@ -1121,6 +1109,18 @@ public function get_terms( $terms, $taxonomies, $args ) {
return $terms;
}
+ /** Return the appropriate theme ID for custom collection themes.
+ *
+ * @param string $theme Name of the current theme.
+ * @return string
+ * @uses Webcomic::$config
+ * @uses Webcomic::$collection
+ * @hook stylesheet
+ */
+ public function stylesheet( $theme ) {
+ return ( self::$collection and self::$config[ 'collections' ][ self::$collection ][ 'theme' ] and $stylesheet = substr( self::$config[ 'collections' ][ self::$collection ][ 'theme' ], strpos( self::$config[ 'collections' ][ self::$collection ][ 'theme' ], '|' ) + 1 ) and is_readable( get_theme_root() . "/{$stylesheet}" ) ) ? $stylesheet : $theme;
+ }
+
/** Add webcomic classes to the body tag.
*
* @param array $classes Array of body classes.

0 comments on commit 35f76fb

Please sign in to comment.