Detect and output parent theme

This commit is contained in:
Christian Mehlmauer
2013-12-07 22:04:51 +01:00
parent 2fd11cba15
commit fffcd61cc4
5 changed files with 92 additions and 47 deletions

View File

@@ -5,23 +5,25 @@ require 'wp_theme/versionable'
require 'wp_theme/vulnerable'
require 'wp_theme/info'
require 'wp_theme/output'
require 'wp_theme/childtheme'
class WpTheme < WpItem
extend WpTheme::Findable
include WpTheme::Versionable
include WpTheme::Vulnerable
include WpTheme::Info
include WpTheme::Output
include WpTheme::Info
include WpTheme::Output
include WpTheme::Childtheme
attr_writer :style_url
def allowed_options; super << :style_url end
def initialize(*args)
super(*args)
def initialize(*args)
super(*args)
parse_style
end
parse_style
end
# Sets the @uri
#
@@ -38,6 +40,6 @@ class WpTheme < WpItem
@style_url = uri.merge('style.css').to_s
end
@style_url
end
end
end