.. little fixes *again*
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
a48e7d6968
commit
3681cc6365
|
@ -292,16 +292,17 @@ function comicpress_admin() {
|
||||||
<?php break;
|
<?php break;
|
||||||
case "comicpress-graphicnav_directory":
|
case "comicpress-graphicnav_directory":
|
||||||
$current_gnav_directory = get_option($value['id']);
|
$current_gnav_directory = get_option($value['id']);
|
||||||
if (empty($current_directory)) $current_directory = 'scifi';
|
if (empty($current_gnav_directory)) $current_gnav_directory = 'default';
|
||||||
|
|
||||||
$count = count($results = glob(get_template_directory() . '/images/nav/'.$current_gnav_directory.'/*'));
|
$count = count($results = glob(get_template_directory() . '/images/nav/'.$current_gnav_directory.'/*'));
|
||||||
$gnav_directories = glob(get_template_directory() . '/images/nav/*');
|
$gnav_directories = glob(get_template_directory() . '/images/nav/*');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><strong>Graphic Navigation Directory</strong><br /><br />Choose a directory to get the graphic navigation styling from.<br /></th>
|
<th scope="row"><strong>Graphic Navigation Directory</strong><br /><br />Choose a directory to get the graphic navigation styling from.<br /></th>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
<label>
|
<label>
|
||||||
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
|
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
|
||||||
<?php
|
<?php
|
||||||
foreach ($gnav_directories as $gnav_dirs) {
|
foreach ($gnav_directories as $gnav_dirs) {
|
||||||
if (is_dir($gnav_dirs)) {
|
if (is_dir($gnav_dirs)) {
|
||||||
|
@ -310,11 +311,12 @@ function comicpress_admin() {
|
||||||
<?php }
|
<?php }
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
<br />
|
<br />
|
||||||
|
<?php echo get_template_directory() . '/images/nav/'; ?>
|
||||||
Graphic Navigation directories are found in your theme directory/images/nav/* to create your own custom graphic navigation menu buttons just create a directory
|
Graphic Navigation directories are found in your theme directory/images/nav/* to create your own custom graphic navigation menu buttons just create a directory
|
||||||
under images/nav/ and place your image files inside of it and create a navstyle.css file to determine the style of your navigation display.
|
under images/nav/ and place your image files inside of it and create a navstyle.css file to determine the style of your navigation display.
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -80,7 +80,7 @@ if (get_option('upload_path') !== false) {
|
||||||
extract($variables_to_extract);
|
extract($variables_to_extract);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($graphicnav_directory)) $graphicnav_directory = 'scifi';
|
if (empty($graphicnav_directory)) $graphicnav_directory = 'default';
|
||||||
if (empty($moods_directory)) $moods_directory = 'default';
|
if (empty($moods_directory)) $moods_directory = 'default';
|
||||||
|
|
||||||
function is_cp_theme_style($choices) {
|
function is_cp_theme_style($choices) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ Theme URI: http://comicpress.org
|
||||||
Description: Publish a comic with WordPress. <a href="http://comicpress.org">Visit the ComicPress Website.</a>
|
Description: Publish a comic with WordPress. <a href="http://comicpress.org">Visit the ComicPress Website.</a>
|
||||||
Author: Tyler Martin, John Bintz, Philip M. Hofer
|
Author: Tyler Martin, John Bintz, Philip M. Hofer
|
||||||
Author URI: http://mindfaucet.com/
|
Author URI: http://mindfaucet.com/
|
||||||
Version: 2.8.0.7
|
Version: 2.8.0.8
|
||||||
.
|
.
|
||||||
The CSS, XHTML and design is released under GPL v3:
|
The CSS, XHTML and design is released under GPL v3:
|
||||||
http://www.opensource.org/licenses/gpl-3.0.html
|
http://www.opensource.org/licenses/gpl-3.0.html
|
||||||
|
|
Loading…
Reference in New Issue