diff --git a/classes/ComicPress.inc b/classes/ComicPress.inc index 6ba5bfa..fd105c4 100644 --- a/classes/ComicPress.inc +++ b/classes/ComicPress.inc @@ -7,40 +7,34 @@ require_once(dirname(__FILE__) . '/ComicPressComicPost.inc'); */ class ComicPress { var $comicpress_options = array( - 'comic_category_id' => 1, 'comic_dimensions' => '760x', 'rss_dimensions' => '350x', 'archive_dimensions' => '125x', 'mini_dimensions' => '100x', - 'category_order' => false, - 'blogpost_count' => 10, - 'comic_space' => 'comic_only', - 'category_usage' => 'storyline', - 'layout' => 'classic.inc', 'helpers' => array(), 'addons' => array(), 'storyline_order' => '' ); - + var $additional_stylesheets = array(); var $additional_javascripts = array(); - + var $comic_post_attachments_cache = array(); var $category_tree = array(); - + var $partial_paths = array(); var $layouts = null; - + function &get_instance() { static $instance; - + if (!$instance) { $instance = array(new ComicPress()); } - + return $instance[0]; } - + /** * Load ComicPress options. */ @@ -50,7 +44,7 @@ class ComicPress { $this->comicpress_options = array_merge($this->comicpress_options, $result); } } - + /** * Save ComicPress options. */ @@ -65,15 +59,15 @@ class ComicPress { */ function init() { $this->load(); - + if (current_user_can('edit_themes')) { if (!empty($this->comicpress_options['helpers'])) { add_action('wp_footer', array(&$this, 'announce_activated_helpers')); } } - + add_filter('intermediate_image_sizes', array(&$this, 'intermediate_image_sizes')); - + foreach (array('comic', 'rss', 'archive', 'mini') as $size) { list($w, $h) = explode("x", $this->comicpress_options["${size}_dimensions"]); update_option("${size}_size_w", $w); @@ -85,32 +79,32 @@ class ComicPress { function intermediate_image_sizes($sizes) { return array_merge($sizes, array('comic', 'rss', 'archive', 'mini')); } - + function announce_activated_helpers() { echo "