コード例 #1
0
ファイル: loop.php プロジェクト: carriercomm/wordpress-2
						<p><?php 
        the_author_meta('description');
        ?>
</p>
					</div>
				</div>
			<?php 
    }
    ?>
		</div>
		<?php 
    get_template_part('meta', 'loop');
    ?>
	</div>

	<?php 
    if (is_single()) {
        $meta = fastblog_get_option('post/meta');
        if ($meta['tags']) {
            the_tags('<div class="tags">', '', '</div>');
        }
    }
    ?>
	<?php 
    if (is_singular()) {
        comments_template();
    }
    ?>

<?php 
}
コード例 #2
0
ファイル: header.php プロジェクト: carriercomm/wordpress-2
				<!-- Menu -->
				<div id="menu" class="container">
					<?php 
if (fastblog_get_option('search')) {
    ?>
						<form action="<?php 
    echo home_url('/');
    ?>
" method="get">
							<div id="search" class="input">
								<input type="text" name="s" value="<?php 
    _e('search', 'fastblog');
    ?>
" />
								<input type="submit" value="" />
							</div>
						</form>
					<?php 
}
?>
					<?php 
wp_nav_menu(array('theme_location' => 'nav-menu-main', 'container' => '', 'menu_class' => '', 'fallback_cb' => create_function('', 'fastblog_nav_menu("' . fastblog_get_option('menu/content/main') . '");')));
?>
				</div>
				<!-- // Menu -->

				<div class="line full"></div>

				<!-- Main section -->
				<div id="main" class="container">
コード例 #3
0
ファイル: footer.php プロジェクト: carriercomm/wordpress-2
				<div class="line full"></div>

				<!-- Footer -->
				<div id="footer" class="container">
					<p id="copyright">
						<?php 
if ($footer = fastblog_get_option('footer')) {
    echo $footer;
} else {
    printf('&copy; %s <a href="%s" title="%s" rel="home">%s</a>', date('Y'), home_url('/'), esc_attr(get_bloginfo('name')), get_bloginfo('name'));
}
?>
					</p>
					<?php 
wp_nav_menu(array('theme_location' => 'nav-menu-footer', 'container' => '', 'menu_class' => '', 'depth' => 1, 'fallback_cb' => create_function('', 'fastblog_nav_menu("' . fastblog_get_option('menu/content/footer') . '", 1);')));
?>
				</div>
				<!-- // Footer -->

			</div>
			<!-- // Inner wrapper -->

		</div>
		<!-- // Wrapper -->

		<?php 
wp_footer();
?>

	</body>
コード例 #4
0
ファイル: script.php プロジェクト: carriercomm/wordpress-2
<script type="text/javascript">
	<?php 
echo file_get_contents(TEMPLATEPATH . '/schemes/' . fastblog_get_option('scheme') . '/style.js');
?>
	fancybox = {
		"enabled":    <?php 
echo tb_bool_to_string(fastblog_get_option('fancybox/enabled'));
?>
,
		"show_title": <?php 
echo tb_bool_to_string(fastblog_get_option('fancybox/show_title'));
?>
	};
	<?php 
$typography = array();
foreach (fastblog_get_option('typography/fonts') as $element => $font) {
    if (!$font) {
        continue;
    }
    list(, $fontfamily) = explode('|', $font, 2);
    $typography['fonts'][$element] = $fontfamily;
}
$typography['custom_selector'] = fastblog_get_option('typography/custom_selector');
?>
	typography = <?php 
echo json_encode($typography);
?>
;
</script>
<?php 
echo tb_script_minify(ob_get_clean()) . "\n";
コード例 #5
0
 * @package WordPress
 * @subpackage Fast_Blog_Theme
 * @since Fast Blog 1.0
 */
?>

<?php 
get_header();
?>

<?php 
get_sidebar();
?>

<div id="content" class="<?php 
echo fastblog_get_option('sidebar') == 'right' ? 'left' : 'right';
?>
">

	<?php 
if (have_posts()) {
    the_post();
    ?>

		<div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('post');
    ?>
>
コード例 #6
0
ファイル: style.php プロジェクト: carriercomm/wordpress-2
<?php

/**
 * @package WordPress
 * @subpackage Fast_Blog_Theme
 * @since Fast Blog 1.0
 */
?>

<?php 
ob_start();
?>
<style type="text/css">
	#header { height: <?php 
echo $header_height = fastblog_get_option('header/height');
?>
px; }
	#logo, #tagline { line-height: <?php 
echo $header_height;
?>
px; }
	#logo img { max-height: <?php 
echo $header_height;
?>
px; }
	#logo span { font-size: <?php 
echo round($header_height * 1.1);
?>
px; }
	<?php 
fastblog_option('custom_css');
コード例 #7
0
ファイル: meta.php プロジェクト: carriercomm/wordpress-2
<?php

/**
 * @package WordPress
 * @subpackage Fast_Blog_Theme
 * @since Fast Blog 1.0
 */
?>

<?php 
global $authordata;
$meta = fastblog_get_option(is_page() ? 'page/meta' : 'post/meta');
?>

<div class="meta">
	<?php 
if ($meta['date']) {
    ?>
		<?php 
    if (is_page()) {
        ?>
			<a class="date"><?php 
        the_modified_date();
        ?>
</a>
		<?php 
    } else {
        ?>
			<a href="<?php 
        echo call_user_func_array('get_month_link', explode(' ', get_the_date('Y m')));
        ?>
コード例 #8
0
ファイル: functions.php プロジェクト: carriercomm/wordpress-2
/**
 * WordPress header
 */
function fastblog_wp_head()
{
    if ($custom_js = fastblog_get_option('custom_js')) {
        $custom_js = "<script type=\"text/javascript\">\n/* <![CDATA[ */\n{$custom_js}\n/* ]]> */\n</script>\n";
    }
    ob_start();
    wp_head();
    $wp_head = ob_get_clean();
    echo fastblog_delete_tumblog_styles($wp_head) . "\n" . $custom_js . fastblog_get_option('analytics');
}
コード例 #9
0
ファイル: comment.php プロジェクト: carriercomm/wordpress-2
}
?>
		<?php 
comment_text();
?>
		<div class="tools">
			<?php 
$comment_reply_args = array('reply_text' => __('reply', 'fastblog'), 'depth' => $depth);
comment_reply_link(array_merge($args, $comment_reply_args));
edit_comment_link(__('edit', 'fastblog'), $depth < $args['max_depth'] ? ' | ' : '');
?>
		</div>
	</div>
	<div class="meta">
		<?php 
echo get_avatar($comment, 32, get_option('avatar_default') == 'mystery' ? get_bloginfo('stylesheet_directory') . '/schemes/' . fastblog_get_option('scheme') . '/images/avatar.png' : '');
?>
		<div>
			<p><?php 
comment_author_link();
?>
</p>
			<p><?php 
if (get_comment_date('Y.m.d') == date('Y.m.d')) {
    comment_time();
} else {
    comment_date();
}
?>
</p>
		</div>
コード例 #10
0
ファイル: options.php プロジェクト: carriercomm/wordpress-2
		<?php 
tb_options_open_section(__('Advanced', 'fastblog'));
tb_options_field(__('Custom CSS code', 'fastblog'), '', 'textarea_code', 'fastblog[custom_css]', fastblog_get_option('custom_css'));
tb_options_field(__('Custom JavaScript code', 'fastblog'), '', 'textarea_code', 'fastblog[custom_js]', fastblog_get_option('custom_js'));
tb_options_field(__('Bit.ly login', 'fastblog'), '', 'input_code', 'fastblog[bitly][login]', fastblog_get_option('bitly/login'), '(' . __('empty = default built-in', 'fastblog') . ')');
tb_options_field(__('Bit.ly API key', 'fastblog'), '', 'input_code', 'fastblog[bitly][api_key]', fastblog_get_option('bitly/api_key'), '(' . __('empty = default built-in', 'fastblog') . ')');
tb_options_close_section();
?>
		<!-- // Advanced options -->

		<!-- Other options -->
		<?php 
tb_options_open_section(__('Other', 'fastblog'));
tb_options_field(__('Footer text', 'fastblog'), '', 'input_code', 'fastblog[footer]', fastblog_get_option('footer'), '(' . __('empty = auto', 'fastblog') . ')');
tb_options_field(__('Alternative feed URL', 'fastblog'), __('E.g. FeedBurner.', 'fastblog'), 'input_code', 'fastblog[feed]', fastblog_get_option('feed'));
tb_options_field(__('Google Analytics code', 'fastblog'), __('Or another tracking code.', 'fastblog'), 'textarea_code', 'fastblog[analytics]', fastblog_get_option('analytics'));
tb_options_close_section();
?>
		<!-- // Other options -->

		<!-- Submit -->
		<p class="submit">
			<input type="submit" class="button-primary" value="<?php 
_e('Save Changes');
?>
" />
		</p>
		<!-- // Submit -->

		<!-- Fixed submit -->
		<div class="submit-fixed">