From ddc296036b62a6a78b2f2372a0088dd0d4de5a4a Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 5 Jul 2009 16:00:09 -0400 Subject: [PATCH] finish basic options page, on to handling submissions --- options.php | 6 ++++-- partials/options-admin.inc | 20 ++++++++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/options.php b/options.php index c19b52a..cc8c2bf 100644 --- a/options.php +++ b/options.php @@ -3,7 +3,9 @@ class ComicPressOptionsAdmin { var $comicpress_options = array( 'comic_category_id' => 1, - 'thumbnail_dimensions' => '760x' + 'comic_dimensions' => '760x', + 'rss_dimensions' => '350x', + 'thumbnail_dimensions' => '125x' ); function render_admin() { @@ -61,7 +63,7 @@ class ComicPressOptionsAdmin { ) as $id => $name) { $dim = array_shift($parts); if (!empty($dim) && !is_numeric($dim)) { $dim = ""; } - $output[] = ''; + $output[] = '
'; } return implode("\n", $output); } diff --git a/partials/options-admin.inc b/partials/options-admin.inc index cc8a43d..0862a4f 100644 --- a/partials/options-admin.inc +++ b/partials/options-admin.inc @@ -1,16 +1,32 @@
-

ComicPress Config

+

- + + __('Comic Image Dimensions', 'comicpress'), + 'rss_dimensions' => __('RSS Feed Image Dimensions', 'comicpress'), + 'thumbnail_dimensions' => __('Thumbnail Image Dimensions', 'comicpress'), + ) as $field => $name) { ?> + + + + + + + + +
Master Comic Category
+ create_dimension_selector('cp[' . $field . ']', $this->comicpress_options[$field]) ?> +