My favorites | Sign in
Project Home Downloads Issues Source
Checkout   Browse   Changes  
Changes to /trunk/graphene/admin/options-general.php
r345 vs. r347 Compare: vs.  Format:
Revision r347
Go to: 
Project members, sign in to write a code review
/trunk/graphene/admin/options-general.php   r345 /trunk/graphene/admin/options-general.php   r347
1 <?php 1 <?php
2 function graphene_options_general() { 2 function graphene_options_general() {
3 3
4 global $graphene_settings; 4 global $graphene_settings;
5 ?> 5 ?>
6 <input type="hidden" name="graphene_general" value="true" /> 6 <input type="hidden" name="graphene_general" value="true" />
7 7
8 <?php /* Slider Options */ ?> 8 <?php /* Slider Options */ ?>
9 <div class="postbox"> 9 <div class="postbox">
10 <div class="head-wrap"> 10 <div class="head-wrap">
11 <div title="Click to toggle" class="handlediv"><br /></div> 11 <div title="Click to toggle" class="handlediv"><br /></div>
12 <h3 class="hndle"><?php _e( 'Slider Options', 'graphene' ); ?></h3> 12 <h3 class="hndle"><?php _e( 'Slider Options', 'graphene' ); ?></h3>
13 </div> 13 </div>
14 <div class="panel-wrap inside"> 14 <div class="panel-wrap inside">
15 <table class="form-table"> 15 <table class="form-table">
16 <tr> 16 <tr>
17 <th scope="row"> 17 <th scope="row">
18 <label for="slider_disable"><?php _e( 'Disable slider', 'graphene' ); ?></label> 18 <label for="slider_disable"><?php _e( 'Disable slider', 'graphene' ); ?></label>
19 </th> 19 </th>
20 <td><input type="checkbox" name="graphene_settings[slider_disable]" id="slider_disable" <?php checked( $graphene_settings['slider_disable'] ); ?> value="true" data-toggleOptions="true" /></td> 20 <td><input type="checkbox" name="graphene_settings[slider_disable]" id="slider_disable" <?php checked( $graphene_settings['slider_disable'] ); ?> value="true" data-toggleOptions="true" /></td>
21 </tr> 21 </tr>
22 </table> 22 </table>
23 <table class="form-table<?php if ( $graphene_settings['slider_disable'] == true ) echo ' hide'; ?>"> 23 <table class="form-table<?php if ( $graphene_settings['slider_disable'] == true ) echo ' hide'; ?>">
24 <tr> 24 <tr>
25 <th scope="row"> 25 <th scope="row">
26 <label><?php _e( 'What do you want to show in the slider', 'graphene' ); ?></label><br /> 26 <label><?php _e( 'What do you want to show in the slider', 'graphene' ); ?></label><br />
27 </th> 27 </th>
28 <td> 28 <td>
29 <input type="radio" name="graphene_settings[slider_type]" value="latest_posts" id="slider_type_latest_posts" <?php checked( $graphene_settings['slider_type'], 'latest_posts' ); ?>/> 29 <input type="radio" name="graphene_settings[slider_type]" value="latest_posts" id="slider_type_latest_posts" <?php checked( $graphene_settings['slider_type'], 'latest_posts' ); ?>/>
30 <label for="slider_type_latest_posts"><?php _e( 'Show latest posts', 'graphene' ); ?></label> 30 <label for="slider_type_latest_posts"><?php _e( 'Show latest posts', 'graphene' ); ?></label>
31 <br /> 31 <br />
32 <input type="radio" name="graphene_settings[slider_type]" value="random" id="slider_type_random" <?php checked( $graphene_settings['slider_type'], 'random' ); ?>/> 32 <input type="radio" name="graphene_settings[slider_type]" value="random" id="slider_type_random" <?php checked( $graphene_settings['slider_type'], 'random' ); ?>/>
33 <label for="slider_type_random"><?php _e( 'Show random posts', 'graphene' ); ?></label> 33 <label for="slider_type_random"><?php _e( 'Show random posts', 'graphene' ); ?></label>
34 <br /> 34 <br />
35 <input type="radio" name="graphene_settings[slider_type]" value="posts_pages" id="slider_type_posts_pages" <?php checked( $graphene_settings['slider_type'], 'posts_pages' ); ?>/> 35 <input type="radio" name="graphene_settings[slider_type]" value="posts_pages" id="slider_type_posts_pages" <?php checked( $graphene_settings['slider_type'], 'posts_pages' ); ?>/>
36 <label for="slider_type_posts_pages"><?php _e( 'Show specific posts/pages', 'graphene' ); ?></label> 36 <label for="slider_type_posts_pages"><?php _e( 'Show specific posts/pages', 'graphene' ); ?></label>
37 <br /> 37 <br />
38 <input type="radio" name="graphene_settings[slider_type]" value="categories" id="slider_type_categories" <?php checked( $graphene_settings['slider_type'], 'categories' ); ?>/> 38 <input type="radio" name="graphene_settings[slider_type]" value="categories" id="slider_type_categories" <?php checked( $graphene_settings['slider_type'], 'categories' ); ?>/>
39 <label for="slider_type_categories"><?php _e( 'Show posts from categories', 'graphene' ); ?></label> 39 <label for="slider_type_categories"><?php _e( 'Show posts from categories', 'graphene' ); ?></label>
40 </td> 40 </td>
41 </tr> 41 </tr>
42 <tr class="row_slider_type_posts_pages<?php if ( $graphene_settings['slider_type'] != 'posts_pages' ) echo ' hide'; ?>"> 42 <tr class="row_slider_type_posts_pages<?php if ( $graphene_settings['slider_type'] != 'posts_pages' ) echo ' hide'; ?>">
43 <th scope="row"> 43 <th scope="row">
44 <label for="slider_specific_posts"><?php _e( 'Posts and/or pages to display', 'graphene' ); ?></label> 44 <label for="slider_specific_posts"><?php _e( 'Posts and/or pages to display', 'graphene' ); ?></label>
45 </th> 45 </th>
46 <td> 46 <td>
47 <input type="text" name="graphene_settings[slider_specific_posts]" id="slider_specific_posts" value="<?php echo $graphene_settings['slider_specific_posts']; ?>" size="60" class="wide code" /><br /> 47 <input type="text" name="graphene_settings[slider_specific_posts]" id="slider_specific_posts" value="<?php echo $graphene_settings['slider_specific_posts']; ?>" size="60" class="wide code" /><br />
48 <span class="description"> 48 <span class="description">
49 <?php _e( 'Enter ID of posts and/or pages to be displayed, separated by comma. Example: <code>1,13,45,33</code>', 'graphene' ); ?><br /> 49 <?php _e( 'Enter ID of posts and/or pages to be displayed, separated by comma. Example: <code>1,13,45,33</code>', 'graphene' ); ?><br />
50 <?php _e( 'Applicable only if <strong>Show specific posts/pages</strong> is selected above.', 'graphene' ); ?> 50 <?php _e( 'Applicable only if <strong>Show specific posts/pages</strong> is selected above.', 'graphene' ); ?>
51 </span> 51 </span>
52 </td> 52 </td>
53 </tr> 53 </tr>
54 <tr class="row_slider_type_categories<?php if ( $graphene_settings['slider_type'] != 'categories' ) echo ' hide'; ?>"> 54 <tr class="row_slider_type_categories<?php if ( $graphene_settings['slider_type'] != 'categories' ) echo ' hide'; ?>">
55 <th scope="row"> 55 <th scope="row">
56 <label for="slider_specific_categories"><?php _e( 'Categories to display', 'graphene' ); ?></label> 56 <label for="slider_specific_categories"><?php _e( 'Categories to display', 'graphene' ); ?></label>
57 <small><?php _e( 'All posts within the categories selected here will be displayed on the slider. Usage example: create a new category "Featured" and assign all posts to be displayed on the slider to that category, and then select that category here.', 'graphene' ); ?></small> 57 <small><?php _e( 'All posts within the categories selected here will be displayed on the slider. Usage example: create a new category "Featured" and assign all posts to be displayed on the slider to that category, and then select that category here.', 'graphene' ); ?></small>
58 </th> 58 </th>
59 <td> 59 <td>
60 <select name="graphene_settings[slider_specific_categories][]" id="slider_specific_categories" multiple="multiple" class="select-multiple"> 60 <select name="graphene_settings[slider_specific_categories][]" id="slider_specific_categories" multiple="multiple" class="select-multiple">
61 <?php /* Get the list of categories */ 61 <?php /* Get the list of categories */
62 $selected_cats = $graphene_settings['slider_specific_categories']; 62 $selected_cats = $graphene_settings['slider_specific_categories'];
63 $categories = get_categories(); 63 $categories = get_categories();
64 foreach ( $categories as $category) : 64 foreach ( $categories as $category) :
65 ?> 65 ?>
66 <option value="<?php echo $category->cat_ID; ?>" <?php if ( $selected_cats && in_array( $category->cat_ID, $selected_cats ) ) { echo 'selected="selected"'; }?>><?php echo $category->cat_name; ?></option> 66 <option value="<?php echo $category->cat_ID; ?>" <?php if ( $selected_cats && in_array( $category->cat_ID, $selected_cats ) ) { echo 'selected="selected"'; }?>><?php echo $category->cat_name; ?></option>
67 <?php endforeach; ?> 67 <?php endforeach; ?>
68 </select> 68 </select>
69 </td> 69 </td>
70 </tr> 70 </tr>
71 <tr class="row_slider_type_categories<?php if ( $graphene_settings['slider_type'] != 'categories' ) echo ' hide'; ?>"> 71 <tr class="row_slider_type_categories<?php if ( $graphene_settings['slider_type'] != 'categories' ) echo ' hide'; ?>">
72 <th scope="row"> 72 <th scope="row">
73 <label for="slider_specific_categories"><?php _e( 'Exclude the categories from posts listing', 'graphene' ); ?></label> 73 <label for="slider_specific_categories"><?php _e( 'Exclude the categories from posts listing', 'graphene' ); ?></label>
74 </th> 74 </th>
75 <td> 75 <td>
76 <select name="graphene_settings[slider_exclude_categories]"> 76 <select name="graphene_settings[slider_exclude_categories]">
77 <option type="radio" name="graphene_settings[slider_exclude_categories]" id="slider_exclude_categories_disabled" <?php selected( $graphene_settings['slider_exclude_categories'], 'disabled' ); ?> value="disabled" data-toggleOptions="true"><?php _e( 'Disabled', 'graphene' ); ?></option> 77 <option type="radio" name="graphene_settings[slider_exclude_categories]" id="slider_exclude_categories_disabled" <?php selected( $graphene_settings['slider_exclude_categories'], 'disabled' ); ?> value="disabled" data-toggleOptions="true"><?php _e( 'Disabled', 'graphene' ); ?></option>
78 <option type="radio" name="graphene_settings[slider_exclude_categories]" id="slider_exclude_categories_frontpage" <?php selected( $graphene_settings['slider_exclude_categories'], 'frontpage' ); ?> value="homepage" data-toggleOptions="true"><?php _e( 'Home Page', 'graphene' ); ?></option> 78 <option type="radio" name="graphene_settings[slider_exclude_categories]" id="slider_exclude_categories_frontpage" <?php selected( $graphene_settings['slider_exclude_categories'], 'frontpage' ); ?> value="homepage" data-toggleOptions="true"><?php _e( 'Home Page', 'graphene' ); ?></option>
79 <option type="radio" name="graphene_settings[slider_exclude_categories]" id="slider_exclude_categories_everywhere" <?php selected( $graphene_settings['slider_exclude_categories'], 'everywhere' ); ?> value="everywhere" data-toggleOptions="true"><?php _e( 'Everywhere', 'graphene' ); ?></option> 79 <option type="radio" name="graphene_settings[slider_exclude_categories]" id="slider_exclude_categories_everywhere" <?php selected( $graphene_settings['slider_exclude_categories'], 'everywhere' ); ?> value="everywhere" data-toggleOptions="true"><?php _e( 'Everywhere', 'graphene' ); ?></option>
80 </select> 80 </select>
81 </td> 81 </td>
82 </tr> 82 </tr>
83 <tr class="row_slider_type_categories<?php if ( $graphene_settings['slider_type'] != 'categories' ) echo ' hide'; ?>">
84 <th scope="row">
85 <label for="slider_random_category_posts"><?php _e( 'Show posts from categories in random order', 'graphene' ); ?></label>
86 </th>
87 <td>
88 <input type="checkbox" name="graphene_settings[slider_random_category_posts]" id="slider_random_category_posts" <?php checked( $graphene_settings['slider_random_category_posts'] ); ?> value="true" data-toggleOptions="true" />
89 </td>
90 </tr>
83 <tr> 91 <tr>
84 <th scope="row"> 92 <th scope="row">
85 <label for="slider_postcount"><?php _e( 'Number of posts to display', 'graphene' ); ?></label> 93 <label for="slider_postcount"><?php _e( 'Number of posts to display', 'graphene' ); ?></label>
86 </th> 94 </th>
87 <td> 95 <td>
88 <input type="text" name="graphene_settings[slider_postcount]" id="slider_postcount" value="<?php echo $graphene_settings['slider_postcount']; ?>" size="3" /> 96 <input type="text" name="graphene_settings[slider_postcount]" id="slider_postcount" value="<?php echo $graphene_settings['slider_postcount']; ?>" size="3" />
89 </td> 97 </td>
90 </tr> 98 </tr>
91 <tr class="non-essential-option"> 99 <tr class="non-essential-option">
92 <th scope="row"> 100 <th scope="row">
93 <label for="slider_img"><?php _e( 'Slider image', 'graphene' ); ?></label> 101 <label for="slider_img"><?php _e( 'Slider image', 'graphene' ); ?></label>
94 </th> 102 </th>
95 <td> 103 <td>
96 <select name="graphene_settings[slider_img]" id="slider_img"> 104 <select name="graphene_settings[slider_img]" id="slider_img">
97 <option value="disabled" <?php selected( $graphene_settings['slider_img'], 'disabled' ); ?>><?php _e("Don't show image", 'graphene' ); ?></option> 105 <option value="disabled" <?php selected( $graphene_settings['slider_img'], 'disabled' ); ?>><?php _e("Don't show image", 'graphene' ); ?></option>
98 <option value="featured_image" <?php selected( $graphene_settings['slider_img'], 'featured_image' ); ?>><?php _e("Featured Image", 'graphene' ); ?></option> 106 <option value="featured_image" <?php selected( $graphene_settings['slider_img'], 'featured_image' ); ?>><?php _e("Featured Image", 'graphene' ); ?></option>
99 <option value="post_image" <?php selected( $graphene_settings['slider_img'], 'post_image' ); ?>><?php _e("First image in post", 'graphene' ); ?></option> 107 <option value="post_image" <?php selected( $graphene_settings['slider_img'], 'post_image' ); ?>><?php _e("First image in post", 'graphene' ); ?></option>
100 <option value="custom_url" <?php selected( $graphene_settings['slider_img'], 'custom_url' ); ?>><?php _e("Custom URL", 'graphene' ); ?></option> 108 <option value="custom_url" <?php selected( $graphene_settings['slider_img'], 'custom_url' ); ?>><?php _e("Custom URL", 'graphene' ); ?></option>
101 </select> 109 </select>
102 </td> 110 </td>
103 </tr> 111 </tr>
104 <tr class="non-essential-option"> 112 <tr class="non-essential-option">
105 <th scope="row"> 113 <th scope="row">
106 <label for="slider_imgurl"><?php _e( 'Custom slider image URL', 'graphene' ); ?></label> 114 <label for="slider_imgurl"><?php _e( 'Custom slider image URL', 'graphene' ); ?></label>
107 </th> 115 </th>
108 <td> 116 <td>
109 <input type="text" name="graphene_settings[slider_imgurl]" id="slider_imgurl" value="<?php echo $graphene_settings['slider_imgurl']; ?>" size="60" class="widefat code" /><br /> 117 <input type="text" name="graphene_settings[slider_imgurl]" id="slider_imgurl" value="<?php echo $graphene_settings['slider_imgurl']; ?>" size="60" class="widefat code" /><br />
110 <span class="description"><a href="#" class="upload_image_button"><?php _e( 'Upload or select image from gallery', 'graphene' );?></a> - <?php _e( 'Make sure you select Custom URL in the slider image option above to use this custom url.', 'graphene' ); ?></span> 118 <span class="description"><a href="#" class="upload_image_button"><?php _e( 'Upload or select image from gallery', 'graphene' );?></a> - <?php _e( 'Make sure you select Custom URL in the slider image option above to use this custom url.', 'graphene' ); ?></span>
111 119
112 </td> 120 </td>
113 </tr> 121 </tr>
114 <tr> 122 <tr>
115 <th scope="row"> 123 <th scope="row">
116 <label for="slider_display_style"><?php _e( 'Slider display style', 'graphene' ); ?></label><br /> 124 <label for="slider_display_style"><?php _e( 'Slider display style', 'graphene' ); ?></label><br />
117 </th> 125 </th>
118 <td> 126 <td>
119 <select name="graphene_settings[slider_display_style]" id="slider_display_style"> 127 <select name="graphene_settings[slider_display_style]" id="slider_display_style">
120 <option value="thumbnail-excerpt" <?php selected( $graphene_settings['slider_display_style'], 'thumbnail-excerpt' ); ?>><?php _e( 'Thumbnail and excerpt', 'graphene' ); ?></option> 128 <option value="thumbnail-excerpt" <?php selected( $graphene_settings['slider_display_style'], 'thumbnail-excerpt' ); ?>><?php _e( 'Thumbnail and excerpt', 'graphene' ); ?></option>
121 <option value="bgimage-excerpt" <?php selected( $graphene_settings['slider_display_style'], 'bgimage-excerpt' ); ?>><?php _e( 'Background image and excerpt', 'graphene' ); ?></option> 129 <option value="bgimage-excerpt" <?php selected( $graphene_settings['slider_display_style'], 'bgimage-excerpt' ); ?>><?php _e( 'Background image and excerpt', 'graphene' ); ?></option>
122 <option value="full-post" <?php selected( $graphene_settings['slider_display_style'], 'full-post' ); ?>><?php _e( 'Full post content', 'graphene' ); ?></option> 130 <option value="full-post" <?php selected( $graphene_settings['slider_display_style'], 'full-post' ); ?>><?php _e( 'Full post content', 'graphene' ); ?></option>
123 </select> 131 </select>
124 </td> 132 </td>
125 </tr> 133 </tr>
126 <tr class="non-essential-option"> 134 <tr class="non-essential-option">
127 <th scope="row"> 135 <th scope="row">
128 <label for="slider_animation"><?php _e( 'Slider animation', 'graphene' ); ?></label> 136 <label for="slider_animation"><?php _e( 'Slider animation', 'graphene' ); ?></label>
129 </th> 137 </th>
130 <td> 138 <td>
131 139
132 <select name="graphene_settings[slider_animation]" id="slider_animation"> 140 <select name="graphene_settings[slider_animation]" id="slider_animation">
133 <option value="horizontal-slide" <?php selected( $graphene_settings['slider_animation'], 'slide' ); ?>><?php _e( 'Horizontal slide', 'graphene' ); ?></option> 141 <option value="horizontal-slide" <?php selected( $graphene_settings['slider_animation'], 'slide' ); ?>><?php _e( 'Horizontal slide', 'graphene' ); ?></option>
134 <option value="vertical-slide" <?php selected( $graphene_settings['slider_animation'], 'vertical-slide' ); ?>><?php _e( 'Vertical slide', 'graphene' ); ?></option> 142 <option value="vertical-slide" <?php selected( $graphene_settings['slider_animation'], 'vertical-slide' ); ?>><?php _e( 'Vertical slide', 'graphene' ); ?></option>
135 <option value="fade" <?php selected( $graphene_settings['slider_animation'], 'fade' ); ?>><?php _e( 'Fade', 'graphene' ); ?></option> 143 <option value="fade" <?php selected( $graphene_settings['slider_animation'], 'fade' ); ?>><?php _e( 'Fade', 'graphene' ); ?></option>
136 <option value="none" <?php selected( $graphene_settings['slider_animation'], 'none' ); ?>><?php _e( 'No effect', 'graphene' ); ?></option> 144 <option value="none" <?php selected( $graphene_settings['slider_animation'], 'none' ); ?>><?php _e( 'No effect', 'graphene' ); ?></option>
137 </select> 145 </select>
138 </td> 146 </td>
139 </tr> 147 </tr>
140 <tr class="non-essential-option"> 148 <tr class="non-essential-option">
141 <th scope="row"> 149 <th scope="row">
142 <label for="slider_height"><?php _e( 'Slider height', 'graphene' ); ?></label> 150 <label for="slider_height"><?php _e( 'Slider height', 'graphene' ); ?></label>
143 </th> 151 </th>
144 <td> 152 <td>
145 <input type="text" name="graphene_settings[slider_height]" id="slider_height" value="<?php echo $graphene_settings['slider_height']; ?>" size="3" /> px 153 <input type="text" name="graphene_settings[slider_height]" id="slider_height" value="<?php echo $graphene_settings['slider_height']; ?>" size="3" /> px
146 </td> 154 </td>
147 </tr> 155 </tr>
148 <tr class="non-essential-option"> 156 <tr class="non-essential-option">
149 <th scope="row"> 157 <th scope="row">
150 <label for="slider_speed"><?php _e( 'Slider speed', 'graphene' ); ?></label> 158 <label for="slider_speed"><?php _e( 'Slider speed', 'graphene' ); ?></label>
151 </th> 159 </th>
152 <td> 160 <td>
153 <input type="text" name="graphene_settings[slider_speed]" id="slider_speed" value="<?php echo $graphene_settings['slider_speed']; ?>" size="4" /> <?php _e( 'milliseconds', 'graphene' ); ?><br /> 161 <input type="text" name="graphene_settings[slider_speed]" id="slider_speed" value="<?php echo $graphene_settings['slider_speed']; ?>" size="4" /> <?php _e( 'milliseconds', 'graphene' ); ?><br />
154 <span class="description"><?php _e( 'This is the duration that each slider item will be shown', 'graphene' ); ?></span> 162 <span class="description"><?php _e( 'This is the duration that each slider item will be shown', 'graphene' ); ?></span>
155 </td> 163 </td>
156 </tr> 164 </tr>
157 <tr class="non-essential-option"> 165 <tr class="non-essential-option">
158 <th scope="row"> 166 <th scope="row">
159 <label for="slider_trans_speed"><?php _e( 'Slider transition speed', 'graphene' ); ?></label> 167 <label for="slider_trans_speed"><?php _e( 'Slider transition speed', 'graphene' ); ?></label>
160 </th> 168 </th>
161 <td> 169 <td>
162 <input type="text" name="graphene_settings[slider_trans_speed]" id="slider_trans_speed" value="<?php echo $graphene_settings['slider_trans_speed']; ?>" size="4" /> <?php _e( 'milliseconds', 'graphene' ); ?><br /> 170 <input type="text" name="graphene_settings[slider_trans_speed]" id="slider_trans_speed" value="<?php echo $graphene_settings['slider_trans_speed']; ?>" size="4" /> <?php _e( 'milliseconds', 'graphene' ); ?><br />
163 <span class="description"><?php _e( 'This is the speed of the slider transition. Lower values = higher speed.', 'graphene' ); ?></span> 171 <span class="description"><?php _e( 'This is the speed of the slider transition. Lower values = higher speed.', 'graphene' ); ?></span>
164 </td> 172 </td>
165 </tr> 173 </tr>
166 <tr class="non-essential-option"> 174 <tr class="non-essential-option">
167 <th scope="row"> 175 <th scope="row">
168 <label for="slider_position"><?php _e( 'Move slider to bottom of page', 'graphene' ); ?></label> 176 <label for="slider_position"><?php _e( 'Move slider to bottom of page', 'graphene' ); ?></label>
169 </th> 177 </th>
170 <td><input type="checkbox" name="graphene_settings[slider_position]" id="slider_position" <?php checked( $graphene_settings['slider_position'] ); ?> value="true" /></td> 178 <td><input type="checkbox" name="graphene_settings[slider_position]" id="slider_position" <?php checked( $graphene_settings['slider_position'] ); ?> value="true" /></td>
171 </tr> 179 </tr>
172 </table> 180 </table>
173 </div> 181 </div>
174 </div> 182 </div>
175 183
176 184
177 <?php /* Front Page Options */ ?> 185 <?php /* Front Page Options */ ?>
178 <div class="postbox non-essential-option"> 186 <div class="postbox non-essential-option">
179 <div class="head-wrap"> 187 <div class="head-wrap">
180 <div title="Click to toggle" class="handlediv"><br /></div> 188 <div title="Click to toggle" class="handlediv"><br /></div>
181 <h3 class="hndle"><?php _e( 'Front Page Options', 'graphene' ); ?></h3> 189 <h3 class="hndle"><?php _e( 'Front Page Options', 'graphene' ); ?></h3>
182 </div> 190 </div>
183 <div class="panel-wrap inside"> 191 <div class="panel-wrap inside">
184 <table class="form-table"> 192 <table class="form-table">
185 <tr> 193 <tr>
186 <th scope="row"> 194 <th scope="row">
187 <label for="frontpage_posts_cats"><?php _e( 'Front page posts categories', 'graphene' ); ?></label> 195 <label for="frontpage_posts_cats"><?php _e( 'Front page posts categories', 'graphene' ); ?></label>
188 <p> 196 <p>
189 <small><?php _e( 'Only posts that belong to the categories selected here will be displayed on the front page. Does not affect Static Front Page.', 'graphene' ); ?></small> 197 <small><?php _e( 'Only posts that belong to the categories selected here will be displayed on the front page. Does not affect Static Front Page.', 'graphene' ); ?></small>
190 </p> 198 </p>
191 </th> 199 </th>
192 <td> 200 <td>
193 <select name="graphene_settings[frontpage_posts_cats][]" id="frontpage_posts_cats" multiple="multiple" class="select-multiple"> 201 <select name="graphene_settings[frontpage_posts_cats][]" id="frontpage_posts_cats" multiple="multiple" class="select-multiple">
194 <option value="" <?php if ( empty( $graphene_settings['frontpage_posts_cats'] ) ) { echo 'selected="selected"'; } ?>><?php _e( '--Disabled--', 'graphene' ); ?></option> 202 <option value="" <?php if ( empty( $graphene_settings['frontpage_posts_cats'] ) ) { echo 'selected="selected"'; } ?>><?php _e( '--Disabled--', 'graphene' ); ?></option>
195 <?php /* Get the list of categories */ 203 <?php /* Get the list of categories */
196 $categories = get_categories(); 204 $categories = get_categories();
197 foreach ( $categories as $category) : 205 foreach ( $categories as $category) :
198 ?> 206 ?>
199 <option value="<?php echo $category->cat_ID; ?>" <?php if ( in_array( $category->cat_ID, $graphene_settings['frontpage_posts_cats'] ) ) {echo 'selected="selected"';}?>><?php echo $category->cat_name; ?></option> 207 <option value="<?php echo $category->cat_ID; ?>" <?php if ( in_array( $category->cat_ID, $graphene_settings['frontpage_posts_cats'] ) ) {echo 'selected="selected"';}?>><?php echo $category->cat_name; ?></option>
200 <?php endforeach; ?> 208 <?php endforeach; ?>
201 </select><br /> 209 </select><br />
202 <span class="description"><?php _e( 'You may select multiple categories by holding down the CTRL key.', 'graphene' ); ?></span> 210 <span class="description"><?php _e( 'You may select multiple categories by holding down the CTRL key.', 'graphene' ); ?></span>
203 </td> 211 </td>
204 </tr> 212 </tr>
205 </table> 213 </table>
206 </div> 214 </div>
207 </div> 215 </div>
208 216
209 217
210 <?php /* Homepage panes options */ ?> 218 <?php /* Homepage panes options */ ?>
211 <div class="postbox non-essential-option"> 219 <div class="postbox non-essential-option">
212 <div class="head-wrap"> 220 <div class="head-wrap">
213 <div title="Click to toggle" class="handlediv"><br /></div> 221 <div title="Click to toggle" class="handlediv"><br /></div>
214 <h3 class="hndle"><?php _e( 'Homepage Panes', 'graphene' ); ?></h3> 222 <h3 class="hndle"><?php _e( 'Homepage Panes', 'graphene' ); ?></h3>
215 </div> 223 </div>
216 <div class="panel-wrap inside"> 224 <div class="panel-wrap inside">
217 <?php if ( 'page' == get_option( 'show_on_front' ) ) : ?> 225 <?php if ( 'page' == get_option( 'show_on_front' ) ) : ?>
218 <table class="form-table"> 226 <table class="form-table">
219 <tr> 227 <tr>
220 <th scope="row"> 228 <th scope="row">
221 <label for="disable_homepage_panes"><?php _e( 'Disable homepage panes', 'graphene' ); ?></label> 229 <label for="disable_homepage_panes"><?php _e( 'Disable homepage panes', 'graphene' ); ?></label>
222 </th> 230 </th>
223 <td> 231 <td>
224 <input type="checkbox" name="graphene_settings[disable_homepage_panes]" id="disable_homepage_panes" <?php checked( $graphene_settings['disable_homepage_panes'] ); ?> value="true" data-toggleOptions="true" /> 232 <input type="checkbox" name="graphene_settings[disable_homepage_panes]" id="disable_homepage_panes" <?php checked( $graphene_settings['disable_homepage_panes'] ); ?> value="true" data-toggleOptions="true" />
225 </td> 233 </td>
226 </tr> 234 </tr>
227 </table> 235 </table>
228 <table class="form-table site-summary<?php if ( $graphene_settings['disable_homepage_panes'] == true ) echo ' hide'; ?>"> 236 <table class="form-table site-summary<?php if ( $graphene_settings['disable_homepage_panes'] == true ) echo ' hide'; ?>">
229 <tr> 237 <tr>
230 <th scope="row"> 238 <th scope="row">
231 <?php _e( 'Type of content to show', 'graphene' ); ?> 239 <?php _e( 'Type of content to show', 'graphene' ); ?>
232 </th> 240 </th>
233 <td> 241 <td>
234 <input type="radio" name="graphene_settings[show_post_type]" value="latest-posts" id="show_post_type_latest-posts" <?php checked( $graphene_settings['show_post_type'], 'latest-posts' ); ?>/> 242 <input type="radio" name="graphene_settings[show_post_type]" value="latest-posts" id="show_post_type_latest-posts" <?php checked( $graphene_settings['show_post_type'], 'latest-posts' ); ?>/>
235 <label for="show_post_type_latest-posts"><?php _e( 'Latest posts', 'graphene' ); ?></label> 243 <label for="show_post_type_latest-posts"><?php _e( 'Latest posts', 'graphene' ); ?></label>
236 244
237 <input type="radio" name="graphene_settings[show_post_type]" value="cat-latest-posts" id="show_post_type_cat-latest-posts" <?php checked( $graphene_settings['show_post_type'], 'cat-latest-posts' ); ?>/> 245 <input type="radio" name="graphene_settings[show_post_type]" value="cat-latest-posts" id="show_post_type_cat-latest-posts" <?php checked( $graphene_settings['show_post_type'], 'cat-latest-posts' ); ?>/>
238 <label for="show_post_type_cat-latest-posts"><?php _e( 'Latest posts by category', 'graphene' ); ?></label> 246 <label for="show_post_type_cat-latest-posts"><?php _e( 'Latest posts by category', 'graphene' ); ?></label>
239 247
240 <input type="radio" name="graphene_settings[show_post_type]" value="posts" id="show_post_type_pages" <?php checked( $graphene_settings['show_post_type'], 'posts' ); ?>/> 248 <input type="radio" name="graphene_settings[show_post_type]" value="posts" id="show_post_type_pages" <?php checked( $graphene_settings['show_post_type'], 'posts' ); ?>/>
241 <label for="show_post_type_pages"><?php _e( 'Posts and/or pages', 'graphene' ); ?></label> 249 <label for="show_post_type_pages"><?php _e( 'Posts and/or pages', 'graphene' ); ?></label>
242 </td> 250 </td>
243 </tr> 251 </tr>
244 <tr id="row_show_post_type_latest-posts"<?php if ( ! in_array( $graphene_settings['show_post_type'], array( 'latest-posts', 'cat-latest-posts' ) )) echo ' class="hide"'; ?>> 252 <tr id="row_show_post_type_latest-posts"<?php if ( ! in_array( $graphene_settings['show_post_type'], array( 'latest-posts', 'cat-latest-posts' ) )) echo ' class="hide"'; ?>>
245 <th scope="row"> 253 <th scope="row">
246 <label for="homepage_panes_count"><?php _e( 'Number of latest posts to display', 'graphene' ); ?></label> 254 <label for="homepage_panes_count"><?php _e( 'Number of latest posts to display', 'graphene' ); ?></label>
247 </th> 255 </th>
248 <td> 256 <td>
249 <input type="text" name="graphene_settings[homepage_panes_count]" id="homepage_panes_count" value="<?php echo $graphene_settings['homepage_panes_count']; ?>" size="1" /><br /> 257 <input type="text" name="graphene_settings[homepage_panes_count]" id="homepage_panes_count" value="<?php echo $graphene_settings['homepage_panes_count']; ?>" size="1" /><br />
250 <span class="description"><?php _e( 'Applicable only if <strong>Latest posts</strong> or <strong>Latest posts by category</strong> is selected above.', 'graphene' ); ?></span> 258 <span class="description"><?php _e( 'Applicable only if <strong>Latest posts</strong> or <strong>Latest posts by category</strong> is selected above.', 'graphene' ); ?></span>
251 </td> 259 </td>
252 </tr> 260 </tr>
253 <tr id="row_show_post_type_cat-latest-posts"<?php if ( 'cat-latest-posts' != $graphene_settings['show_post_type'] ) echo ' class="hide"'; ?>> 261 <tr id="row_show_post_type_cat-latest-posts"<?php if ( 'cat-latest-posts' != $graphene_settings['show_post_type'] ) echo ' class="hide"'; ?>>
254 <th scope="row"> 262 <th scope="row">
255 <label for="homepage_panes_cat"><?php _e( 'Category to show latest posts from', 'graphene' ); ?></label> 263 <label for="homepage_panes_cat"><?php _e( 'Category to show latest posts from', 'graphene' ); ?></label>
256 </th> 264 </th>
257 <td> 265 <td>
258 <select name="graphene_settings[homepage_panes_cat][]" id="homepage_panes_cat" multiple="multiple" class="select-multiple"> 266 <select name="graphene_settings[homepage_panes_cat][]" id="homepage_panes_cat" multiple="multiple" class="select-multiple">
259 <?php /* Get the list of categories */ 267 <?php /* Get the list of categories */
260 foreach ( $categories as $category) : 268 foreach ( $categories as $category) :
261 ?> 269 ?>
262 <option value="<?php echo $category->cat_ID; ?>" <?php if ( in_array( $category->cat_ID, (array) $graphene_settings['homepage_panes_cat'] ) ) echo 'selected="selected"'; ?>><?php echo $category->cat_name; ?></option> 270 <option value="<?php echo $category->cat_ID; ?>" <?php if ( in_array( $category->cat_ID, (array) $graphene_settings['homepage_panes_cat'] ) ) echo 'selected="selected"'; ?>><?php echo $category->cat_name; ?></option>
263 <?php endforeach; ?> 271 <?php endforeach; ?>
264 </select><br /> 272 </select><br />
265 <span class="description"><?php _e( 'Applicable only if <strong>Latest posts by category</strong> is selected above.', 'graphene' ); ?></span> 273 <span class="description"><?php _e( 'Applicable only if <strong>Latest posts by category</strong> is selected above.', 'graphene' ); ?></span>
266 </td> 274 </td>
267 </tr> 275 </tr>
268 <tr id="row_show_post_type_posts"<?php if ( 'posts' != $graphene_settings['show_post_type'] ) echo ' class="hide"'; ?>> 276 <tr id="row_show_post_type_posts"<?php if ( 'posts' != $graphene_settings['show_post_type'] ) echo ' class="hide"'; ?>>
269 <th scope="row"> 277 <th scope="row">
270 <label for="homepage_panes_posts"><?php _e( 'Posts and/or pages to display', 'graphene' ); ?></label> 278 <label for="homepage_panes_posts"><?php _e( 'Posts and/or pages to display', 'graphene' ); ?></label>
271 </th> 279 </th>
272 <td> 280 <td>
273 <input type="text" name="graphene_settings[homepage_panes_posts]" id="homepage_panes_posts" value="<?php echo $graphene_settings['homepage_panes_posts']; ?>" size="10" class="code" /><br /> 281 <input type="text" name="graphene_settings[homepage_panes_posts]" id="homepage_panes_posts" value="<?php echo $graphene_settings['homepage_panes_posts']; ?>" size="10" class="code" /><br />
274 <span class="description"> 282 <span class="description">
275 <?php _e( 'Enter ID of posts and/or pages to be displayed, separated by comma. Example: <code>1,13,45,33</code>', 'graphene' ); ?><br /> 283 <?php _e( 'Enter ID of posts and/or pages to be displayed, separated by comma. Example: <code>1,13,45,33</code>', 'graphene' ); ?><br />
276 <?php _e( 'Applicable only if <strong>Posts and/or pages</strong> is selected above.', 'graphene' ); ?> 284 <?php _e( 'Applicable only if <strong>Posts and/or pages</strong> is selected above.', 'graphene' ); ?>
277 </span> 285 </span>
278 </td> 286 </td>
279 </tr> 287 </tr>
280 </table> 288 </table>
281 <?php else : ?> 289 <?php else : ?>
282 <p><?php _e( '<strong>Note:</strong> homepage panes are only displayed when using a <a href="http://codex.wordpress.org/Creating_a_Static_Front_Page">static front page</a>.', 'graphene' ); ?></p> 290 <p><?php _e( '<strong>Note:</strong> homepage panes are only displayed when using a <a href="http://codex.wordpress.org/Creating_a_Static_Front_Page">static front page</a>.', 'graphene' ); ?></p>
283 <?php endif; ?> 291 <?php endif; ?>
284 </div> 292 </div>
285 </div> 293 </div>
286 294
287 295
288 <?php /* Comments Options */ ?> 296 <?php /* Comments Options */ ?>
289 <div class="postbox"> 297 <div class="postbox">
290 <div class="head-wrap"> 298 <div class="head-wrap">
291 <div title="Click to toggle" class="handlediv"><br /></div> 299 <div title="Click to toggle" class="handlediv"><br /></div>
292 <h3 class="hndle"><?php _e( 'Comments Options', 'graphene' ); ?></h3> 300 <h3 class="hndle"><?php _e( 'Comments Options', 'graphene' ); ?></h3>
293 </div> 301 </div>
294 <div class="panel-wrap inside"> 302 <div class="panel-wrap inside">
295 <table class="form-table"> 303 <table class="form-table">
296 <tr> 304 <tr>
297 <th scope="row"> 305 <th scope="row">
298 <label for="comments_setting"><?php _e( 'Commenting', 'graphene' ); ?></label> 306 <label for="comments_setting"><?php _e( 'Commenting', 'graphene' ); ?></label>
299 </th> 307 </th>
300 <td> 308 <td>
301 <select name="graphene_settings[comments_setting]" id="comments_setting"> 309 <select name="graphene_settings[comments_setting]" id="comments_setting">
302 <option value="wordpress" <?php selected( $graphene_settings['comments_setting'], 'wordpress' ); ?>><?php _e( 'Use WordPress settings', 'graphene' ); ?></option> 310 <option value="wordpress" <?php selected( $graphene_settings['comments_setting'], 'wordpress' ); ?>><?php _e( 'Use WordPress settings', 'graphene' ); ?></option>
303 <option value="disabled_pages" <?php selected( $graphene_settings['comments_setting'], 'disabled_pages' ); ?>><?php _e( 'Disabled for pages', 'graphene' ); ?></option> 311 <option value="disabled_pages" <?php selected( $graphene_settings['comments_setting'], 'disabled_pages' ); ?>><?php _e( 'Disabled for pages', 'graphene' ); ?></option>
304 <option value="disabled_completely" <?php selected( $graphene_settings['comments_setting'], 'disabled_completely' ); ?>><?php _e( 'Disabled completely', 'graphene' ); ?></option> 312 <option value="disabled_completely" <?php selected( $graphene_settings['comments_setting'], 'disabled_completely' ); ?>><?php _e( 'Disabled completely', 'graphene' ); ?></option>
305 </select><br /> 313 </select><br />
306 <span class="description"><?php _e( 'Note: this setting overrides the global WordPress Discussion Setting called "Allow people to post comments on new articles" and also the "Allow comments" option for individual posts/pages.', 'graphene' ); ?></span> 314 <span class="description"><?php _e( 'Note: this setting overrides the global WordPress Discussion Setting called "Allow people to post comments on new articles" and also the "Allow comments" option for individual posts/pages.', 'graphene' ); ?></span>
307 </td> 315 </td>
308 </tr> 316 </tr>
309 </table> 317 </table>
310 </div> 318 </div>
311 </div> 319 </div>
312 320
313 321
314 <?php /* Child Page Options */ ?> 322 <?php /* Child Page Options */ ?>
315 <div class="postbox non-essential-option"> 323 <div class="postbox non-essential-option">
316 <div class="head-wrap"> 324 <div class="head-wrap">
317 <div title="Click to toggle" class="handlediv"><br /></div> 325 <div title="Click to toggle" class="handlediv"><br /></div>
318 <h3 class="hndle"><?php _e( 'Child Page Options', 'graphene' ); ?></h3> 326 <h3 class="hndle"><?php _e( 'Child Page Options', 'graphene' ); ?></h3>
319 </div> 327 </div>
320 <div class="panel-wrap inside"> 328 <div class="panel-wrap inside">
321 <table class="form-table"> 329 <table class="form-table">
322 <tr> 330 <tr>
323 <th scope="row"> 331 <th scope="row">
324 <label for="hide_parent_content_if_empty"><?php _e( 'Hide parent box if content is empty', 'graphene' ); ?></label> 332 <label for="hide_parent_content_if_empty"><?php _e( 'Hide parent box if content is empty', 'graphene' ); ?></label>
325 </th> 333 </th>
326 <td><input type="checkbox" name="graphene_settings[hide_parent_content_if_empty]" id="hide_parent_content_if_empty" <?php checked( $graphene_settings['hide_parent_content_if_empty'] ); ?> value="true" /></td> 334 <td><input type="checkbox" name="graphene_settings[hide_parent_content_if_empty]" id="hide_parent_content_if_empty" <?php checked( $graphene_settings['hide_parent_content_if_empty'] ); ?> value="true" /></td>
327 </tr> 335 </tr>
328 <tr> 336 <tr>
329 <th scope="row"> 337 <th scope="row">
330 <label for="child_page_listing"><?php _e( 'Child page listings', 'graphene' ); ?></label> 338 <label for="child_page_listing"><?php _e( 'Child page listings', 'graphene' ); ?></label>
331 </th> 339 </th>
332 <td> 340 <td>
333 <select name="graphene_settings[child_page_listing]" id="child_page_listing"> 341 <select name="graphene_settings[child_page_listing]" id="child_page_listing">
334 <option value="show_always" <?php selected( $graphene_settings['child_page_listing'], 'show_always' ); ?>><?php _e( 'Show listing', 'graphene' ); ?></option> 342 <option value="show_always" <?php selected( $graphene_settings['child_page_listing'], 'show_always' ); ?>><?php _e( 'Show listing', 'graphene' ); ?></option>
335 <option value="hide" <?php selected( $graphene_settings['child_page_listing'], 'hide' ); ?>><?php _e( 'Hide listing', 'graphene' ); ?></option> 343 <option value="hide" <?php selected( $graphene_settings['child_page_listing'], 'hide' ); ?>><?php _e( 'Hide listing', 'graphene' ); ?></option>
336 <option value="show_if_parent_empty" <?php selected( $graphene_settings['child_page_listing'], 'show_if_parent_empty' ); ?>><?php _e( 'Only show listing if parent content is empty', 'graphene' ); ?></option> 344 <option value="show_if_parent_empty" <?php selected( $graphene_settings['child_page_listing'], 'show_if_parent_empty' ); ?>><?php _e( 'Only show listing if parent content is empty', 'graphene' ); ?></option>
337 </select> 345 </select>
338 </td> 346 </td>
339 </tr> 347 </tr>
340 </table> 348 </table>
341 </div> 349 </div>
342 </div> 350 </div>
343 351
344 352
345 <?php /* Widget Area Options */ ?> 353 <?php /* Widget Area Options */ ?>
346 <div class="postbox non-essential-option"> 354 <div class="postbox non-essential-option">
347 <div class="head-wrap"> 355 <div class="head-wrap">
348 <div title="Click to toggle" class="handlediv"><br /></div> 356 <div title="Click to toggle" class="handlediv"><br /></div>
349 <h3 class="hndle"><?php _e( 'Widget Area Options', 'graphene' ); ?></h3> 357 <h3 class="hndle"><?php _e( 'Widget Area Options', 'graphene' ); ?></h3>
350 </div> 358 </div>
351 <div class="panel-wrap inside"> 359 <div class="panel-wrap inside">
352 <h4><?php _e( 'Header widget area', 'graphene' ); ?></h4> 360 <h4><?php _e( 'Header widget area', 'graphene' ); ?></h4>
353 <p><?php _e( '<strong>Important:</strong> This widget area is unstyled, as it is often used for advertisement banners, etc. If you enable it, make sure you style it to your needs using the Custom CSS option.', 'graphene' ); ?></p> 361 <p><?php _e( '<strong>Important:</strong> This widget area is unstyled, as it is often used for advertisement banners, etc. If you enable it, make sure you style it to your needs using the Custom CSS option.', 'graphene' ); ?></p>
354 <table class="form-table site-summary"> 362 <table class="form-table site-summary">
355 <tr> 363 <tr>
356 <th scope="row"> 364 <th scope="row">
357 <label for="enable_header_widget"><?php _e( 'Enable header widget area', 'graphene' ); ?></label> 365 <label for="enable_header_widget"><?php _e( 'Enable header widget area', 'graphene' ); ?></label>
358 </th> 366 </th>
359 <td> 367 <td>
360 <input type="checkbox" value="true" name="graphene_settings[enable_header_widget]" id="enable_header_widget" <?php checked( $graphene_settings['enable_header_widget'] ); ?> /> 368 <input type="checkbox" value="true" name="graphene_settings[enable_header_widget]" id="enable_header_widget" <?php checked( $graphene_settings['enable_header_widget'] ); ?> />
361 </td> 369 </td>
362 </tr> 370 </tr>
363 </table> 371 </table>
364 372
365 373
366 <h4><?php _e( 'Alternate Widgets', 'graphene' ); ?></h4> 374 <h4><?php _e( 'Alternate Widgets', 'graphene' ); ?></h4>
367 <p><?php _e( 'You can enable the theme to show different widget areas in the front page than the rest of the website. If you enable this option, additional widget areas that will only be displayed on the front page will be added to the Widget settings page.', 'graphene' ); ?></p> 375 <p><?php _e( 'You can enable the theme to show different widget areas in the front page than the rest of the website. If you enable this option, additional widget areas that will only be displayed on the front page will be added to the Widget settings page.', 'graphene' ); ?></p>
368 <table class="form-table"> 376 <table class="form-table">
369 <tr> 377 <tr>
370 <th scope="row" style="width:350px;"><label for="alt_home_sidebar"><?php _e( 'Enable alternate front page sidebar widget area', 'graphene' ); ?></label></th> 378 <th scope="row" style="width:350px;"><label for="alt_home_sidebar"><?php _e( 'Enable alternate front page sidebar widget area', 'graphene' ); ?></label></th>
371 <td><input type="checkbox" name="graphene_settings[alt_home_sidebar]" id="alt_home_sidebar" <?php checked( $graphene_settings['alt_home_sidebar'] ); ?> value="true" /></td> 379 <td><input type="checkbox" name="graphene_settings[alt_home_sidebar]" id="alt_home_sidebar" <?php checked( $graphene_settings['alt_home_sidebar'] ); ?> value="true" /></td>
372 </tr> 380 </tr>
373 <tr> 381 <tr>
374 <th scope="row"><label for="alt_home_footerwidget"><?php _e( 'Enable alternate front page footer widget area', 'graphene' ); ?></label><br /> 382 <th scope="row"><label for="alt_home_footerwidget"><?php _e( 'Enable alternate front page footer widget area', 'graphene' ); ?></label><br />
375 <small><?php _e( 'You can also specify different column counts for the front page footer widget and the rest-of-site footer widget if you enable this option.', 'graphene' ); ?></small> 383 <small><?php _e( 'You can also specify different column counts for the front page footer widget and the rest-of-site footer widget if you enable this option.', 'graphene' ); ?></small>
376 </th> 384 </th>
377 <td><input type="checkbox" name="graphene_settings[alt_home_footerwidget]" id="alt_home_footerwidget" <?php checked( $graphene_settings['alt_home_footerwidget'] ); ?> value="true" /></td> 385 <td><input type="checkbox" name="graphene_settings[alt_home_footerwidget]" id="alt_home_footerwidget" <?php checked( $graphene_settings['alt_home_footerwidget'] ); ?> value="true" /></td>
378 </tr> 386 </tr>
379 </table> 387 </table>
380 </div> 388 </div>
381 </div> 389 </div>
382 390
383 391
384 <?php /* RSS Feed Options */ ?> 392 <?php /* RSS Feed Options */ ?>
385 <div class="postbox"> 393 <div class="postbox">
386 <div class="head-wrap"> 394 <div class="head-wrap">
387 <div title="Click to toggle" class="handlediv"><br /></div> 395 <div title="Click to toggle" class="handlediv"><br /></div>
388 <h3 class="hndle"><?php _e( 'RSS Feed Options', 'graphene' ); ?></h3> 396 <h3 class="hndle"><?php _e( 'RSS Feed Options', 'graphene' ); ?></h3>
389 </div> 397 </div>
390 <div class="panel-wrap inside"> 398 <div class="panel-wrap inside">
391 <table class="form-table"> 399 <table class="form-table">
392 <tr class="non-essential-option"> 400 <tr class="non-essential-option">
393 <th scope="row"> 401 <th scope="row">
394 <label for="use_custom_rss_feed"><?php _e( 'Use a custom RSS Feed', 'graphene' ); ?></label> 402 <label for="use_custom_rss_feed"><?php _e( 'Use a custom RSS Feed', 'graphene' ); ?></label>
395 </th> 403 </th>
396 <td><input type="checkbox" name="graphene_settings[use_custom_rss_feed]" id="use_custom_rss_feed" <?php checked( $graphene_settings['use_custom_rss_feed'] ); ?> value="true" data-toggleOptions="true" /></td> 404 <td><input type="checkbox" name="graphene_settings[use_custom_rss_feed]" id="use_custom_rss_feed" <?php checked( $graphene_settings['use_custom_rss_feed'] ); ?> value="true" data-toggleOptions="true" /></td>
397 </tr> 405 </tr>
398 </table> 406 </table>
399 <table class="form-table site-summary<?php if ( $graphene_settings['use_custom_rss_feed'] == false ) echo ' hide'; ?>"> 407 <table class="form-table site-summary<?php if ( $graphene_settings['use_custom_rss_feed'] == false ) echo ' hide'; ?>">
400 <tr> 408 <tr>
401 <th scope="row"> 409 <th scope="row">
402 <label for="custom_rss_feed_url"><?php _e( 'Custom RSS Feed url', 'graphene' ); ?></label> 410 <label for="custom_rss_feed_url"><?php _e( 'Custom RSS Feed url', 'graphene' ); ?></label>
403 </th> 411 </th>
404 <td> 412 <td>
405 <input type="text" name="graphene_settings[custom_rss_feed_url]" value="<?php echo $graphene_settings[custom_rss_feed_url] ?>" class="widefat code" /> 413 <input type="text" name="graphene_settings[custom_rss_feed_url]" value="<?php echo $graphene_settings[custom_rss_feed_url] ?>" class="widefat code" />
406 </td> 414 </td>
407 </tr> 415 </tr>
408 </table> 416 </table>
409 </div> 417 </div>
410 </div> 418 </div>
411 419
412 420
413 <?php /* Top Bar Options */ ?> 421 <?php /* Top Bar Options */ ?>
414 <div class="postbox"> 422 <div class="postbox">
415 <div class="head-wrap"> 423 <div class="head-wrap">
416 <div title="Click to toggle" class="handlediv"><br /></div> 424 <div title="Click to toggle" class="handlediv"><br /></div>
417 <h3 class="hndle"><?php _e( 'Top Bar Options', 'graphene' ); ?></h3> 425 <h3 class="hndle"><?php _e( 'Top Bar Options', 'graphene' ); ?></h3>
418 </div> 426 </div>
419 <div class="panel-wrap inside"> 427 <div class="panel-wrap inside">
420 <table class="form-table"> 428 <table class="form-table">
421 <tr class="non-essential-option"> 429 <tr class="non-essential-option">
422 <th scope="row"> 430 <th scope="row">
423 <label for="hide_top_bar"><?php _e( 'Hide the top bar', 'graphene' ); ?></label> 431 <label for="hide_top_bar"><?php _e( 'Hide the top bar', 'graphene' ); ?></label>
424 </th> 432 </th>
425 <td><input type="checkbox" name="graphene_settings[hide_top_bar]" id="hide_top_bar" <?php checked( $graphene_settings['hide_top_bar'] ); ?> value="true" data-toggleOptions="true" /></td> 433 <td><input type="checkbox" name="graphene_settings[hide_top_bar]" id="hide_top_bar" <?php checked( $graphene_settings['hide_top_bar'] ); ?> value="true" data-toggleOptions="true" /></td>
426 </tr> 434 </tr>
427 </table> 435 </table>
428 <table class="form-table social-media-table<?php if ( $graphene_settings['hide_top_bar'] == true ) echo ' hide'; ?>"> 436 <table class="form-table social-media-table<?php if ( $graphene_settings['hide_top_bar'] == true ) echo ' hide'; ?>">
429 <tr class="non-essential-option"> 437 <tr class="non-essential-option">
430 <th scope="row"><label for="social_media_new_window"><?php _e( 'Open social media links in new window', 'graphene' ); ?></label></th> 438 <th scope="row"><label for="social_media_new_window"><?php _e( 'Open social media links in new window', 'graphene' ); ?></label></th>
431 <td><input type="checkbox" name="graphene_settings[social_media_new_window]" id="social_media_new_window" <?php checked( $graphene_settings['social_media_new_window'] ); ?> value="true" /></td> 439 <td><input type="checkbox" name="graphene_settings[social_media_new_window]" id="social_media_new_window" <?php checked( $graphene_settings['social_media_new_window'] ); ?> value="true" /></td>
432 </tr> 440 </tr>
433 <tr class="non-essential-option"> 441 <tr class="non-essential-option">
434 <td colspan="2"><p><?php _e( '<strong>Hint:</strong> drag and drop to rearrange the placement of the social media icons.', 'graphene' ); ?></p></td> 442 <td colspan="2"><p><?php _e( '<strong>Hint:</strong> drag and drop to rearrange the placement of the social media icons.', 'graphene' ); ?></p></td>
435 </tr> 443 </tr>
436 <tr class="non-essential-option"> 444 <tr class="non-essential-option">
437 <td colspan="2" id="socialprofile-sortable"> 445 <td colspan="2" id="socialprofile-sortable">
438 <?php 446 <?php
439 // Credits go to Nouveller for the icons - Social Media Bookmark-Iconscollection 447 // Credits go to Nouveller for the icons - Social Media Bookmark-Iconscollection
440 // http://www.nouveller.com/general/free-social-media-bookmark-icon-pack-the-ever-growing-icon-set/ 448 // http://www.nouveller.com/general/free-social-media-bookmark-icon-pack-the-ever-growing-icon-set/
441 $available_profiles = array ( 'Twitter', 'Facebook', 'LinkedIn', 'RSS', '-', 'Custom', '-', 449 $available_profiles = array ( 'Twitter', 'Facebook', 'LinkedIn', 'RSS', '-', 'Custom', '-',
442 'audioBoo', 'Bebo', 'Behance', 'Blogger', 'Buzz', 'CreativeCommons', 'DailyBooth', 'Delicious', 'DesignFloat', 'DeviantArt', 450 'audioBoo', 'Bebo', 'Behance', 'Blogger', 'Buzz', 'CreativeCommons', 'DailyBooth', 'Delicious', 'DesignFloat', 'DeviantArt',
443 'Digg', 'Dopplr', 'Dribbble', 'Email', 'Ember', 'Flickr', 'Forrst', 'Friendfeed', 'Google', 451 'Digg', 'Dopplr', 'Dribbble', 'Email', 'Ember', 'Flickr', 'Forrst', 'Friendfeed', 'Google',
444 'Gowalla', 'Grooveshark', 'Hyves', 'LastFM', 'LiveJournal', 'Lockerz', 'Megavideo', 'MySpace', 'Piano', 452 'Gowalla', 'Grooveshark', 'Hyves', 'LastFM', 'LiveJournal', 'Lockerz', 'Megavideo', 'MySpace', 'Piano',
445 'Playfire', 'PlayStation', 'Reddit', 'Skype', 'Socialvibe', 'SoundCloud', 'Spotify', 'Steam', 'StumbleUpon', 453 'Playfire', 'PlayStation', 'Reddit', 'Skype', 'Socialvibe', 'SoundCloud', 'Spotify', 'Steam', 'StumbleUpon',
446 'Technorati', 'Tumblr', 'TwitPic', 'Typepad', 'Vimeo', 'Wakoopa', 'WordPress', 'Xing', 'Yahoo', 'YouTube' ); 454 'Technorati', 'Tumblr', 'TwitPic', 'Typepad', 'Vimeo', 'Wakoopa', 'WordPress', 'Xing', 'Yahoo', 'YouTube' );
447 455
448 $social_profiles = ( ! empty( $graphene_settings['social_profiles'] ) ) ? $graphene_settings['social_profiles'] : array(); 456 $social_profiles = ( ! empty( $graphene_settings['social_profiles'] ) ) ? $graphene_settings['social_profiles'] : array();
449 ?> 457 ?>
450 <?php foreach ($social_profiles as $profile_key => $profile_data) : ?> 458 <?php foreach ($social_profiles as $profile_key => $profile_data) : ?>
451 <table class="form-table socialprofile-table"> 459 <table class="form-table socialprofile-table">
452 <tr> 460 <tr>
453 <th scope="row" rowspan="<?php echo $profile_data['type'] == 'custom' ? '3' : '2'; ?>" class="small-row"> 461 <th scope="row" rowspan="<?php echo $profile_data['type'] == 'custom' ? '3' : '2'; ?>" class="small-row">
454 <?php printf( __('%s link', 'graphene'), $profile_data['title'] ); ?><br /> 462 <?php printf( __('%s link', 'graphene'), $profile_data['title'] ); ?><br />
455 <input type="hidden" name="graphene_settings[social_profiles][<?php echo $profile_key; ?>][type]" value="<?php echo $profile_data['type']; ?>" /> 463 <input type="hidden" name="graphene_settings[social_profiles][<?php echo $profile_key; ?>][type]" value="<?php echo $profile_data['type']; ?>" />
456 <?php if ( $profile_data['type'] == 'custom' ) : ?> 464 <?php if ( $profile_data['type'] == 'custom' ) : ?>
457 <img class="mysocial-icon" src="<?php echo $profile_data['icon_url']; ?>" /> 465 <img class="mysocial-icon" src="<?php echo $profile_data['icon_url']; ?>" />
458 <?php else : ?> 466 <?php else : ?>
459 <div class="mysocial social-<?php echo $profile_data['type']; ?>">&nbsp;</div> 467 <div class="mysocial social-<?php echo $profile_data['type']; ?>">&nbsp;</div>
460 <?php endif; ?> 468 <?php endif; ?>
461 </th> 469 </th>
462 <th class="small-row"><?php _e('Title', 'graphene'); ?></th> 470 <th class="small-row"><?php _e('Title', 'graphene'); ?></th>
463 <td><input type="text" name="graphene_settings[social_profiles][<?php echo $profile_key; ?>][title]" value="<?php echo $profile_data['title']; ?>" class="widefat code" /></td> 471 <td><input type="text" name="graphene_settings[social_profiles][<?php echo $profile_key; ?>][title]" value="<?php echo $profile_data['title']; ?>" class="widefat code" /></td>
464 </tr> 472 </tr>
465 <tr> 473 <tr>
466 <th class="small-row"><?php _e('URL', 'graphene'); ?></th> 474 <th class="small-row"><?php _e('URL', 'graphene'); ?></th>
467 <td> 475 <td>
468 <input type="text" name="graphene_settings[social_profiles][<?php echo $profile_key; ?>][url]" value="<?php echo $profile_data['url']; ?>" class="widefat code" /> 476 <input type="text" name="graphene_settings[social_profiles][<?php echo $profile_key; ?>][url]" value="<?php echo $profile_data['url']; ?>" class="widefat code" />
469 <?php if ( $profile_data['type'] == 'rss' ) : ?> 477 <?php if ( $profile_data['type'] == 'rss' ) : ?>
470 <br /><span class="description"><?php _e('Leave the url empty to use the default RSS url (or the custom RSS url if set in the RSS Feed option).', 'graphene'); ?></span> 478 <br /><span class="description"><?php _e('Leave the url empty to use the default RSS url (or the custom RSS url if set in the RSS Feed option).', 'graphene'); ?></span>
471 <?php endif; ?> 479 <?php endif; ?>
472 <?php if ( $profile_data['type'] == 'custom' ) : ?> 480 <?php if ( $profile_data['type'] == 'custom' ) : ?>
473 </td> 481 </td>
474 </tr> 482 </tr>
475 <tr> 483 <tr>
476 <th class="small-row"><?php _e('Icon URL', 'graphene'); ?></th> 484 <th class="small-row"><?php _e('Icon URL', 'graphene'); ?></th>
477 <td> 485 <td>
478 <input type="text" name="graphene_settings[social_profiles][<?php echo $profile_key; ?>][icon_url]" value="<?php echo $profile_data['icon_url']; ?>" class="widefat code" /> 486 <input type="text" name="graphene_settings[social_profiles][<?php echo $profile_key; ?>][icon_url]" value="<?php echo $profile_data['icon_url']; ?>" class="widefat code" />
479 <?php endif; ?> 487 <?php endif; ?>
480 <br /><span class="delete"><a href="#" class="socialprofile-del"><?php _e( 'Delete', 'graphene' ); ?></a></span> 488 <br /><span class="delete"><a href="#" class="socialprofile-del"><?php _e( 'Delete', 'graphene' ); ?></a></span>
481 </td> 489 </td>
482 </tr> 490 </tr>
483 </table> 491 </table>
484 <?php endforeach; ?> 492 <?php endforeach; ?>
485 </td> 493 </td>
486 </tr> 494 </tr>
487 <tr> 495 <tr>
488 <td colspan="2"> 496 <td colspan="2">
489 <table class="socialprofile-dragging"> 497 <table class="socialprofile-dragging">
490 <tr> 498 <tr>
491 <td colspan="2"> 499 <td colspan="2">
492 <strong><?php _e( 'Add Social Media Profile', 'graphene' ); ?></strong> 500 <strong><?php _e( 'Add Social Media Profile', 'graphene' ); ?></strong>
493 <input type="hidden" id="socialprofile-next-index" value="<?php echo count($social_profiles)+1; ?>" /> 501 <input type="hidden" id="socialprofile-next-index" value="<?php echo count($social_profiles)+1; ?>" />
494 </td> 502 </td>
495 </tr> 503 </tr>
496 <tr> 504 <tr>
497 <th><?php _e( 'Type', 'graphene' ); ?></th> 505 <th><?php _e( 'Type', 'graphene' ); ?></th>
498 <td> 506 <td>
499 <select id="new-socialprofile-type"> 507 <select id="new-socialprofile-type">
500 <option disabled="disabled" value="-">- Choose type -</option> 508 <option disabled="disabled" value="-">- Choose type -</option>
501 <?php foreach ( $available_profiles as $profile_type) : ?> 509 <?php foreach ( $available_profiles as $profile_type) : ?>
502 <?php if ($profile_type == '-') : ?> 510 <?php if ($profile_type == '-') : ?>
503 <option disabled="disabled" value="-">-----------------------</option> 511 <option disabled="disabled" value="-">-----------------------</option>
504 <?php else : ?> 512 <?php else : ?>
505 <option value="<?php echo sanitize_title( $profile_type ); ?>"><?php echo $profile_type; ?></option> 513 <option value="<?php echo sanitize_title( $profile_type ); ?>"><?php echo $profile_type; ?></option>
506 <?php endif; ?> 514 <?php endif; ?>
507 <?php endforeach; ?> 515 <?php endforeach; ?>
508 </select> 516 </select>
509 </td> 517 </td>
510 </tr> 518 </tr>
511 <tr> 519 <tr>
512 <th><?php _e('Title', 'graphene'); ?></th> 520 <th><?php _e('Title', 'graphene'); ?></th>
513 <td><input type="text" id="new-socialprofile-title" class="widefat code" /></td> 521 <td><input type="text" id="new-socialprofile-title" class="widefat code" /></td>
514 </tr> 522 </tr>
515 <tr> 523 <tr>
516 <th><?php _e('URL', 'graphene'); ?></th> 524 <th><?php _e('URL', 'graphene'); ?></th>
517 <td><input type="text" id="new-socialprofile-url" class="widefat code" /> 525 <td><input type="text" id="new-socialprofile-url" class="widefat code" />
518 <span id="new-socialprofile-url-description" class="hide"><?php _e('Leave the url empty to use the default RSS url (or the custom RSS url if set in the RSS Feed option).', 'graphene'); ?></span> 526 <span id="new-socialprofile-url-description" class="hide"><?php _e('Leave the url empty to use the default RSS url (or the custom RSS url if set in the RSS Feed option).', 'graphene'); ?></span>
519 </td> 527 </td>
520 </tr> 528 </tr>
521 <tr class="hide"> 529 <tr class="hide">
522 <th><?php _e('Icon URL', 'graphene'); ?></th> 530 <th><?php _e('Icon URL', 'graphene'); ?></th>
523 <td><input type="text" id="new-socialprofile-iconurl" class="widefat code" /></td> 531 <td><input type="text" id="new-socialprofile-iconurl" class="widefat code" /></td>
524 </tr> 532 </tr>
525 <tr> 533 <tr>
526 <td colspan="2"><a href="#" id="new-socialprofile-add"><?php _e( 'Add new Social Media Profile', 'graphene' ); ?></a></td> 534 <td colspan="2"><a href="#" id="new-socialprofile-add"><?php _e( 'Add new Social Media Profile', 'graphene' ); ?></a></td>
527 </tr> 535 </tr>
528 </table> 536 </table>
529 </td> 537 </td>
530 </tr> 538 </tr>
531 </table> 539 </table>
532 </div> 540 </div>
533 </div> 541 </div>
534 542
535 543
536 <?php /* Social Sharing Options */ ?> 544 <?php /* Social Sharing Options */ ?>
537 <div class="postbox"> 545 <div class="postbox">
538 <div class="head-wrap"> 546 <div class="head-wrap">
539 <div title="Click to toggle" class="handlediv"><br /></div> 547 <div title="Click to toggle" class="handlediv"><br /></div>
540 <h3 class="hndle"><?php _e( 'Social Sharing Buttons', 'graphene' ); ?></h3> 548 <h3 class="hndle"><?php _e( 'Social Sharing Buttons', 'graphene' ); ?></h3>
541 </div> 549 </div>
542 <div class="panel-wrap inside"> 550 <div class="panel-wrap inside">
543 <table class="form-table"> 551 <table class="form-table">
544 <tr> 552 <tr>
545 <th scope="row"><label for="show_addthis"><?php _e( 'Show social sharing button', 'graphene' ); ?></label></th> 553 <th scope="row"><label for="show_addthis"><?php _e( 'Show social sharing button', 'graphene' ); ?></label></th>
546 <td><input type="checkbox" name="graphene_settings[show_addthis]" id="show_addthis" <?php checked( $graphene_settings['show_addthis'] ); ?> value="true" data-toggleOptions="true" /></td> 554 <td><input type="checkbox" name="graphene_settings[show_addthis]" id="show_addthis" <?php checked( $graphene_settings['show_addthis'] ); ?> value="true" data-toggleOptions="true" /></td>
547 </tr> 555 </tr>
548 </table> 556 </table>
549 <table class="form-table<?php if ( $graphene_settings['show_addthis'] != true ) echo ' hide'; ?>"> 557 <table class="form-table<?php if ( $graphene_settings['show_addthis'] != true ) echo ' hide'; ?>">
550 <tr> 558 <tr>
551 <th scope="row"><label for="show_addthis_page"><?php _e( 'Show in Pages as well?', 'graphene' ); ?></label></th> 559 <th scope="row"><label for="show_addthis_page"><?php _e( 'Show in Pages as well?', 'graphene' ); ?></label></th>
552 <td><input type="checkbox" name="graphene_settings[show_addthis_page]" id="show_addthis_page" <?php checked( $graphene_settings['show_addthis_page'] ); ?> value="true" /></td> 560 <td><input type="checkbox" name="graphene_settings[show_addthis_page]" id="show_addthis_page" <?php checked( $graphene_settings['show_addthis_page'] ); ?> value="true" /></td>
553 </tr> 561 </tr>
554 <tr> 562 <tr>
555 <th scope="row"><label for="addthis_location"><?php _e( 'Social sharing buttons location', 'graphene' ); ?></label></th> 563 <th scope="row"><label for="addthis_location"><?php _e( 'Social sharing buttons location', 'graphene' ); ?></label></th>
556 <td> 564 <td>
557 <select name="graphene_settings[addthis_location]" id="addthis_location"> 565 <select name="graphene_settings[addthis_location]" id="addthis_location">
558 <option value="post-bottom" <?php selected( $graphene_settings['addthis_location'], 'post-bottom' ); ?>><?php _e( 'Bottom of posts', 'graphene' ); ?></option> 566 <option value="post-bottom" <?php selected( $graphene_settings['addthis_location'], 'post-bottom' ); ?>><?php _e( 'Bottom of posts', 'graphene' ); ?></option>
559 <option value="post-top" <?php selected( $graphene_settings['addthis_location'], 'post-top' ); ?>><?php _e( 'Top of posts', 'graphene' ); ?></option> 567 <option value="post-top" <?php selected( $graphene_settings['addthis_location'], 'post-top' ); ?>><?php _e( 'Top of posts', 'graphene' ); ?></option>
560 <option value="top-bottom" <?php selected( $graphene_settings['addthis_location'], 'top-bottom' ); ?>><?php _e( 'Both top and bottom', 'graphene' ); ?></option> 568 <option value="top-bottom" <?php selected( $graphene_settings['addthis_location'], 'top-bottom' ); ?>><?php _e( 'Both top and bottom', 'graphene' ); ?></option>
561 </select> 569 </select>
562 </td> 570 </td>
563 </tr> 571 </tr>
564 <tr> 572 <tr>
565 <th scope="row"> 573 <th scope="row">
566 <label for="addthis_code"><?php _e("Your social sharing button code", 'graphene' ); ?></label><br /> 574 <label for="addthis_code"><?php _e("Your social sharing button code", 'graphene' ); ?></label><br />
567 <small><?php _e( 'You can use codes from any popular social sharing sites, like Facebook, Digg, AddThis, etc.', 'graphene' ); ?></small> 575 <small><?php _e( 'You can use codes from any popular social sharing sites, like Facebook, Digg, AddThis, etc.', 'graphene' ); ?></small>
568 </th> 576 </th>
569 <td><textarea name="graphene_settings[addthis_code]" id="addthis_code" cols="60" rows="7" class="widefat code"><?php echo htmlentities(stripslashes( $graphene_settings['addthis_code'] ) ); ?></textarea><br /> 577 <td><textarea name="graphene_settings[addthis_code]" id="addthis_code" cols="60" rows="7" class="widefat code"><?php echo htmlentities(stripslashes( $graphene_settings['addthis_code'] ) ); ?></textarea><br />
570 <span class="description"><?php _e("You may use these tags to get the post's URL, title, and excerpt:", 'graphene' ); ?> <code>[#post-url]</code>, <code>[#post-title]</code>, <code>[#post-excerpt]</code></span> 578 <span class="description"><?php _e("You may use these tags to get the post's URL, title, and excerpt:", 'graphene' ); ?> <code>[#post-url]</code>, <code>[#post-title]</code>, <code>[#post-excerpt]</code></span>
571 </td> 579 </td>
572 </tr> 580 </tr>
573 </table> 581 </table>
574 </div> 582 </div>
575 </div> 583 </div>
576 584
577 585
578 <?php /* AdSense Options */ ?> 586 <?php /* AdSense Options */ ?>
579 <div class="postbox non-essential-option"> 587 <div class="postbox non-essential-option">
580 <div class="head-wrap"> 588 <div class="head-wrap">
581 <div title="Click to toggle" class="handlediv"><br /></div> 589 <div title="Click to toggle" class="handlediv"><br /></div>
582 <h3 class="hndle"><?php _e( 'Adsense Options', 'graphene' ); ?></h3> 590 <h3 class="hndle"><?php _e( 'Adsense Options', 'graphene' ); ?></h3>
583 </div> 591 </div>
584 <div class="panel-wrap inside"> 592 <div class="panel-wrap inside">
585 <table class="form-table"> 593 <table class="form-table">
586 <tr> 594 <tr>
587 <th scope="row"> 595 <th scope="row">
588 <label for="show_adsense"><?php _e( 'Show Adsense advertising', 'graphene' ); ?></label> 596 <label for="show_adsense"><?php _e( 'Show Adsense advertising', 'graphene' ); ?></label>
589 </th> 597 </th>
590 <td><input type="checkbox" name="graphene_settings[show_adsense]" id="show_adsense" <?php checked( $graphene_settings['show_adsense'] ); ?> value="true" data-toggleOptions="true" /></td> 598 <td><input type="checkbox" name="graphene_settings[show_adsense]" id="show_adsense" <?php checked( $graphene_settings['show_adsense'] ); ?> value="true" data-toggleOptions="true" /></td>
591 </tr> 599 </tr>
592 </table> 600 </table>
593 <table class="form-table<?php if ( $graphene_settings['show_adsense'] == false ) echo ' hide'; ?>"> 601 <table class="form-table<?php if ( $graphene_settings['show_adsense'] == false ) echo ' hide'; ?>">
594 <tr> 602 <tr>
595 <th scope="row"> 603 <th scope="row">
596 <label for="adsense_show_frontpage"><?php _e( 'Show ads on front page as well', 'graphene' ); ?></label> 604 <label for="adsense_show_frontpage"><?php _e( 'Show ads on front page as well', 'graphene' ); ?></label>
597 </th> 605 </th>
598 <td><input type="checkbox" name="graphene_settings[adsense_show_frontpage]" id="adsense_show_frontpage" <?php checked( $graphene_settings['adsense_show_frontpage'] ); ?> value="true" /></td> 606 <td><input type="checkbox" name="graphene_settings[adsense_show_frontpage]" id="adsense_show_frontpage" <?php checked( $graphene_settings['adsense_show_frontpage'] ); ?> value="true" /></td>
599 </tr> 607 </tr>
600 <tr> 608 <tr>
601 <th scope="row"> 609 <th scope="row">
602 <label for="adsense_code"><?php _e("Your Adsense code", 'graphene' ); ?></label> 610 <label for="adsense_code"><?php _e("Your Adsense code", 'graphene' ); ?></label>
603 </th> 611 </th>
604 <td><textarea name="graphene_settings[adsense_code]" id="adsense_code" cols="60" rows="10" class="widefat code"><?php echo htmlentities(stripslashes( $graphene_settings['adsense_code'] ) ); ?></textarea></td> 612 <td><textarea name="graphene_settings[adsense_code]" id="adsense_code" cols="60" rows="10" class="widefat code"><?php echo htmlentities(stripslashes( $graphene_settings['adsense_code'] ) ); ?></textarea></td>
605 </tr> 613 </tr>
606 </table> 614 </table>
607 </div> 615 </div>
608 </div> 616 </div>
609 617
610 618
611 <?php /* Google Analytics Options */ ?> 619 <?php /* Google Analytics Options */ ?>
612 <div class="postbox non-essential-option"> 620 <div class="postbox non-essential-option">
613 <div class="head-wrap"> 621 <div class="head-wrap">
614 <div title="Click to toggle" class="handlediv"><br /></div> 622 <div title="Click to toggle" class="handlediv"><br /></div>
615 <h3 class="hndle"><?php _e( 'Google Analytics Options', 'graphene' ); ?></h3> 623 <h3 class="hndle"><?php _e( 'Google Analytics Options', 'graphene' ); ?></h3>
616 </div> 624 </div>
617 <div class="panel-wrap inside"> 625 <div class="panel-wrap inside">
618 <table class="form-table"> 626 <table class="form-table">
619 <tr> 627 <tr>
620 <th scope="row"><label for="show_ga"><?php _e( 'Enable Google Analytics tracking', 'graphene' ); ?></label></th> 628 <th scope="row"><label for="show_ga"><?php _e( 'Enable Google Analytics tracking', 'graphene' ); ?></label></th>
621 <td><input type="checkbox" name="graphene_settings[show_ga]" id="show_ga" <?php checked( $graphene_settings['show_ga'] ); ?> value="true" data-toggleOptions="true" /></td> 629 <td><input type="checkbox" name="graphene_settings[show_ga]" id="show_ga" <?php checked( $graphene_settings['show_ga'] ); ?> value="true" data-toggleOptions="true" /></td>
622 </tr> 630 </tr>
623 </table> 631 </table>
624 <table class="form-table<?php if ( $graphene_settings['show_ga'] == false ) echo ' hide'; ?>"> 632 <table class="form-table<?php if ( $graphene_settings['show_ga'] == false ) echo ' hide'; ?>">
625 <tr> 633 <tr>
626 <td colspan="2"> 634 <td colspan="2">
627 <p><?php _e( '<strong>Note:</strong> the theme now places the Google Analytics script in the <code>&lt;head&gt;</code> element to better support the new asynchronous Google Analytics script. Please make sure you update your script to use the new asynchronous script from Google Analytics.', 'graphene' ); ?></p> 635 <p><?php _e( '<strong>Note:</strong> the theme now places the Google Analytics script in the <code>&lt;head&gt;</code> element to better support the new asynchronous Google Analytics script. Please make sure you update your script to use the new asynchronous script from Google Analytics.', 'graphene' ); ?></p>
628 </td> 636 </td>
629 </tr> 637 </tr>
630 <tr> 638 <tr>
631 <th scope="row"><label for="ga_code"><?php _e("Google Analytics tracking code", 'graphene' ); ?></label><br /> 639 <th scope="row"><label for="ga_code"><?php _e("Google Analytics tracking code", 'graphene' ); ?></label><br />
632 <small><?php _e( 'Make sure you include the full tracking code (including the <code>&lt;script&gt;</code> and <code>&lt;/script&gt;</code> tags) and not just the <code>UA-#######-#</code> code.','graphene' ); ?></small> 640 <small><?php _e( 'Make sure you include the full tracking code (including the <code>&lt;script&gt;</code> and <code>&lt;/script&gt;</code> tags) and not just the <code>UA-#######-#</code> code.','graphene' ); ?></small>
633 </th> 641 </th>
634 <td><textarea name="graphene_settings[ga_code]" id="ga_code" cols="60" rows="7" class="widefat code"><?php echo htmlentities(stripslashes( $graphene_settings['ga_code'] ) ); ?></textarea></td> 642 <td><textarea name="graphene_settings[ga_code]" id="ga_code" cols="60" rows="7" class="widefat code"><?php echo htmlentities(stripslashes( $graphene_settings['ga_code'] ) ); ?></textarea></td>
635 </tr> 643 </tr>
636 </table> 644 </table>
637 </div> 645 </div>
638 </div> 646 </div>
639 647
640 648
641 <?php /* Footer Options */ ?> 649 <?php /* Footer Options */ ?>
642 <div class="postbox non-essential-option"> 650 <div class="postbox non-essential-option">
643 <div class="head-wrap"> 651 <div class="head-wrap">
644 <div title="Click to toggle" class="handlediv"><br /></div> 652 <div title="Click to toggle" class="handlediv"><br /></div>
645 <h3 class="hndle"><?php _e( 'Footer Options', 'graphene' ); ?></h3> 653 <h3 class="hndle"><?php _e( 'Footer Options', 'graphene' ); ?></h3>
646 </div> 654 </div>
647 <div class="panel-wrap inside"> 655 <div class="panel-wrap inside">
648 <table class="form-table"> 656 <table class="form-table">
649 <tr> 657 <tr>
650 <th scope="row"><label for="show_cc"><?php _e( 'Use Creative Commons licence for content', 'graphene' ); ?></label><br /> 658 <th scope="row"><label for="show_cc"><?php _e( 'Use Creative Commons licence for content', 'graphene' ); ?></label><br />
651 <span class="cc-logo">&nbsp;</span> 659 <span class="cc-logo">&nbsp;</span>
652 <td><input type="checkbox" name="graphene_settings[show_cc]" id="show_cc" <?php checked( $graphene_settings['show_cc'] ); ?> value="true" /></td> 660 <td><input type="checkbox" name="graphene_settings[show_cc]" id="show_cc" <?php checked( $graphene_settings['show_cc'] ); ?> value="true" /></td>
653 </tr> 661 </tr>
654 <tr> 662 <tr>
655 <th scope="row"><label for="copy_text"><?php _e( "Copyright text (html allowed)", 'graphene' ); ?></label> 663 <th scope="row"><label for="copy_text"><?php _e( "Copyright text (html allowed)", 'graphene' ); ?></label>
656 <br /><small><?php _e( 'If this field is empty, the following default copyright text will be displayed:', 'graphene' ); ?></small> 664 <br /><small><?php _e( 'If this field is empty, the following default copyright text will be displayed:', 'graphene' ); ?></small>
657 <p style="background-color:#fff;padding:5px;border:1px solid #ddd;"><small><?php printf( '&copy; %1$s %2$s.', date( 'Y' ), get_bloginfo( 'name' ) ); ?></small></p> 665 <p style="background-color:#fff;padding:5px;border:1px solid #ddd;"><small><?php printf( '&copy; %1$s %2$s.', date( 'Y' ), get_bloginfo( 'name' ) ); ?></small></p>
658 </th> 666 </th>
659 <td><textarea name="graphene_settings[copy_text]" id="copy_text" cols="60" rows="7"><?php echo stripslashes( $graphene_settings['copy_text'] ); ?></textarea></td> 667 <td><textarea name="graphene_settings[copy_text]" id="copy_text" cols="60" rows="7"><?php echo stripslashes( $graphene_settings['copy_text'] ); ?></textarea></td>
660 </tr> 668 </tr>
661 <tr> 669 <tr>
662 <th scope="row"><label for="hide_copyright"><?php _e( 'Do not show copyright info', 'graphene' ); ?></label></th> 670 <th scope="row"><label for="hide_copyright"><?php _e( 'Do not show copyright info', 'graphene' ); ?></label></th>
663 <td><input type="checkbox" name="graphene_settings[hide_copyright]" id="hide_copyright" <?php checked( $graphene_settings['hide_copyright'] ); ?> value="true" /></td> 671 <td><input type="checkbox" name="graphene_settings[hide_copyright]" id="hide_copyright" <?php checked( $graphene_settings['hide_copyright'] ); ?> value="true" /></td>
664 </tr> 672 </tr>
665 <tr> 673 <tr>
666 <th scope="row"><label for="hide_return_top"><?php _e( 'Do not show the "Return to top" link', 'graphene' ); ?></label></th> 674 <th scope="row"><label for="hide_return_top"><?php _e( 'Do not show the "Return to top" link', 'graphene' ); ?></label></th>
667 <td><input type="checkbox" name="graphene_settings[hide_return_top]" id="hide_return_top" <?php checked( $graphene_settings['hide_return_top'] ); ?> value="true" /></td> 675 <td><input type="checkbox" name="graphene_settings[hide_return_top]" id="hide_return_top" <?php checked( $graphene_settings['hide_return_top'] ); ?> value="true" /></td>
668 </tr> 676 </tr>
669 </table> 677 </table>
670 </div> 678 </div>
671 </div> 679 </div>
672 680
673 681
674 <?php /* Print Options */ ?> 682 <?php /* Print Options */ ?>
675 <div class="postbox"> 683 <div class="postbox">
676 <div class="head-wrap"> 684 <div class="head-wrap">
677 <div title="Click to toggle" class="handlediv"><br /></div> 685 <div title="Click to toggle" class="handlediv"><br /></div>
678 <h3 class="hndle"><?php _e( 'Print Options', 'graphene' ); ?></h3> 686 <h3 class="hndle"><?php _e( 'Print Options', 'graphene' ); ?></h3>
679 </div> 687 </div>
680 <div class="panel-wrap inside"> 688 <div class="panel-wrap inside">
681 <table class="form-table"> 689 <table class="form-table">
682 <tr> 690 <tr>
683 <th scope="row"><label for="print_css"><?php _e( 'Enable print CSS for single posts and pages?', 'graphene' ); ?></label></th> 691 <th scope="row"><label for="print_css"><?php _e( 'Enable print CSS for single posts and pages?', 'graphene' ); ?></label></th>
684 <td><input type="checkbox" name="graphene_settings[print_css]" id="print_css" <?php checked( $graphene_settings['print_css'] ); ?> value="true" data-toggleOptions="true" /></td> 692 <td><input type="checkbox" name="graphene_settings[print_css]" id="print_css" <?php checked( $graphene_settings['print_css'] ); ?> value="true" data-toggleOptions="true" /></td>
685 </tr> 693 </tr>
686 </table> 694 </table>
687 <table class="form-table<?php if ( $graphene_settings['print_css'] == false ) echo ' hide'; ?>"> 695 <table class="form-table<?php if ( $graphene_settings['print_css'] == false ) echo ' hide'; ?>">
688 <tr> 696 <tr>
689 <th scope="row"><label for="print_button"><?php _e( 'Show print button', 'graphene' ); ?></label></th> 697 <th scope="row"><label for="print_button"><?php _e( 'Show print button', 'graphene' ); ?></label></th>
690 <td><input type="checkbox" name="graphene_settings[print_button]" id="print_button" <?php checked( $graphene_settings['print_button'] ); ?> value="true" /></td> 698 <td><input type="checkbox" name="graphene_settings[print_button]" id="print_button" <?php checked( $graphene_settings['print_button'] ); ?> value="true" /></td>
691 </tr> 699 </tr>
692 </table> 700 </table>
693 </div> 701 </div>
694 </div> 702 </div>
695 703
696 <?php } // Closes the graphene_options_general() function definition 704 <?php } // Closes the graphene_options_general() function definition
Powered by Google Project Hosting