1, 'comic_dimensions' => '760x', 'rss_dimensions' => '350x', 'archive_dimensions' => '125x' ); function load() { $result = get_option('comicpress-options'); if (is_array($result)) { $this->comicpress_options = $result; } } function save() { if (is_array($this->comicpress_options)) { update_option('comicpress-options', $this->comicpress_options); } } function init() { $this->load(); } function get_comic_img_tag($url, $type, $additional_parameters = array()) { $dimensions = array(); if (isset($this->comicpress_options["${type}_dimensions"])) { list($width, $height) = explode("x", $this->comicpress_options["${type}_dimensions"]); $dimensions = compact('width', 'height'); } $output = ' $value) { $output .= $parameter . '="' . $value . '" '; } } $output .= "/>"; return $output; } } ?>