Permalink
Browse files

weDocs plugin v1.2 compatibility

  • Loading branch information...
tareq1988 committed Nov 1, 2016
1 parent 03e6dd0 commit 5e76f14e4067554ae6559e716fa372624bd6ee77
Showing with 55 additions and 15 deletions.
  1. +4 −0 assets/less/app.less
  2. +4 −0 style.css
  3. +1 −1 style.css.map
  4. +46 −14 templates/content-single.php
View
@@ -170,6 +170,10 @@ a {
}
}
.wedocs-single-wrap .wedocs-single-content ol.wedocs-breadcrumb {
padding-left: 0;
}
.container .jumbotron {
text-align: center;
background: #f5f5f5;
View
@@ -105,6 +105,9 @@ a:hover {
font-weight: normal;
padding: 0 5px;
}
.wedocs-single-wrap .wedocs-single-content ol.wedocs-breadcrumb {
padding-left: 0;
}
.container .jumbotron {
text-align: center;
background: #f5f5f5;
@@ -525,3 +528,4 @@ a img.aligncenter {
float: none;
}
}
/*# sourceMappingURL=style.css.map */
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,21 +1,23 @@
<?php while (have_posts()) : the_post(); ?>
<?php $skip_sidebar = get_post_meta( $post->ID, 'skip_sidebar', true ); ?>
<article <?php post_class( 'row' ); ?>>
<div class="col-md-12">
<div class="col-md-12">
<div class="entry-content">
<header>
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'row' ); ?> itemscope itemtype="http://schema.org/Article">
<?php the_content(); ?>
</div>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title" itemprop="headline">', '</h1>' ); ?>
<?php
<?php if ( function_exists( 'wedocs_get_option' ) && wedocs_get_option( 'print', 'wedocs_settings', 'on' ) == 'on' ): ?>
<a href="#" class="wedocs-print-article wedocs-hide-print wedocs-hide-mobile" title="<?php echo esc_attr( __( 'Print this article', 'wedocs' ) ); ?>"><i class="wedocs-icon wedocs-icon-print"></i></a>
<?php endif; ?>
</header>
if ( $skip_sidebar != 'yes' ) {
<div class="entry-content" itemprop="articleBody">
<?php the_content(); ?>
<?php
$children = wp_list_pages("title_li=&order=menu_order&child_of=". $post->ID ."&echo=0&post_type=" . $post->post_type);
if ( $children ) {
@@ -26,17 +28,47 @@
echo '</ul>';
echo '</div>';
}
?>
</div>
<footer class="entry-footer wedocs-entry-footer">
<?php if ( function_exists( 'wedocs_get_option' ) && wedocs_get_option( 'email', 'wedocs_settings', 'on' ) == 'on' ): ?>
<span class="wedocs-help-link wedocs-hide-print wedocs-hide-mobile">
<i class="wedocs-icon wedocs-icon-envelope"></i>
<?php printf( '%s <a id="wedocs-stuck-modal" href="%s">%s</a>', __( 'Still stuck?', 'wedocs' ), '#', __( 'How can we help?', 'wedocs' ) ); ?>
</span>
<?php endif; ?>
<div class="wedocs-article-author" itemprop="author" itemscope itemtype="https://schema.org/Person">
<meta itemprop="name" content="<?php echo get_the_author(); ?>" />
<meta itemprop="url" content="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" />
</div>
<meta itemprop="datePublished" content="<?php echo get_the_time( 'c' ); ?>"/>
<time itemprop="dateModified" datetime="<?php echo esc_attr( get_the_modified_date( 'c' ) ); ?>"><?php printf( __( 'Updated on %s', 'wedocs' ), get_the_modified_date() ); ?></time>
</footer>
<?php
if ( $skip_sidebar != 'yes' ) {
if ( function_exists( 'wedocs_doc_nav' ) ) {
wedocs_doc_nav();
}
if ( function_exists( 'wedocs_get_template_part' ) ) {
wedocs_get_template_part( 'content', 'feedback' );
if ( function_exists( 'wedocs_get_template_part' ) && function_exists( 'wedocs_get_option' ) ) {
if ( wedocs_get_option( 'helpful', 'wedocs_settings', 'on' ) == 'on' ) {
wedocs_get_template_part( 'content', 'feedback' );
}
if ( wedocs_get_option( 'email', 'wedocs_settings', 'on' ) == 'on' ) {
wedocs_get_template_part( 'content', 'modal' );
}
}
}
?>
</div><!-- .col-md-# -->
</article>
</article>
</div><!-- .col-md-# -->
<?php endwhile; ?>

0 comments on commit 5e76f14

Please sign in to comment.