Ejemplo n.º 1
0
 static function settings()
 {
     $theme_fonts = get_option('theme_fonts');
     if (!is_array($theme_fonts)) {
         $theme_fonts = array();
     }
     echo '<div class="wrap">' . "\n";
     echo '  <form method="post" action="options.php">' . "\n";
     echo '      <h2>Google Fonts</h2>' . "\n" . '      <hr style="margin: 20px 0;border: 0; height: 1px; background:#ddd; "/>' . "\n";
     echo '      <a style="font-size:0.8em;position: relative;top: -15px;" href="https://www.google.com/fonts">https://www.google.com/fonts</a>' . "\n";
     bb_theme::field(array('title' => 'Primary Font', 'group' => 'theme_fonts', 'name' => ns_ . 'gf1', 'type' => 'text', 'size' => '100%', 'max_width' => '600px', 'placeholder' => 'http://...', 'default' => 'http://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,800,700,900'));
     bb_theme::field(array('title' => 'Secondary Font', 'group' => 'theme_fonts', 'name' => ns_ . 'gf2', 'type' => 'text', 'size' => '100%', 'max_width' => '600px', 'placeholder' => 'http://...', 'default' => 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic'));
     bb_theme::field(array('title' => 'Tertiary Font', 'group' => 'theme_fonts', 'name' => ns_ . 'gf3', 'type' => 'text', 'size' => '100%', 'max_width' => '600px', 'placeholder' => 'http://...'));
     echo '      <h2 style="margin-top:40px;">Fonts Icons</h2>' . "\n" . '      <hr style="margin: 20px 0;border: 0; height: 1px; background:#ddd; "/>' . "\n";
     bb_theme::field(array('title' => 'Font Awesome', 'group' => 'theme_fonts', 'name' => ns_ . 'fa430', 'type' => 'checkbox', 'description' => '<a href="http://fortawesome.github.io/Font-Awesome/icons/">http://fortawesome.github.io/Font-Awesome/icons/</a>'));
     submit_button();
     settings_fields('theme_fonts_group');
     echo '  </form>' . "\n";
     echo '</div>' . "\n";
 }
Ejemplo n.º 2
0
    $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium');
    ?>
        <meta class='swiftype' name='image' data-type='enum' content='<?php 
    echo $thumbnail[0];
    ?>
'>
<?php 
}
?>
        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<?php 
$favicon = get_theme_mod(ns_ . 'favicon');
if ($favicon) {
    echo '        <link rel="icon" href="' . $favicon . '" type="image/png">' . "\n";
}
wp_head();
?>
    </head>
    <body <?php 
body_class();
?>
>
    <!-- start everything -->
    <div class="everything">
        <header data-swiftype-index='false' class="hide-for-print clearfix">
<?php 
locate_template(array('sections/nav.php'), true);
bb_theme::section('name=top&file=top.php&inner_class=row-full');
?>
        </header>
        <section class="main-section">
Ejemplo n.º 3
0
<?php

get_header();
bb_theme::section('name=content&file=404.php&inner_class=row');
get_footer();
Ejemplo n.º 4
0
<?php

bb_theme::section('name=footer&file=footer.php&inner_class=row&type=footer');
?>
					<!-- content goes here -->
					</section>
				<a class="exit-off-canvas"></a>
				</div>
			</div>
		</div><!-- end everything -->
		<?php 
wp_footer();
?>
        <script>
          var zurb = jQuery.noConflict();
          zurb(document).foundation();
        </script>
        <script>
        	var $buoop = {c:2};
        	function $buo_f(){
        	var e = document.createElement("script");
        	e.src = "//browser-update.org/update.js";
        	document.body.appendChild(e);
        	};
        	try {document.addEventListener("DOMContentLoaded", $buo_f,false)}
        	catch(e){window.attachEvent("onload", $buo_f)}
        </script>
	</body>
</html>
Ejemplo n.º 5
0
<?php

get_header();
bb_theme::section('name=content&file=content.php&inner_class=row');
bb_theme::section('name=callouts&file=callouts.php&inner_class=row-full');
get_footer();
Ejemplo n.º 6
0
<?php

/*
 * Template Name: Children as Paragraphs
 */
get_header();
bb_theme::section('name=content&file=children-as-paragraphs.php&inner_class=row');
get_footer();
Ejemplo n.º 7
0
        <meta class='swiftype' name='image' data-type='enum' content='<?php 
    echo $thumbnail[0];
    ?>
'>
<?php 
}
$favicon = get_theme_mod(ns_ . 'favicon');
if ($favicon) {
    echo '        <link rel="icon" href="' . $favicon . '" type="image/png">' . "\n";
}
$theme_fonts = get_option('theme_fonts');
// enable font-icons from wp-admin/appearance/font settings
if ($theme_fonts[ns_ . "fa430"] == 'true') {
    echo '        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">' . "\n";
}
// Font Awesome 4.3.0
wp_head();
?>
    </head>
    <body>
    <!-- start everything -->
    <div class="s-everything">
        <div class="off-canvas-wrap" data-offcanvas>
             <div class="inner-wrap">
                <header data-swiftype-index='false' class="hide-for-print">
<?php 
bb_theme::section('name=top&file=top.php&&class=hide-for-small&inner_class=row');
locate_template(array('sections/offcanvas.php'), true);
?>
                </header>
                <section class="main-section">