Skip to content

Commit

Permalink
fixes css
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrauch committed Sep 30, 2013
1 parent 74942a0 commit a6b434e
Show file tree
Hide file tree
Showing 9 changed files with 297 additions and 93 deletions.
3 changes: 1 addition & 2 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<?php if ( have_posts() ) : ?>

<header class="page-header">
<header class="page-header center-content">
<h1 class="page-title">
<?php
if ( is_category() ) {
Expand Down Expand Up @@ -92,5 +92,4 @@
</div><!-- #content .site-content -->
</section><!-- #primary .content-area -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
1 change: 0 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/images/favicon.ico" >


<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Expand Down
167 changes: 85 additions & 82 deletions image.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,95 +15,98 @@
<?php while ( have_posts() ) : the_post(); ?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>

<div class="entry-meta">
<?php
$metadata = wp_get_attachment_metadata();
printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'symbol' ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
wp_get_attachment_url(),
$metadata['width'],
$metadata['height'],
get_permalink( $post->post_parent ),
get_the_title( $post->post_parent )
);
?>
<?php edit_post_link( __( 'Edit', 'symbol' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->

<nav id="image-navigation" class="site-navigation">
<span class="previous-image"><?php previous_image_link( false, __( '&larr; Previous', 'symbol' ) ); ?></span>
<span class="next-image"><?php next_image_link( false, __( 'Next &rarr;', 'symbol' ) ); ?></span>
</nav><!-- #image-navigation -->
</header><!-- .entry-header -->

<div class="entry-content">

<div class="entry-attachment">
<div class="attachment">
<div class="center-content">

<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>

<div class="entry-meta">
<?php
/**
* Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
* or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
*/
$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
foreach ( $attachments as $k => $attachment ) {
if ( $attachment->ID == $post->ID )
break;
}
$k++;
// If there is more than 1 attachment in a gallery
if ( count( $attachments ) > 1 ) {
if ( isset( $attachments[ $k ] ) )
// get the URL of the next image attachment
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
else
// or get the URL of the first image attachment
$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
} else {
// or, if there's only 1 image, get the URL of the image
$next_attachment_url = wp_get_attachment_url();
}
$metadata = wp_get_attachment_metadata();
printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'symbol' ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
wp_get_attachment_url(),
$metadata['width'],
$metadata['height'],
get_permalink( $post->post_parent ),
get_the_title( $post->post_parent )
);
?>

<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
$attachment_size = apply_filters( 'symbol_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
echo wp_get_attachment_image( $post->ID, $attachment_size );
?></a>
</div><!-- .attachment -->

<?php if ( ! empty( $post->post_excerpt ) ) : ?>
<div class="entry-caption">
<?php the_excerpt(); ?>
</div><!-- .entry-caption -->
<?php edit_post_link( __( 'Edit', 'symbol' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->

<nav id="image-navigation" class="site-navigation">
<span class="previous-image"><?php previous_image_link( false, __( '&larr; Previous', 'symbol' ) ); ?></span>
<span class="next-image"><?php next_image_link( false, __( 'Next &rarr;', 'symbol' ) ); ?></span>
</nav><!-- #image-navigation -->
</header><!-- .entry-header -->

<div class="entry-content">

<div class="entry-attachment">
<div class="attachment">
<?php
/**
* Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
* or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
*/
$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
foreach ( $attachments as $k => $attachment ) {
if ( $attachment->ID == $post->ID )
break;
}
$k++;
// If there is more than 1 attachment in a gallery
if ( count( $attachments ) > 1 ) {
if ( isset( $attachments[ $k ] ) )
// get the URL of the next image attachment
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
else
// or get the URL of the first image attachment
$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
} else {
// or, if there's only 1 image, get the URL of the image
$next_attachment_url = wp_get_attachment_url();
}
?>

<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
$attachment_size = apply_filters( 'symbol_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
echo wp_get_attachment_image( $post->ID, $attachment_size );
?></a>
</div><!-- .attachment -->

<?php if ( ! empty( $post->post_excerpt ) ) : ?>
<div class="entry-caption">
<?php the_excerpt(); ?>
</div><!-- .entry-caption -->
<?php endif; ?>
</div><!-- .entry-attachment -->

<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'symbol' ), 'after' => '</div>' ) ); ?>

</div><!-- .entry-content -->

<footer class="entry-meta">
<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'symbol' ), get_trackback_url() ); ?>
<?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
<?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'symbol' ), get_trackback_url() ); ?>
<?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'symbol' ); ?>
<?php elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed ?>
<?php _e( 'Both comments and trackbacks are currently closed.', 'symbol' ); ?>
<?php endif; ?>
</div><!-- .entry-attachment -->

<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'symbol' ), 'after' => '</div>' ) ); ?>

</div><!-- .entry-content -->

<footer class="entry-meta">
<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'symbol' ), get_trackback_url() ); ?>
<?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
<?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'symbol' ), get_trackback_url() ); ?>
<?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'symbol' ); ?>
<?php elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed ?>
<?php _e( 'Both comments and trackbacks are currently closed.', 'symbol' ); ?>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'symbol' ), ' <span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
<?php edit_post_link( __( 'Edit', 'symbol' ), ' <span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</div>
</article><!-- #post-<?php the_ID(); ?> -->

<?php comments_template(); ?>

<?php endwhile; // end of the loop. ?>
<?php comments_template(); ?>

</div><!-- #content .site-content -->
</div><!-- #primary .content-area .image-attachment -->
Expand Down
Binary file removed images/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion inc/licence.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function licence_do_page() {
</h2>

<?php if (!$enter_licence): ?>
<iframe src="http://themeskult.com/store/" width="100%" height="1000" ></iframe>
<iframe src="http://themeskult.com/store/" width="100%" height="550" ></iframe>
<?php endif ?>

<?php if ($enter_licence): ?>
Expand Down
Binary file removed js/.DS_Store
Binary file not shown.
177 changes: 177 additions & 0 deletions options.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
<?php
/**
* A unique identifier is defined to store the options in the database and reference them from the theme.
* By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
* If the identifier changes, it'll appear as if the options have been reset.
*
*/

function optionsframework_option_name() {

// This gets the theme name from the stylesheet (lowercase and without spaces)
$themename = get_option( 'stylesheet' );
$themename = preg_replace("/\W/", "_", strtolower($themename) );

$optionsframework_settings = get_option('optionsframework');
$optionsframework_settings['id'] = $themename;
update_option('optionsframework', $optionsframework_settings);

// echo $themename;
}

/**
* Defines an array of options that will be used to generate the settings page and be saved in the database.
* When creating the 'id' fields, make sure to use all lowercase and no spaces.
*
*/

function optionsframework_options() {

// Test data
$test_array = array(
'one' => __('One', 'options_check'),
'two' => __('Two', 'options_check'),
'three' => __('Three', 'options_check'),
'four' => __('Four', 'options_check'),
'five' => __('Five', 'options_check')
);

// Multicheck Array
$multicheck_array = array(
'one' => __('French Toast', 'options_check'),
'two' => __('Pancake', 'options_check'),
'three' => __('Omelette', 'options_check'),
'four' => __('Crepe', 'options_check'),
'five' => __('Waffle', 'options_check')
);

// Multicheck Defaults
$multicheck_defaults = array(
'one' => '1',
'five' => '1'
);

// Background Defaults
$background_defaults = array(
'color' => '',
'image' => '',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );

// Typography Defaults
$typography_defaults = array(
'size' => '15px',
'face' => 'georgia',
'style' => 'bold',
'color' => '#bada55' );

// Typography Options
$typography_options = array(
'sizes' => array( '6','12','14','16','20' ),
'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ),
'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ),
'color' => false
);

// Pull all the categories into an array
$options_categories = array();
$options_categories_obj = get_categories();
foreach ($options_categories_obj as $category) {
$options_categories[$category->cat_ID] = $category->cat_name;
}

// Pull all tags into an array
$options_tags = array();
$options_tags_obj = get_tags();
foreach ( $options_tags_obj as $tag ) {
$options_tags[$tag->term_id] = $tag->name;
}

// Pull all the pages into an array
$options_pages = array();
$options_pages_obj = get_pages('sort_column=post_parent,menu_order');
$options_pages[''] = 'Select a page:';
foreach ($options_pages_obj as $page) {
$options_pages[$page->ID] = $page->post_title;
}

// If using image radio buttons, define a directory path
$imagepath = get_template_directory_uri() . '/images/';

$options = array();

$options[] = array(
'name' => __('Basic Settings', 'options_check'),
'type' => 'heading');

$options[] = array(
'name' => __('Background', 'options_check'),
'desc' => __('Change the background CSS.', 'options_check'),
'id' => 'background',
'std' => $background_defaults,
'type' => 'background' );

$options[] = array(
'name' => __('Container Width', 'options_check'),
'desc' => __('Container width in pixels.', 'options_check'),
'id' => 'container_width',
'std' => '560px',
'class' => 'mini',
'type' => 'text');

$options[] = array(
'name' => __('Header Image', 'options_check'),
'desc' => __('This creates a full size uploader that previews the image.', 'options_check'),
'id' => 'header_background_image',
'type' => 'upload');

$options[] = array(
'name' => __('Avatar Image', 'options_check'),
'desc' => __('This creates a full size uploader that previews the image.', 'options_check'),
'id' => 'avatar_image',
'type' => 'upload');

$options[] = array(
'name' => __('Biography', 'options_check'),
'desc' => __('Default Biography.', 'options_check'),
'id' => 'biography',
'std' => 'Default Biography',
'type' => 'textarea');


$options[] = array(
'name' => __('Navigation Background Color', 'options_check'),
'desc' => __('No color selected by default.', 'options_check'),
'id' => 'navigation_background_color',
'std' => '',
'type' => 'color' );

$options[] = array(
'name' => __('Navigation Text Color', 'options_check'),
'desc' => __('No color selected by default.', 'options_check'),
'id' => 'navigation_text_color',
'std' => '',
'type' => 'color' );

$options[] = array(
'name' => __('Biography Background Color', 'options_check'),
'desc' => __('No color selected by default.', 'options_check'),
'id' => 'biography_background_color',
'std' => '',
'type' => 'color' );

$options[] = array(
'name' => __('Biography Box Text Color', 'options_check'),
'desc' => __('No color selected by default.', 'options_check'),
'id' => 'biography_text_color',
'std' => '',
'type' => 'color' );

$options[] = array(
'name' => __('Footer Text', 'options_check'),
'id' => 'footer_text',
'std' => 'Footer Text',
'type' => 'text');
return $options;
}
Loading

0 comments on commit a6b434e

Please sign in to comment.