HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/root/home/slfopp7cb1df/www/pm/app/Views/help_and_knowledge_base/articles/view_page.php
<div id="page-content" class="page-wrapper clearfix help-page-container <?php echo "sub_" . $type ?>">
    <div class="view-container">
        <div class="row ">
            <div id="help-left-panel" class="col-md-3">
                <?php echo view("help_and_knowledge_base/search_box", array("type" => $type)); ?>

                <h4 class="mt20"><?php echo app_lang("categories"); ?></h4>
                <ul class="list-group help-catagory">
                    <?php
                    foreach ($categories as $category) {
                        $active_class = "";
                        if ($category->id === $selected_category_id) {
                            $active_class = "active";
                        }
                        echo anchor(get_uri($type . "/category/" . $category->id), $category->title, array("class" => "list-group-item $active_class"));
                    }
                    ?>
                </ul>

            </div>


            <div class="col-md-9">
                <div id="help-page-content" class="card">

                    <?php
                    if ($page_type == "articles_list_view") {
                        echo view("help_and_knowledge_base/articles/articles_list_view", array("category_info" => $category_info, "articles" => $articles));
                    } else if ($page_type == "article_view") {
                        echo view("help_and_knowledge_base/articles/article_view", array("article_info" => $article_info));
                    }
                    ?>

                </div>
            </div>

        </div>
    </div>
</div>



<script type="text/javascript">
    $(document).ready(function () {
        //load message notifications
        $("#help-page-content").css({"min-height": $(window).height() - 110 + "px"});

<?php if (isset($scroll_to_content)) { ?>
            if (isMobile()) {
                //scroll to the content for mobile devices
                setTimeout(function () {
                    window.scrollTo(0, $("#help-page-content").offset().top - 60);
                }, 200);
            }
<?php } ?>

        $(".article_vote_button").click(function () {
            var articleId = $(this).attr('data-article-id');
            var feedbackStatus = $(this).attr('data-feedback-status')
            appLoader.show();
            $.ajax({
                url: "<?php echo get_uri("knowledge_base/article_helpful_status/") ?>" + articleId + "/" + feedbackStatus + "/",
                type: 'POST',
                dataType: "json",
                success: function (result) {
                    if (result.success) {
                        $(".feedback-section").html("<?php echo app_lang("thank_you_for_your_feedback"); ?>");
                        appLoader.hide();
                    } else {
                        appAlert.error(result.message);
                    }
                }
            });
        });

    });
</script>