{"id":4953,"date":"2017-01-23T19:04:28","date_gmt":"2017-01-23T18:04:28","guid":{"rendered":"http:\/\/pasdatest.ionsystems.uk\/?page_id=4953"},"modified":"2017-01-23T19:04:28","modified_gmt":"2017-01-23T18:04:28","slug":"online-chat-2","status":"publish","type":"page","link":"https:\/\/www.pasda.org.uk\/index.php\/online-chat-2\/","title":{"rendered":"Online Chat Room"},"content":{"rendered":"<p><?php\n\/**\n * Created by PigeonPenguin.com\n * User: Phil Bowen\n * Date: 08\/05\/2015\n *\/\n\nget_header();\n$upload_dir = wp_upload_dir();\n\nif (!is_user_logged_in() ){\n\n    \/\/ if not logged in send user to login page (home page here) and set the redirect_to argument so once logged on they are sent to page they wanted\n    ?><\/p>\n<div class=\"container-fluid pp-xs-mobile pp-min-height\">\n<div class=\"clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block\"><\/div>\n<div class=\"col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12 pp-mobile \">\n<h2>Welcome to the Pasda Online Chat<\/h2>\n<p>The Online Chat is used to discuss and asks questions.<\/p>\n<p>Please note we have the following guidelines in place click <a href=\"\/pasda-online-chat-guidelines\">HERE<\/a> and the Online Chat is moderated.<\/p>\n<p>If you have a username and password please login here. Otherwise click <a href=\"<?php echo home_url( '\/' ); ?>\/online-chat-registration&#8221;>HERE<\/a><br \/>\n            to request access. <\/p>\n<p>            <?php\n             $args = array(\n            'redirect' => home_url(),<br \/>\n            &#8216;form_id&#8217; => &#8216;loginform-custom&#8217;,<br \/>\n            &#8216;label_username&#8217; => __( &#8216;Username&#8217; ),<br \/>\n            &#8216;label_password&#8217; => __( &#8216;Password &#8216; ),<br \/>\n            &#8216;label_log_in&#8217; => __( &#8216;Log In&#8217; ),<br \/>\n            &#8216;remember&#8217; => false<br \/>\n            );<br \/>\n            $string = wp_login_form( array(&#8216;echo&#8217; => false) );<\/p>\n<p>        echo $string;<br \/>\n        ?><\/p><\/div>\n<\/p><\/div>\n<p>    <?php\n} else {\n    ?><\/p>\n<div class=\"container-fluid pp-xs-mobile pp-min-height\">\n<p>        <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><\/p>\n<div class=\"clearfix visible-lg-block visible-md-block visible-sm-block visible-xs-block\"><\/div>\n<div class=\"col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12 pp-mobile\">\n                <?php the_content(); ?>\n            <\/div>\n<p>        <?php endwhile; else: ?><\/p>\n<p><?php _e('Sorry, this page does not exist.'); ?><\/p>\n<p>        <?php endif; ?><\/p><\/div>\n<p><?php }\n\nget_footer(); ?><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the Pasda Online Chat The Online Chat is used to discuss and asks questions. Please note we have the following guidelines in place click HERE and the Online [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-4953","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.pasda.org.uk\/index.php\/wp-json\/wp\/v2\/pages\/4953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pasda.org.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pasda.org.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.pasda.org.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pasda.org.uk\/index.php\/wp-json\/wp\/v2\/comments?post=4953"}],"version-history":[{"count":1,"href":"https:\/\/www.pasda.org.uk\/index.php\/wp-json\/wp\/v2\/pages\/4953\/revisions"}],"predecessor-version":[{"id":5941,"href":"https:\/\/www.pasda.org.uk\/index.php\/wp-json\/wp\/v2\/pages\/4953\/revisions\/5941"}],"wp:attachment":[{"href":"https:\/\/www.pasda.org.uk\/index.php\/wp-json\/wp\/v2\/media?parent=4953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}