Exemple #1
0
                            <li><a href="<?php 
    echo wp_logout_url('index.php');
    ?>
"><?php 
    _e('Sign Out', 'gitsta');
    ?>
</a></li>
                        </ul>
                        <?php 
}
// End of dropdown for logged users
?>
                    </div>
                </div>
            </div>
        </nav>
        <!-- Anchor for "Back to top"-Link -->
        <a name="top"></a>
        <?php 
if (is_front_page() && get_gitsta_theme_option('frontpage_blog_descr') == 1) {
    ?>
        <div class="subhead">
            <div class="container">
                <h3><?php 
    echo bloginfo('description');
    ?>
</h3>
            </div>
        </div>
        <?php 
}
Exemple #2
0
<?php

get_header();
?>

<div class="container">
    <div class="text-center">
        <h2><?php 
echo get_gitsta_theme_option('error_404_title');
?>
</h2>
        <?php 
echo get_gitsta_theme_option('error_404_content');
?>
    </div>

<?php 
get_footer();
</td>
            </tr>
            
            <tr class="alternate">
                <td colspan="2"><h3>Error 404 Page</h3></td>
            </tr>
            <tr valign="top">
                <th scope="row" style="width: 25%;">Title</th>
                <td style="width: 75%;"><input id="gitsta_theme_options[error_404_title]" type="text" name="gitsta_theme_options[error_404_title]" value="<?php 
echo stripslashes(get_gitsta_theme_option('error_404_title'));
?>
" style="width: 40%;"></td>
            </tr>
            <tr valign="top">
                <th scope="row" style="width: 25%;">Content</th>
                <td style="width: 75%;">
                    <?php 
wp_editor(__(get_gitsta_theme_option('error_404_content')), 'terms_wp_content', array('textarea_name' => 'gitsta_theme_options[error_404_content]', 'textarea_rows' => 14, 'teeny' => true));
?>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><?php 
submit_button();
?>
</td>
            </tr>
        </table>
    </form>
</div>
Exemple #4
0
                         </div>';
 $gitsta_form_mail = '<div class="col-md-4">
                             <input class="form-control" placeholder="' . __('E-Mail', 'gitsta') . '" id="email" name="email" type="text" value="' . esc_attr($gitsta_form_commenter['comment_author_email']) . '" size="30"' . $gitsta_form_aria_req . ' />
                         </div>';
 $gitsta_form_url = '<div class="col-md-4">
                             <input class="form-control" placeholder="' . __('URL', 'gitsta') . '" id="url" name="url" type="text" value="' . esc_attr($gitsta_form_commenter['comment_author_url']) . '" size="30" />
                         </div>
                     </div><!-- /row -->';
 // Call the comments form
 comment_form(array('title_reply' => '</h3>', 'title_reply_to' => '</h3><div class="alert alert-info">Replying to %s. ' . cancel_comment_reply_link('Click here to cancel reply.') . '</div>', 'cancel_reply_link' => '<em></em>', 'label_submit' => __('Post comment', 'gitsta'), 'fields' => array('author' => $gitsta_form_author, 'email' => $gitsta_form_mail, 'url' => $gitsta_form_url), 'comment_field' => '<br><p><textarea placeholder="' . __('Markdown enabled', 'gitsta') . '" id="comment" class="form-control" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 'comment_notes_after' => '', 'comment_notes_before' => ''));
 ?>
                 </div>
                 
                 <?php 
 // These tabs are hidden, if markdown support option is disabled
 if (get_gitsta_theme_option('comment_markdown_support') == 1) {
     ?>
                 
                 <div id="preview" class="tab-pane">
                     <!-- Markdown preview tab -->
                     <div id="markdown-preview"></div>
                 </div>
                 
                 <div id="help" class="tab-pane">
                     <!-- Markdown help tab -->
                     <table class="table table-striped">
                         <thead>
                             <tr>
                                 <th style="width: 50%;"><?php 
     _e('Markdown', 'gitsta');
     ?>