Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/facebook.codeskitter.site/themes/sunshine/layout/poke/
Upload File :
Current File : /home/users/unlimited/www/facebook.codeskitter.site/themes/sunshine/layout/poke/content.phtml

<div class="page-margin">
	<div class="row">
		<div class="col-md-2 leftcol"><?php echo Wo_LoadPage("sidebar/left-sidebar"); ?></div>
		<div class="col-md-7 profile-lists middlecol">
			<div class="page-margin mt-0">
				<div class="wow_content popular_posts_hdr">
					<h2><svg width="17" height="18" viewBox="0 0 17 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.79406 11.5413L1.06388 11.7126L1.79406 11.5413ZM1.79406 6.45869L1.06388 6.28742L1.79406 6.45869ZM15.4758 6.62997C15.5704 7.03324 15.9739 7.28347 16.3772 7.18888C16.7805 7.09428 17.0307 6.69069 16.9361 6.28742L15.4758 6.62997ZM11.7126 16.9361C12.1159 16.8415 12.3661 16.4379 12.2715 16.0347C12.1769 15.6314 11.7733 15.3812 11.37 15.4758L11.7126 16.9361ZM6.4587 16.2059L6.28742 16.9361L6.4587 16.2059ZM6.45869 1.79406L6.28742 1.06388L6.45869 1.79406ZM11.5413 1.79406L11.37 2.52424L11.5413 1.79406ZM2.52425 11.37C2.15858 9.81117 2.15858 8.18884 2.52425 6.62997L1.06388 6.28742C0.645372 8.07159 0.645372 9.92841 1.06388 11.7126L2.52425 11.37ZM11.37 15.4758C9.81117 15.8414 8.18884 15.8414 6.62997 15.4758L6.28742 16.9361C8.07159 17.3546 9.92841 17.3546 11.7126 16.9361L11.37 15.4758ZM6.62997 2.52424C8.18884 2.15859 9.81117 2.15858 11.37 2.52424L11.7126 1.06388C9.92841 0.645372 8.07159 0.645373 6.28742 1.06388L6.62997 2.52424ZM6.62997 15.4758C4.59277 14.9979 3.00211 13.4072 2.52425 11.37L1.06388 11.7126C1.67185 14.3044 3.69558 16.3282 6.28742 16.9361L6.62997 15.4758ZM11.37 2.52424C13.4072 3.00211 14.9979 4.59277 15.4758 6.62997L16.9361 6.28742C16.3282 3.69558 14.3044 1.67185 11.7126 1.06388L11.37 2.52424ZM6.28742 1.06388C3.69558 1.67185 1.67185 3.69558 1.06388 6.28742L2.52425 6.62997C3.00211 4.59277 4.59277 3.00211 6.62997 2.52424L6.28742 1.06388Z" class="icon_main_fill"></path><path d="M8.2491 6.82064C8.2491 7.23486 8.58489 7.57064 8.9991 7.57064C9.41332 7.57064 9.7491 7.23486 9.7491 6.82064H8.2491ZM9.7491 5.53247C9.7491 5.11826 9.41332 4.78247 8.9991 4.78247C8.58489 4.78247 8.2491 5.11826 8.2491 5.53247H9.7491ZM8.2491 12.4676C8.2491 12.8818 8.58489 13.2176 8.9991 13.2176C9.41332 13.2176 9.7491 12.8818 9.7491 12.4676H8.2491ZM9.7491 11.1796C9.7491 10.7653 9.41332 10.4296 8.9991 10.4296C8.58489 10.4296 8.2491 10.7653 8.2491 11.1796H9.7491ZM7.48668 10.7393C7.8454 10.5322 7.96831 10.0735 7.7612 9.71475C7.5541 9.35603 7.0954 9.23312 6.73668 9.44023L7.48668 10.7393ZM5.62109 10.0843C5.26237 10.2914 5.13947 10.7501 5.34657 11.1088C5.55368 11.4676 6.01237 11.5905 6.37109 11.3834L5.62109 10.0843ZM12.3771 7.91578C12.7358 7.70867 12.8587 7.24998 12.6516 6.89126C12.4445 6.53254 11.9858 6.40963 11.6271 6.61674L12.3771 7.91578ZM10.5116 7.26077C10.1529 7.46788 10.03 7.92657 10.2371 8.28529C10.4442 8.64401 10.9029 8.76692 11.2616 8.55981L10.5116 7.26077ZM6.73668 8.55986C7.0954 8.76697 7.5541 8.64406 7.7612 8.28534C7.96831 7.92663 7.8454 7.46793 7.48668 7.26083L6.73668 8.55986ZM6.37109 6.61674C6.01237 6.40963 5.55368 6.53254 5.34657 6.89126C5.13947 7.24998 5.26237 7.70867 5.62109 7.91578L6.37109 6.61674ZM11.6271 11.3834C11.9858 11.5905 12.4445 11.4676 12.6516 11.1088C12.8587 10.7501 12.7358 10.2914 12.3771 10.0843L11.6271 11.3834ZM11.2616 9.44028C10.9029 9.23318 10.4442 9.35608 10.2371 9.7148C10.03 10.0735 10.1529 10.5322 10.5116 10.7393L11.2616 9.44028ZM9.7491 6.82064V5.53247H8.2491V6.82064H9.7491ZM9.7491 12.4676V11.1796H8.2491V12.4676H9.7491ZM6.73668 9.44023L5.62109 10.0843L6.37109 11.3834L7.48668 10.7393L6.73668 9.44023ZM11.6271 6.61674L10.5116 7.26077L11.2616 8.55981L12.3771 7.91578L11.6271 6.61674ZM7.48668 7.26083L6.37109 6.61674L5.62109 7.91578L6.73668 8.55986L7.48668 7.26083ZM12.3771 10.0843L11.2616 9.44028L10.5116 10.7393L11.6271 11.3834L12.3771 10.0843Z" fill="currentColor"></path></svg>&nbsp;<?php echo $wo['lang']['pokes']; ?></h2>
				</div>
			</div>
			
			<div class="wo_my_pages">
				<div id="poke_content">
					<?php
                        $pokes = $wo['poke'];
						if (count($pokes) > 0) {
                            ?>
                            <?php
							foreach ($pokes as $key => $wo['poke']) {
								echo "<div class='wo_pokes_cont'>" . Wo_LoadPage('poke/poke-list') . "</div>";
                            }
                            ?>
                            <?php
						} else {
							echo '<div class="wow_content"><div class="empty_state"><svg width="17" height="18" viewBox="0 0 17 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.79406 11.5413L1.06388 11.7126L1.79406 11.5413ZM1.79406 6.45869L1.06388 6.28742L1.79406 6.45869ZM15.4758 6.62997C15.5704 7.03324 15.9739 7.28347 16.3772 7.18888C16.7805 7.09428 17.0307 6.69069 16.9361 6.28742L15.4758 6.62997ZM11.7126 16.9361C12.1159 16.8415 12.3661 16.4379 12.2715 16.0347C12.1769 15.6314 11.7733 15.3812 11.37 15.4758L11.7126 16.9361ZM6.4587 16.2059L6.28742 16.9361L6.4587 16.2059ZM6.45869 1.79406L6.28742 1.06388L6.45869 1.79406ZM11.5413 1.79406L11.37 2.52424L11.5413 1.79406ZM2.52425 11.37C2.15858 9.81117 2.15858 8.18884 2.52425 6.62997L1.06388 6.28742C0.645372 8.07159 0.645372 9.92841 1.06388 11.7126L2.52425 11.37ZM11.37 15.4758C9.81117 15.8414 8.18884 15.8414 6.62997 15.4758L6.28742 16.9361C8.07159 17.3546 9.92841 17.3546 11.7126 16.9361L11.37 15.4758ZM6.62997 2.52424C8.18884 2.15859 9.81117 2.15858 11.37 2.52424L11.7126 1.06388C9.92841 0.645372 8.07159 0.645373 6.28742 1.06388L6.62997 2.52424ZM6.62997 15.4758C4.59277 14.9979 3.00211 13.4072 2.52425 11.37L1.06388 11.7126C1.67185 14.3044 3.69558 16.3282 6.28742 16.9361L6.62997 15.4758ZM11.37 2.52424C13.4072 3.00211 14.9979 4.59277 15.4758 6.62997L16.9361 6.28742C16.3282 3.69558 14.3044 1.67185 11.7126 1.06388L11.37 2.52424ZM6.28742 1.06388C3.69558 1.67185 1.67185 3.69558 1.06388 6.28742L2.52425 6.62997C3.00211 4.59277 4.59277 3.00211 6.62997 2.52424L6.28742 1.06388Z" class="icon_main_fill"></path><path d="M8.2491 6.82064C8.2491 7.23486 8.58489 7.57064 8.9991 7.57064C9.41332 7.57064 9.7491 7.23486 9.7491 6.82064H8.2491ZM9.7491 5.53247C9.7491 5.11826 9.41332 4.78247 8.9991 4.78247C8.58489 4.78247 8.2491 5.11826 8.2491 5.53247H9.7491ZM8.2491 12.4676C8.2491 12.8818 8.58489 13.2176 8.9991 13.2176C9.41332 13.2176 9.7491 12.8818 9.7491 12.4676H8.2491ZM9.7491 11.1796C9.7491 10.7653 9.41332 10.4296 8.9991 10.4296C8.58489 10.4296 8.2491 10.7653 8.2491 11.1796H9.7491ZM7.48668 10.7393C7.8454 10.5322 7.96831 10.0735 7.7612 9.71475C7.5541 9.35603 7.0954 9.23312 6.73668 9.44023L7.48668 10.7393ZM5.62109 10.0843C5.26237 10.2914 5.13947 10.7501 5.34657 11.1088C5.55368 11.4676 6.01237 11.5905 6.37109 11.3834L5.62109 10.0843ZM12.3771 7.91578C12.7358 7.70867 12.8587 7.24998 12.6516 6.89126C12.4445 6.53254 11.9858 6.40963 11.6271 6.61674L12.3771 7.91578ZM10.5116 7.26077C10.1529 7.46788 10.03 7.92657 10.2371 8.28529C10.4442 8.64401 10.9029 8.76692 11.2616 8.55981L10.5116 7.26077ZM6.73668 8.55986C7.0954 8.76697 7.5541 8.64406 7.7612 8.28534C7.96831 7.92663 7.8454 7.46793 7.48668 7.26083L6.73668 8.55986ZM6.37109 6.61674C6.01237 6.40963 5.55368 6.53254 5.34657 6.89126C5.13947 7.24998 5.26237 7.70867 5.62109 7.91578L6.37109 6.61674ZM11.6271 11.3834C11.9858 11.5905 12.4445 11.4676 12.6516 11.1088C12.8587 10.7501 12.7358 10.2914 12.3771 10.0843L11.6271 11.3834ZM11.2616 9.44028C10.9029 9.23318 10.4442 9.35608 10.2371 9.7148C10.03 10.0735 10.1529 10.5322 10.5116 10.7393L11.2616 9.44028ZM9.7491 6.82064V5.53247H8.2491V6.82064H9.7491ZM9.7491 12.4676V11.1796H8.2491V12.4676H9.7491ZM6.73668 9.44023L5.62109 10.0843L6.37109 11.3834L7.48668 10.7393L6.73668 9.44023ZM11.6271 6.61674L10.5116 7.26077L11.2616 8.55981L12.3771 7.91578L11.6271 6.61674ZM7.48668 7.26083L6.37109 6.61674L5.62109 7.91578L6.73668 8.55986L7.48668 7.26083ZM12.3771 10.0843L11.2616 9.44028L10.5116 10.7393L11.6271 11.3834L12.3771 10.0843Z" fill="currentColor"></path></svg>' . $wo['lang']['no_pokes_found'] . '</div></div>';
						}
					?>
				    <div class="clear"></div>
				</div>
                <div class="clear"></div>
                <?php  if (count($pokes) > 8): ?>
                <div class="load-more">
                    <button class="btn btn-default text-center pointer load-more-pokes">
                    <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather"><polyline points="6 9 12 15 18 9"></polyline></svg>
                    <?php echo $wo['lang']['load_more'] ?>
                    </button>
                </div>
                <?php endif ?>
			</div>
		</div>
		<?php echo Wo_LoadPage('sidebar/content');?>
	</div>
</div>
<script>
    function Wo_RegisterPokeBack(received_user_id ,self,  send_user_id, poke_id){
        if (!received_user_id || !self || !send_user_id || !poke_id ) {
            return false;
        }
        $(self).attr('disabled',true);
        $(self).find('.button-text').html("<?php echo $wo['lang']['txt_poked'];?>");

        $.ajax({
            url: Wo_Ajax_Requests_File(),
            type: 'GET',
            dataType: 'json',
            data: {f: 'poke',received_user_id:received_user_id,send_user_id:send_user_id,poke_id:poke_id},
        })
        .done(function(data) {
            if (node_socket_flow == "1") {
                socket.emit("user_notification", { to_id: received_user_id, user_id: _getCookie("user_id")});
            }
            if (data.status == 200) {
                $(self).parent('div').parent('.poke_info').parent('.wo_poke_users').parent('.wo_pokes_cont').remove();
                Wo_Delay(function(){
                    $('#pokeuser_' + received_user_id).remove();
                },2000);
            }else{
                $(self).attr('disabled',false);
                $(self).find('.button-text').html("<?php echo $wo['lang']['poke_back'];?>");
            }
        })
        .fail(function() {
            $(self).attr('disabled',false);
            $(self).find('.button-text').html("<?php echo $wo['lang']['poke_back'];?>");
            console.log("error");
        })
    }
    $(document).on('click', '.load-more-pokes', function(event) {
        var id = $('.wo_poke_users').last().attr('id');
        $.post(Wo_Ajax_Requests_File()+"?f=load_poke", {id: id}, function(data, textStatus, xhr) {
            if (data.status == 200 && data.html != '') {
                $('#poke_content').append(data.html);
            }
            else{
                $('.load-more-pokes').remove();
            }
        });
    });
</script>