Exemplo n.º 1
0
      <?php 
if (is_front_page() || is_archive() || is_home()) {
    ?>
        <hgroup>
          <div class="container">
            <h1 class="page-title">
              <?php 
    echo dw_timeline_title();
    ?>
            </h1>
            <h2 class="page-description"><?php 
    bloginfo('description');
    ?>
</h2>
            <button id="get-started" class="btn btn-default btn-coner"><?php 
    echo dw_timeline_get_theme_option('get_start', 'Get Start Now');
    ?>
</button>
          </div>
        </hgroup>
      <?php 
} elseif (is_search()) {
    ?>
        <div class="container">
          <h1 class="page-title">
            <?php 
    echo dw_timeline_title();
    ?>
          </h1>
        </div>
      <?php 
Exemplo n.º 2
0
    function dw_timeline_typo_font()
    {
        if (dw_timeline_get_theme_option('heading_font') && dw_timeline_get_theme_option('heading_font') != '') {
            $heading_font = explode(':dw:', dw_timeline_get_theme_option('heading_font'));
            ?>
        <style type="text/css" id="heading_font" media="screen">
          @font-face {
            font-family: "<?php 
            echo $heading_font[0];
            ?>
";
            src: url('<?php 
            echo $heading_font[1];
            ?>
');
          } 
          h1,h2,h3,h4,h5,h6, blockquote {
            font-family: "<?php 
            echo $heading_font[0];
            ?>
" !important;
          }
        </style>
      <?php 
        }
        if (dw_timeline_get_theme_option('body_font') && dw_timeline_get_theme_option('body_font') != '') {
            $body_font = explode(':dw:', dw_timeline_get_theme_option('body_font'));
            ?>
        <style type="text/css" id="body_font" media="screen">
          @font-face {
            font-family: "<?php 
            echo $body_font[0];
            ?>
";
            src: url('<?php 
            echo $body_font[1];
            ?>
');
          } 
          body, .entry-content, blockquote cite{
            font-family: "<?php 
            echo $body_font[0];
            ?>
" !important;
          }
        </style>
      <?php 
        }
    }