safd
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
/**
|
||||
* Check Browser
|
||||
* Depreciated
|
||||
*
|
||||
*/
|
||||
?>
|
|
@ -0,0 +1,73 @@
|
|||
<?php
|
||||
|
||||
global $enable_custom_image_header;
|
||||
if ($enable_custom_image_header == 'yes') {
|
||||
|
||||
// Custom Image Header
|
||||
define('HEADER_TEXTCOLOR', '000');
|
||||
define('HEADER_IMAGE', '%s/images/header-blank.png'); // %s is theme dir
|
||||
define('HEADER_IMAGE_WIDTH', $custom_image_header_width);
|
||||
define('HEADER_IMAGE_HEIGHT', $custom_image_header_height);
|
||||
|
||||
function theme_admin_header_style() {
|
||||
?>
|
||||
<style type="text/css">
|
||||
#headimg {
|
||||
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
|
||||
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
|
||||
background: url(<?php header_image(); ?>) no-repeat center;
|
||||
}
|
||||
|
||||
#headimg h1, #headimg .description
|
||||
{
|
||||
text-decoration: none;
|
||||
<?php
|
||||
if ( 'blank' == get_header_textcolor() ) { ?>
|
||||
display: none;
|
||||
<?php } else {
|
||||
// Otherwise, set the color to be the user selected one
|
||||
?>
|
||||
color: #<?php header_textcolor();?>;
|
||||
<?php } ?>
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
function theme_header_style() {
|
||||
?>
|
||||
<style type="text/css">
|
||||
#header
|
||||
{
|
||||
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
|
||||
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
|
||||
background: url(<?php header_image(); ?>) no-repeat center;
|
||||
}
|
||||
|
||||
<?php
|
||||
// Has the text been hidden?
|
||||
// If so, set display to equal none
|
||||
if ( 'blank' == get_header_textcolor() ) { ?>
|
||||
#header h1, #header .description {
|
||||
display: none;
|
||||
}
|
||||
<?php } else {
|
||||
// Otherwise, set the color to be the user selected one
|
||||
?>
|
||||
#header *
|
||||
{
|
||||
color: #<?php header_textcolor();?>;
|
||||
}
|
||||
}
|
||||
<?php } ?>
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ( function_exists('add_custom_image_header') ) {
|
||||
add_custom_image_header('theme_header_style', 'theme_admin_header_style');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Raw Format Shortcode
|
||||
* depreciated
|
||||
*/
|
||||
?>
|
|
@ -0,0 +1,165 @@
|
|||
<?php
|
||||
/*
|
||||
Plugin Name: WP-PageNavi
|
||||
Plugin URI: http://lesterchan.net/portfolio/programming/php/
|
||||
Description: Adds a more advanced paging navigation to your WordPress blog.
|
||||
Version: 2.40
|
||||
Author: Lester 'GaMerZ' Chan
|
||||
Author URI: http://lesterchan.net
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
Copyright 2008 Lester Chan (email : lesterchan@gmail.com)
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
global $enable_numbered_pagination;
|
||||
if ($enable_numbered_pagination == 'yes') {
|
||||
|
||||
### Function: Page Navigation: Boxed Style Paging
|
||||
function wp_pagenavi($before = '', $after = '') {
|
||||
global $wpdb, $wp_query;
|
||||
pagenavi_init(); //Calling the pagenavi_init() function
|
||||
if (!is_single()) {
|
||||
$request = $wp_query->request;
|
||||
$posts_per_page = intval(get_query_var('posts_per_page'));
|
||||
$paged = intval(get_query_var('paged'));
|
||||
$pagenavi_options = get_option('pagenavi_options');
|
||||
$numposts = $wp_query->found_posts;
|
||||
$max_page = $wp_query->max_num_pages;
|
||||
/*
|
||||
$numposts = 0;
|
||||
if(strpos(get_query_var('tag'), " ")) {
|
||||
preg_match('#^(.*)\sLIMIT#siU', $request, $matches);
|
||||
$fromwhere = $matches[1];
|
||||
$results = $wpdb->get_results($fromwhere);
|
||||
$numposts = count($results);
|
||||
} else {
|
||||
preg_match('#FROM\s*+(.+?)\s+(GROUP BY|ORDER BY)#si', $request, $matches);
|
||||
$fromwhere = $matches[1];
|
||||
$numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere");
|
||||
}
|
||||
$max_page = ceil($numposts/$posts_per_page);
|
||||
*/
|
||||
if(empty($paged) || $paged == 0) {
|
||||
$paged = 1;
|
||||
}
|
||||
$pages_to_show = intval($pagenavi_options['num_pages']);
|
||||
$pages_to_show_minus_1 = $pages_to_show-1;
|
||||
$half_page_start = floor($pages_to_show_minus_1/2);
|
||||
$half_page_end = ceil($pages_to_show_minus_1/2);
|
||||
$start_page = $paged - $half_page_start;
|
||||
if($start_page <= 0) {
|
||||
$start_page = 1;
|
||||
}
|
||||
$end_page = $paged + $half_page_end;
|
||||
if(($end_page - $start_page) != $pages_to_show_minus_1) {
|
||||
$end_page = $start_page + $pages_to_show_minus_1;
|
||||
}
|
||||
if($end_page > $max_page) {
|
||||
$start_page = $max_page - $pages_to_show_minus_1;
|
||||
$end_page = $max_page;
|
||||
}
|
||||
if($start_page <= 0) {
|
||||
$start_page = 1;
|
||||
}
|
||||
if($max_page > 1 || intval($pagenavi_options['always_show']) == 1) {
|
||||
$pages_text = str_replace("%CURRENT_PAGE%", number_format_i18n($paged), $pagenavi_options['pages_text']);
|
||||
$pages_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pages_text);
|
||||
echo $before.'<div id="paginav"><ul>'."\n";
|
||||
switch(intval($pagenavi_options['style'])) {
|
||||
case 1:
|
||||
if(!empty($pages_text)) {
|
||||
echo '<li class="paginav-pages">'.$pages_text.'</li>';
|
||||
}
|
||||
if ($start_page >= 2 && $pages_to_show < $max_page) {
|
||||
$first_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['first_text']);
|
||||
echo '<li><a href="'.clean_url(get_pagenum_link()).'" title="'.$first_page_text.'">'.$first_page_text.'</a></li>';
|
||||
if(!empty($pagenavi_options['dotleft_text'])) {
|
||||
echo '<li class="paginav-extend">'.$pagenavi_options['dotleft_text'].'</li>';
|
||||
}
|
||||
}
|
||||
echo '<li class="paginav-previous">';
|
||||
previous_posts_link($pagenavi_options['prev_text']);
|
||||
echo '</li>';
|
||||
for($i = $start_page; $i <= $end_page; $i++) {
|
||||
if($i == $paged) {
|
||||
$current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']);
|
||||
echo '<li class="paginav-current">'.$current_page_text.'</li>';
|
||||
} else {
|
||||
$page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['page_text']);
|
||||
echo '<li><a href="'.clean_url(get_pagenum_link($i)).'" title="'.$page_text.'">'.$page_text.'</a></li>';
|
||||
}
|
||||
}
|
||||
echo '<li class="paginav-next">';
|
||||
next_posts_link($pagenavi_options['next_text'], $max_page);
|
||||
echo '</li>';
|
||||
if ($end_page < $max_page) {
|
||||
if(!empty($pagenavi_options['dotright_text'])) {
|
||||
echo '<li class="paginav-extend">'.$pagenavi_options['dotright_text'].'</li>';
|
||||
}
|
||||
$last_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['last_text']);
|
||||
echo '<li><a href="'.clean_url(get_pagenum_link($max_page)).'" title="'.$last_page_text.'">'.$last_page_text.'</a></li>';
|
||||
}
|
||||
break;
|
||||
case 2;
|
||||
echo '<form action="'.htmlspecialchars($_SERVER['PHP_SELF']).'" method="get">'."\n";
|
||||
echo '<select size="1" onchange="document.location.href = this.options[this.selectedIndex].value;">'."\n";
|
||||
for($i = 1; $i <= $max_page; $i++) {
|
||||
$page_num = $i;
|
||||
if($page_num == 1) {
|
||||
$page_num = 0;
|
||||
}
|
||||
if($i == $paged) {
|
||||
$current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']);
|
||||
echo '<option value="'.clean_url(get_pagenum_link($page_num)).'" selected="selected" class="current">'.$current_page_text."</option>\n";
|
||||
} else {
|
||||
$page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['page_text']);
|
||||
echo '<option value="'.clean_url(get_pagenum_link($page_num)).'">'.$page_text."</option>\n";
|
||||
}
|
||||
}
|
||||
echo "</select>\n";
|
||||
echo "</form>\n";
|
||||
break;
|
||||
}
|
||||
echo '</ul></div>'.$after."\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
### Function: Page Navigation Options
|
||||
add_action('activate_wp-pagenavi/wp-pagenavi.php', 'pagenavi_init');
|
||||
function pagenavi_init() {
|
||||
// Add Options
|
||||
$pagenavi_options = array();
|
||||
$pagenavi_options['pages_text'] = __('Page %CURRENT_PAGE% of %TOTAL_PAGES%','comicpress');
|
||||
$pagenavi_options['current_text'] = '%PAGE_NUMBER%';
|
||||
$pagenavi_options['page_text'] = '%PAGE_NUMBER%';
|
||||
$pagenavi_options['first_text'] = __('« First','comicpress');
|
||||
$pagenavi_options['last_text'] = __('Last »','comicpress');
|
||||
$pagenavi_options['next_text'] = __('»','comicpress');
|
||||
$pagenavi_options['prev_text'] = __('«','comicpress');
|
||||
$pagenavi_options['dotright_text'] = __('...','comicpress');
|
||||
$pagenavi_options['dotleft_text'] = __('...','comicpress');
|
||||
$pagenavi_options['style'] = 1;
|
||||
$pagenavi_options['num_pages'] = 5;
|
||||
$pagenavi_options['always_show'] = 0;
|
||||
add_option('pagenavi_options', $pagenavi_options, 'PageNavi Options');
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 5.2 KiB |
|
@ -0,0 +1,68 @@
|
|||
/*
|
||||
ThemePack Name: CockNBull
|
||||
ThemePack URI: http://commpress.org
|
||||
Description: http://cocknbull.com/
|
||||
Author: Philip M. Hofer (Frumph)
|
||||
Author URI: http://frumph.net/
|
||||
Version: 0.1.0
|
||||
.
|
||||
The CSS, XHTML and design is released under GPL v3:
|
||||
http://www.opensource.org/licenses/gpl-3.0.html
|
||||
.
|
||||
*/
|
||||
|
||||
/* STANDARD TAGS */
|
||||
body {
|
||||
background: #fff url('background.jpg') top center no-repeat;
|
||||
}
|
||||
|
||||
#page-wide {
|
||||
width: 1000px;
|
||||
}
|
||||
|
||||
#header {
|
||||
background: url('header-logo.gif') top left no-repeat;
|
||||
height: 100px;
|
||||
text-indent: -9999px;
|
||||
}
|
||||
|
||||
#comic {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#sidebar-comicright {
|
||||
float: right;
|
||||
background: #ccc;
|
||||
height: 300px;
|
||||
width: 98px;
|
||||
border: solid 1px #000;
|
||||
}
|
||||
|
||||
#menubar {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#menu {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.narrowcolumn {
|
||||
width: 560px;
|
||||
}
|
||||
|
||||
#sidebar-left, #sidebar-right {
|
||||
padding: 5px 0;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.sidebar h2 a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.sidebar a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.sidebar a:hover {
|
||||
color: #ff0000;
|
||||
}
|
After Width: | Height: | Size: 217 B |
After Width: | Height: | Size: 182 KiB |
|
@ -0,0 +1,7 @@
|
|||
<div id="moosemenubar">
|
||||
<ul>
|
||||
<li><a href="/feed/" class="menu-rss">RSS</a></li>
|
||||
<li><a href="http://www.uptocampink.com " class="menu-store">Store</a></li>
|
||||
<li><a href="mailto:info@uptocampink.com " class="menu-contact">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 628 B |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 110 KiB |
After Width: | Height: | Size: 11 KiB |
|
@ -0,0 +1,7 @@
|
|||
<strong>ThemePack</strong>: Theater Hopper<br />
|
||||
<strong>Author</strong>: Philip M. Hofer (Frumph)<br />
|
||||
<strong>Layouts</strong>: standard, V<br />
|
||||
<br />
|
||||
<strong>Installation Notes</strong>:<br />
|
||||
None
|
||||
<br />
|
After Width: | Height: | Size: 528 B |
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
ThemePack Name: Theatre Hopper
|
||||
ThemePack URI: http://comicpress.org
|
||||
Description: for http://theaterhopper.com/
|
||||
Author: Philip M. Hofer (Frumph)
|
||||
Author URI: http://frumph.net/
|
||||
Version: 0.1.0
|
||||
.
|
||||
The CSS, XHTML and design is released under GPL v3:
|
||||
http://www.opensource.org/licenses/gpl-3.0.html
|
||||
.
|
||||
*/
|
||||
|
||||
/* STANDARD TAGS */
|
||||
|
||||
|
||||
body {
|
||||
background: #9a0000;
|
||||
}
|
||||
|
||||
#page {
|
||||
width: 972px;
|
||||
background: url('header.jpg') top center repeat-y;
|
||||
}
|
||||
|
||||
#header {
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
#content-wrapper {
|
||||
background: url('background.jpg') top center 100px repeat-y;
|
||||
padding: 0 14px;
|
||||
}
|
||||
|
||||
.narrowcolumn {
|
||||
width: 480px;
|
||||
}
|
||||
|
||||
|
||||
#footer {
|
||||
height: 260px;
|
||||
background: url('footer.jpg') top center no-repeat;
|
||||
}
|
After Width: | Height: | Size: 338 B |