Skip to content

Commit

Permalink
Fixed new window/model bug, ready for beta
Browse files Browse the repository at this point in the history
  • Loading branch information
sigel committed Jan 30, 2014
1 parent 0adc53c commit 6136f8d
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 19 deletions.
6 changes: 2 additions & 4 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
*/
get_header(); ?>

<h2><?php _e('Error 404 - Page Not Found','html5reset'); ?></h2>
<div class="wrap"><h1>Error 404 - Page Not Found</h1></div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
<?php get_footer(); ?>
2 changes: 1 addition & 1 deletion category.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<h3 class="cat"><?php single_cat_title(); ?></h3>
<ul class="cat">
<?php while ( have_posts() ) : the_post(); ?>
<li<?php if ( !has_post_thumbnail() ) { echo ' class="noimg"'; } ?>><a <?php if ( get_post_meta($post->ID, 'sp_modal') == "on" ) { ?><?php echo 'class="modal" data-fancybox-type="iframe" ' ?><?php } ?>href="<?php if ( get_post_meta($post->ID, 'sp_url') == "on" ) { ?><?php echo get_post_meta($post->ID, 'sp_url', true); ?><?php } ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" <?php if ( get_post_meta($post->ID, 'sp_new') == "on" ) { ?><?php echo 'target="_blank"'; ?><?php } ?>><?php if ( has_post_thumbnail() ) { echo get_the_post_thumbnail($post_id, 'thumbnail'); } ?><span><?php the_title(); ?></span></a></li>
<li<?php if ( !has_post_thumbnail() ) { echo ' class="noimg"'; } ?>><a <?php if ( get_post_meta($post->ID, 'sp_modal', true) == "on" ) { ?><?php echo 'class="modal" data-fancybox-type="iframe" ' ?><?php } ?>href="<?php if ( get_post_meta($post->ID, 'sp_url', true) ) { ?><?php echo get_post_meta($post->ID, 'sp_url', true); ?><?php } ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" <?php if ( get_post_meta($post->ID, 'sp_new', true) == "on" ) { ?><?php echo 'target="_blank"'; ?><?php } ?>><?php if ( has_post_thumbnail() ) { echo get_the_post_thumbnail($post_id, 'thumbnail'); } ?><span><?php the_title(); ?></span></a></li>
<?php endwhile; else: ?>
<h1>Sorry, No Bookmarks Available.</h1>
<?php endif; ?>
Expand Down
27 changes: 17 additions & 10 deletions css/mobile.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,10 @@ label,input[type="button"],input[type="submit"],input[type="image"],button{curso
/* ------------------------------------
Framework
------------------------------------- */
html, body { height: 100%; }
body {
font-family: 'Helvetica Neue', 'tahoma', san-serif;
background: rgb(255,255,255); /* Old browsers */
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(239,239,239,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(239,239,239,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#efefef',GradientType=0 ); /* IE6-9 */
background-color: #fff;
background-color: #eee;
color: #333;
font-size: 16px;
font-size: 1em;
Expand All @@ -39,6 +32,19 @@ a:hover, a:focus { color: #CCC; text-decoration: underline; }
h1, h2 { font-family: 'Roboto', sans-serif; font-weight: 500; }
h3, h4, h5, h6 { font-family: 'Raleway', sans-serif; font-weight: 400; }

.page-wrap {
min-height: 100%;
/* equal to footer height */
margin-bottom: -200px;
}
.page-wrap:after {
content: "";
display: block;
}
.page-wrap:after {
height: 200px;
}

.wrap { width: 96%; max-width: 1600px; padding: 0 2%; margin: 0 auto; }

/* ------------------------------------
Expand Down Expand Up @@ -206,7 +212,8 @@ span.rss-date {
footer {
clear: both;
padding: 25px 0;
overflow: auto;
height: 150px;
overflow: hidden;
border-top: 6px solid #8bcc33;
background: #000;
-webkit-box-shadow: 0 0 27px rgba(0,0,0,0.25);
Expand Down
1 change: 1 addition & 0 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
</div> <!-- .page-wrap -->
<footer>
<div class="wrap">
<div class="copyright"><p><a href="http://www.startpress.org">StartPress</a> Start Page (<? echo date('Y'); ?>) Powered by <a href="http://www.wordpress.org">WordPress</a></p></div>
Expand Down
3 changes: 2 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<html class="no-js" lang="en">
<head>
<title><?php bloginfo('name'); ?></title>
<title><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?></title>
<!--[if IE 6]><![endif]--> <!-- http://bit.ly/abHSdO -->
<!-- Meta -->
<meta charset="utf-8">
Expand Down Expand Up @@ -113,3 +113,4 @@
</div>
</div><!--Wrap-->
</header>
<div class="page-wrap">
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
echo '<ul class="cat">';
foreach($posts as $post) {
setup_postdata($post); ?>
<li<?php if ( !has_post_thumbnail() ) { echo ' class="noimg"'; } ?>><a <?php if ( get_post_meta($post->ID, 'sp_modal')) { ?><?php echo 'class="modal" data-fancybox-type="iframe" ' ?><?php } ?>href="<?php if ( get_post_meta($post->ID, 'sp_url') ) : ?><?php echo get_post_meta($post->ID, 'sp_url', true); ?><?php endif; ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" <?php if ( get_post_meta($post->ID, 'sp_new')) { ?><?php echo 'target="_blank"'; ?><?php } ?>><?php if ( has_post_thumbnail() ) { echo get_the_post_thumbnail($post_id, 'thumbnail'); } ?><span><?php the_title(); ?></span></a></li>
<li<?php if ( !has_post_thumbnail() ) { echo ' class="noimg"'; } ?>><a <?php if (get_post_meta($post->ID, 'sp_modal', true) == "on" ) { ?><?php echo 'class="modal" data-fancybox-type="iframe" ' ?><?php } ?>href="<?php if ( get_post_meta($post->ID, 'sp_url') ) : ?><?php echo get_post_meta($post->ID, 'sp_url', true); ?><?php endif; ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" <?php if (get_post_meta($post->ID, 'sp_new', true) == "on") { ?><?php echo 'target="_blank"'; ?><?php } ?>><?php if ( has_post_thumbnail() ) { echo get_the_post_thumbnail($post_id, 'thumbnail'); } ?><span><?php the_title(); ?></span></a></li>
<?php
} // foreach($posts
echo '</ul>';
Expand Down
2 changes: 1 addition & 1 deletion page.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
query_posts($args); if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php edit_post_link(__('Edit this entry.'), '<p>', '</p>'); ?>
<?php edit_post_link(__('<span class="icon-cog">EDIT PAGE</span>'), '<h2>', '</h2>'); ?>
<?php endwhile; endif; ?>
</div><!-- .content -->
<?php get_sidebar(); ?>
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Theme URI: http://www.startpress.org
Description: Wordpress Start Page Theme
Author: Sigel
Author URI: http://www.sigelnet.com
Version: 0.2
Version: 0.3
*/

0 comments on commit 6136f8d

Please sign in to comment.