WordPress.org

Make WordPress Themes


Ignore:
Location:
mistercorporate/1.0.3
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • mistercorporate/1.0.3/archive.php

    r86901 r86901  
    2626                      <?php } ?> 
    2727 
    28                     <div class="col-md-12"><?php the_excerpt( ); ?><p><a href="<?php the_permalink(); ?>"><div class="btn btn-default"><?php _e( 'Continue reading...', 'mistercorporate' ); ?></div></a></p></div> 
     28                    <div class="col-md-12"><div class="col-md-8 col-md-offset-2"><?php the_excerpt( ); ?><p><a href="<?php the_permalink(); ?>"><div class="btn btn-default"><?php _e( 'Continue reading...', 'mistercorporate' ); ?></div></a></p></div></div> 
    2929                    <div class="col-md-4"> 
    3030                      <p><i class="fa fa-comments" aria-hidden="true"></i> <?php comments_number( '0', '1', '%' ); ?></p> 
  • mistercorporate/1.0.3/comments.php

    r86901 r86901  
    1 <div> 
    2     <h3><?php printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'mistercorporate' ), number_format_i18n( get_comments_number() ), get_the_title() ); ?></h3> 
    3     <div class="pg-empty-placeholder"> 
    4         <?php paginate_comments_links(); ?> 
    5         <?php wp_list_comments(); ?> 
    6     </div> 
    7     <div class="pg-empty-placeholder"> 
    8         <?php comment_form(); ?> 
    9     </div> 
    10 </div> 
     1<?php 
     2if ( post_password_required() ) { 
     3    return; 
     4} 
     5?> 
     6 
     7<div id="comments" class="comments-area"> 
     8 
     9    <?php if ( have_comments() ) : ?> 
     10 
     11            <h3> 
     12            <?php 
     13                comments_number( __( '0 REPLY', 'mistercorporate' ), __( '1 REPLY', 'mistercorporate' ), __( '% REPLY', 'mistercorporate' ) ); ?> <?php _e( 'TO', 'mistercorporate' ); ?> <?php the_title(); 
     14            ?> 
     15            </h3> 
     16 
     17 
     18        <?php paginate_comments_links(); ?> 
     19 
     20        <ul class="comment-list nsCommentUlClass"> 
     21            <?php 
     22                wp_list_comments( array( 
     23                    'style'       => 'ul', 
     24                    'short_ping'  => true, 
     25                    'avatar_size' => 32, 
     26                    'callback'    => 'mistercorporate_comm' 
     27                ) ); 
     28            ?> 
     29        </ul><!-- .comment-list --> 
     30 
     31        <?php paginate_comments_links(); ?> 
     32 
     33    <?php endif; // Check for have_comments(). ?> 
     34 
     35    <?php 
     36        // If comments are closed and there are comments, let's leave a little note, shall we? 
     37        if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : 
     38    ?> 
     39        <p class="no-comments"><?php _e( 'Comments are closed.', 'mistercorporate' ); ?></p> 
     40    <?php endif; ?> 
     41 
     42    <?php 
     43        $commenter = wp_get_current_commenter(); 
     44        $req = get_option( 'require_name_email' ); 
     45        $aria_req = ( $req ? " aria-required='true'" : '' ); 
     46 
     47        $fields =  array( 
     48 
     49          'author' => 
     50            '<p class="firstLetAccaRow">' . __( 'Full Name:', 'mistercorporate' ) . ' ' . 
     51            ( $req ? '<span class="required">*</span>' : '' ) . 
     52            '</p><input id="author" name="author" type="text" maxlength="245" value="' . esc_attr( $commenter['comment_author'] ) . 
     53            '" size="30"' . $aria_req . ' />', 
     54 
     55          'email' => 
     56            '<p class="firstLetAccaRow">' . __( 'Email Address:', 'mistercorporate' ) . ' ' . 
     57            ( $req ? '<span class="required">*</span>' : '' ) . 
     58            '</p><input id="email" name="email" type="text" maxlength="100" value="' . esc_attr(  $commenter['comment_author_email'] ) . 
     59            '" size="30"' . $aria_req . ' />', 
     60 
     61          'url' => 
     62            '<p class="firstLetAccaRow">' . __( 'Website:', 'mistercorporate' ) . '</p>' . 
     63            '<input id="url" name="url" type="text" maxlength="200" value="' . esc_attr( $commenter['comment_author_url'] ) . 
     64            '" size="30" />', 
     65        ); 
     66 
     67        comment_form( array( 
     68            'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">', 
     69            'title_reply_after'  => '</h2>', 
     70            'fields'             =>  $fields, 
     71            'class_submit'       => 'btn btn-default contactPageSend', 
     72            'label_submit'       => __( 'SEND COMMENT', 'mistercorporate' ), 
     73            'comment_field'      => '<p class="firstLetAccaRow">' . _x( 'Comment:', 'Comment label', 'mistercorporate' ) . '</p><textarea id="comment" name="comment" rows="8" cols="45" aria-required="true"></textarea>' 
     74        ) ); 
     75    ?> 
     76 
     77</div><!-- .comments-area --> 
  • mistercorporate/1.0.3/functions.php

    r86901 r86901  
    15631563    register_widget( 'MrCorp_Contact_Widget' ); 
    15641564} 
    1565 add_action( 'widgets_init', 'mrcorp_register_foo_widget' );     
     1565add_action( 'widgets_init', 'mrcorp_register_foo_widget' );  
     1566 
     1567 
     1568 
     1569 
     1570#################################################################### 
     1571 
     1572function mistercorporate_comm( $comment, $args, $depth ) { 
     1573    ?> 
     1574                    <!-- single comment --> 
     1575                    <div <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">                           
     1576 
     1577                          <p><?php comment_text(); ?></p> 
     1578                          <?php 
     1579                          $mrcorp_comment_author_url = get_comment_author_url(); 
     1580                          if ($mrcorp_comment_author_url != '') { 
     1581                              $mistercorporate_print_comment_author = '<a href="'.get_comment_author_url().'">'.get_comment_author().'</a>'; 
     1582                          }else{ 
     1583                              $mistercorporate_print_comment_author = get_comment_author(); 
     1584                          } 
     1585                          ?> 
     1586                          <p> 
     1587                            <img src="<?php echo get_avatar_url($comment); ?>" width="32px"> 
     1588                            <?php _e( 'Posted by:', 'mistercorporate' ); ?> <span><?php echo $mistercorporate_print_comment_author; ?></span> | <a href="#comment-<?php comment_ID(); ?>"><?php echo get_comment_date(); ?></a> <?php edit_comment_link(__('Edit', 'mistercorporate'),'| '); ?> | <?php echo get_comment_reply_link( array_merge( $args, array( 'add_below'  => 'li-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> <?php _e( 'to ', 'mistercorporate' ); ?> <?php comment_author(); ?> 
     1589                          </p> 
     1590                          <hr class="small-comments"> 
     1591                    </div> 
     1592<?php 
     1593} 
     1594 
    15661595?> 
  • mistercorporate/1.0.3/index.php

    r86901 r86901  
    2626                      <?php } ?> 
    2727 
    28                     <div class="col-md-12"><?php the_excerpt( ); ?><p><a href="<?php the_permalink(); ?>"><div class="btn btn-default"><?php _e( 'Continue reading...', 'mistercorporate' ); ?></div></a></p></div> 
     28                    <div class="col-md-12"><div class="col-md-8 col-md-offset-2"><?php the_excerpt( ); ?><p><a href="<?php the_permalink(); ?>"><div class="btn btn-default"><?php _e( 'Continue reading...', 'mistercorporate' ); ?></div></a></p></div></div> 
    2929                    <div class="col-md-4"> 
    3030                      <p><i class="fa fa-comments" aria-hidden="true"></i> <?php comments_number( '0', '1', '%' ); ?></p> 
  • mistercorporate/1.0.3/readme.txt

    r86901 r86901  
    33Requires at least: WordPress 4.5 
    44Tested up to: WordPress 4.8 
    5 Version: 1.0.2 
     5Version: 1.0.3 
    66License: GPLv2 or later 
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    8 Tags: one-column, two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, sticky-post, threaded-comments, translation-ready, blog 
     8Tags: one-column, custom-background, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments, translation-ready, blog, education, entertainment 
    99 
    1010== Description == 
     
    7474 
    7575== Changelog == 
     76= 1.0.3 = 
     77* Fix comments 
     78* Fix css 
     79* Fix theme tags 
    7680= 1.0.2 = 
    7781* Fix search page 
  • mistercorporate/1.0.3/single.php

    r86901 r86901  
    4949 
    5050 
    51  
     51                        <hr class="small"> 
    5252 
    5353                        <?php comments_template(); ?> 
  • mistercorporate/1.0.3/style.css

    r86901 r86901  
    55Author URI: http://www.nsthemes.com/ 
    66Description: Mistercorporate is an awsome one page WordPress theme, with gallery, pricing table, map, contact and much more. 
    7 Version: 1.0.2 
     7Version: 1.0.3 
    88License: GNU General Public License v2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    10 Tags: one-column, two-columns, left-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, sticky-post, threaded-comments, translation-ready, blog 
     10Tags: one-column, custom-background, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments, translation-ready, blog, education, entertainment 
    1111Text Domain: mistercorporate 
    1212*/ 
     
    9696hr.small { 
    9797  max-width: 100px; 
     98  margin: 15px auto; 
     99  border-width: 4px; 
     100  border-color: #AA9955; 
     101} 
     102hr.small-comments { 
     103  max-width: 50px; 
    98104  margin: 15px auto; 
    99105  border-width: 4px; 
     
    862868    outline: none; 
    863869} 
     870 
     871.comment { 
     872    list-style-type: none; 
     873} 
     874 
     875.wp-post-image { 
     876    margin: 0 auto; 
     877    margin-top: 50px; 
     878} 
Note: See TracChangeset for help on using the changeset viewer.