<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>

<div class="wrapper">
  <div class="main">
    <div class="section section-white">
      <div class="container">
        <div class="row">
          <div class="col-md-12 ml-auto mr-auto">
            <div class="article-content">
              <?php echo $JAK_FORM_DATA["content"];?>
            </div>
            <br>
            <div class="article-footer">
              <div class="container">
                <div class="row">
                  <div class="col-6">
                    <h5><?php echo $jkl['hd138'];?></h5>
                    <?php echo jak_get_tags_frontend($opcacheid, "blogid", $page2);?>
                  </div>
                  <div class="col-6">
                    <?php if ($JAK_FORM_DATA["socialbutton"]) { ?>
                      <div class="sharing float-right">
                        <h5><?php echo $jkl['hd137'];?></h5>
                        <a href="mailto:?subject=<?php echo urlencode($JAK_FORM_DATA["title"]);?>&amp;body=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>" class="btn btn-just-icon btn-border btn-email"><i class="fa fa-envelope"></i></a>
                        <a href="whatsapp://send?text=<?php echo urlencode($JAK_FORM_DATA["title"]);?>%20<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>" class="btn btn-just-icon btn-border btn-whatsapp"><i class="fab fa-whatsapp"></i></a>
                        <a href="https://twitter.com/intent/tweet/?text=<?php echo urlencode($JAK_FORM_DATA["title"]);?>&amp;url=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>" target="_blank" class="btn btn-just-icon btn-border btn-twitter"><i class="fab fa-twitter"></i></a>
                        <a href="https://www.facebook.com/sharer/sharer.php?href=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>&t=<?php echo urlencode($JAK_FORM_DATA["title"]);?>" class="btn btn-just-icon btn-border btn-facebook"><i class="fab fa-facebook"></i></a>
                      </div>
                    <?php } ?>
                  </div>
                </div>
              </div>
            </div>
            <hr>
            <div class="container">
              <div class="row">
                <div class="col-md-12">
                  <div class="media-area">
                    <h3 class="text-center"><?php echo $jkl['hd136'];?></h3>
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-md-12">
                  <div class="media">
                    <a class="pull-left" href="javascript:void(0)">
                      <div class="avatar big-avatar">
                        <img class="media-object" alt="64x64" src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$JAK_OP_DETAILS["picture"];?>">
                      </div>
                    </a>
                    <div class="media-body">
                      <h4 class="media-heading"><?php echo $JAK_OP_DETAILS["name"];?></h4>
                      <p><?php echo $JAK_OP_DETAILS["aboutme"];?></p>
                    </div>
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-md-12">
                  <?php if ($JAK_FORM_DATA["comments"]) { ?>
                    <div class="comments media-area">
                      <h3 class="text-center"><?php echo sprintf($jkl['hd65'], '<span id="cComT">'.$JAK_COMMENTS_TOTAL.'</span>');?></h3>
                      <?php if (isset($JAK_COMMENTS) && !empty($JAK_COMMENTS)) { echo jak_build_comments(0, $JAK_COMMENTS, $BLOGADMIN, $CHECK_USR_SESSION, $jkl['hd69'], $jkl['hd67'], false, true); } else { ?>

                        <div class="media-body" id="comments-blank"><?php echo $jkl['hd74'];?></div>

                      <?php } ?>

                      <span id="insertPost"></span>

                    <?php } if ($JAK_FORM_DATA["comments"] && JAK_USERISLOGGED) { ?>

                      <h3 class="title text-center"><?php echo $jkl['hd70'];?></h3>
                      <div class="media media-post">
                        <a class="author float-left" href="javascript:void(0)">
                          <div class="avatar">
                            <?php if (JAK_USERID) { ?>
                              <img class="media-object" src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$jakuser->getVar("picture");?>" alt="<?php echo $jakuser->getVar("name");?>">
                            <?php } else { ?>
                              <img class="media-object" src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$jakclient->getVar("picture");?>" alt="<?php echo $jakclient->getVar("name");?>">
                            <?php } ?>
                          </div>
                        </a>
                        <div class="col-md-10">
                          <form class="jak-blogform" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
                            <div class="form-group label-floating bmd-form-group">
                              <label class="form-control-label bmd-label-floating" for="bmessage"><?php echo $jkl["g28"];?></label>
                              <textarea class="form-control" rows="5" name="bmessage" id="bmessage"></textarea>
                            </div>
                            <div class="media-footer">
                              <button type="submit" class="btn btn-primary btn-round btn-wd float-right jak-submit"><?php echo $jkl['g11'];?></button>
                              <input type="hidden" name="send_comment" value="1">
                              <input type="hidden" name="comanswerid" id="comanswerid" value="">
                              <input type="hidden" name="editpostid" id="editpostid" value="">
                            </div>
                          </form>
                        </div>
                      </div>
                      <!-- end media-post -->

                    <?php } ?>
                  </div>
                </div>
              </div>
              <div class="row space-top">
                <div class="col-6">
                  <?php if (isset($JAK_NAV_PREV) && !empty($JAK_NAV_PREV)) { ?>
                  <a href="<?php echo $JAK_NAV_PREV;?>" class="btn btn-outline-info btn-round"><i class="fa fa-arrow-left"></i> <?php echo $JAK_NAV_PREV_TITLE;?></a>
                  <?php } ?>
                </div>
                <div class="col-6 text-right">
                  <?php if (isset($JAK_NAV_NEXT) && !empty($JAK_NAV_NEXT)) { ?>
                  <a href="<?php echo $JAK_NAV_NEXT;?>" class="btn btn-outline-info btn-round"><?php echo $JAK_NAV_NEXT_TITLE;?> <i class="fa fa-arrow-right"></i></a>
                  <?php } ?>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
