Ejemplo n.º 1
0
function theme_wplitho_foot()
{
    ?>
<script>
jQuery( function( $ ) {
	if ( $( window ).width() > 500 ) {
		$( '#main' ).hpanelweb( 'article.post', {
			visibleSiblings: $( '#wpadminbar, #header' ),
			padding: <?php 
    echo json_encode(WPLithoThemeOptions::option('gap'));
    ?>
,
			leftOverlap: <?php 
    echo json_encode(WPLithoThemeOptions::option('overlap'));
    ?>
,
			unifiedScroll: true
		} );
		// $( 'html, body' ).css( 'overflow', 'hidden' );
	}
	$( '#nav .icon' ).click( function() {
		$( '#nav' ).toggleClass( 'visible' );
	} );
} );
</script>
<?php 
}
Ejemplo n.º 2
0
 public static function singleton()
 {
     if (is_null(self::$singleton)) {
         self::$singleton = new self();
     }
     return self::$singleton;
 }
Ejemplo n.º 3
0
    public function metabox()
    {
        global $post_id;
        $data = get_post_meta($post_id, 'wplitho', true);
        if (!isset($data['show_title'])) {
            $data['show_title'] = WPLithoThemeOptions::option('show_title');
        }
        wp_nonce_field(plugin_basename(__FILE__), 'wplitho_noncename');
        ?>
<div>
	<style type="text/css" scoped>
		#wplitho-options-table {
			width: 100%;
			margin: 0;
			background-color: #F9F9F9;
			border: 1px solid #DFDFDF;
			border-spacing: 8px;
			-moz-border-radius: 3px;
			-webkit-border-radius: 3px;
			border-radius: 3px;
			font-size: 1.1em;
		}
		#wplitho-options-table th {
			text-align: right;
			vertical-align: middle;
			font-weight: normal;
		}
	</style>
	<table id="wplitho-options-table">
		<tr>
			<th scope="row"><?php 
        _e('Show Title', 'wplitho');
        ?>
</th>
			<td>
				<input type="checkbox" name="wplitho[show_title]" <?php 
        echo checked(1, @$data['show_title'], false);
        ?>
>
			</td>
		</tr>
		<tr>
			<th scope="row"><?php 
        _e('Content Width', 'wplitho');
        ?>
</th>
			<td>
				<input type="text" name="wplitho[width]" placeholder="default" value="<?php 
        echo esc_attr(@$data['width']);
        ?>
">
			</td>
		</tr>
	</table>
</div>
<?php 
    }
Ejemplo n.º 4
0
>
<div id="wrapper">

	<div id="header">

		<div id="home">
			<a href="<?php 
echo esc_attr(home_url());
?>
"></a>
		</div>

		<div id="nav">
			<span class="icon"></span>
<?php 
if (WPLithoThemeOptions::option('anchor_menu')) {
    theme_hweb_anchor_menu();
} else {
    wp_nav_menu(array('theme_location' => 'primary'));
}
?>
		</div>

		<div id="logo"><?php 
bloginfo('sitename');
?>
</div>

		<div style="clear: both;"></div>
	</div>
Ejemplo n.º 5
0
<?php 
        }
        ?>
			<?php 
        the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'wplitho'));
        ?>
			<?php 
        wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'wplitho'), 'after' => '</div>'));
        ?>
		</div><!-- .entry-content -->
<?php 
    }
    ?>

<?php 
    if (WPLithoThemeOptions::option('show_meta')) {
        ?>
		<div class="entry-utility">
			<?php 
        if (count(get_the_category())) {
            ?>
				<span class="cat-links">
					<?php 
            printf(__('<span class="%1$s">Posted in</span> %2$s', 'wplitho'), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list(', '));
            ?>
				</span>
				<span class="meta-sep">|</span>
			<?php 
        }
        ?>
			<?php