Spade

Mini Shell

Directory:~$ /proc/self/root/home/lmsyaran/public_html/j3/components/com_moojla/layouts/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //proc/self/root/home/lmsyaran/public_html/j3/components/com_moojla/layouts/rate.php

<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		rate.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('JPATH_BASE') or die('Restricted access');



?>

<!--[JCBGUI.layout.layout.6.$$$$]-->
<?php if (!JFactory::getUser()->guest): ?>
<?php if($displayData->params->get('rating')): ?>
    <div style="display: flex; flex-direction: column">
        <div class="rate" data-id="<?=
$displayData->remoteid; ?>">
            <input type="radio" id="star5<?=
$displayData->remoteid ?>" name="rate<?=
$displayData->remoteid ?>" value="5" />
            <label for="star5<?= $displayData->remoteid
?>" title="5 امتیاز">5 stars</label>
            <input type="radio" id="star4<?=
$displayData->remoteid ?>" name="rate<?=
$displayData->remoteid ?>" value="4" />
            <label for="star4<?= $displayData->remoteid
?>" title="4 امتیاز">4 stars</label>
            <input type="radio" id="star3<?=
$displayData->remoteid ?>" name="rate<?=
$displayData->remoteid ?>" value="3" />
            <label for="star3<?= $displayData->remoteid
?>" title="3 امتیاز">3 stars</label>
            <input type="radio" id="star2<?=
$displayData->remoteid ?>" name="rate<?=
$displayData->remoteid ?>" value="2" />
            <label for="star2<?= $displayData->remoteid
?>" title="2 امتیاز">2 stars</label>
            <input type="radio" id="star1<?=
$displayData->remoteid ?>" name="rate<?=
$displayData->remoteid ?>" value="1" />
            <label for="star1<?= $displayData->remoteid
?>" title="1 امتیاز">1 star</label>
        </div>

        <?php
if($displayData->params->get('averagerate')): ?>
            <?php
if(isset($displayData->average[$displayData->remoteid])): ?>
                <div style="display: flex; justify-content:
space-around">
                    <div>
                        <span><?=
round($displayData->average[$displayData->remoteid]->average, 1);
?></span>
                        /
                        <span>5</span>
                    </div>
                    <div>
                        <i class="fa fa-user"
style="color: #bdbbbe"></i>
                        <span><?=
$displayData->average[$displayData->remoteid]->totalRate;
?></span>
                    </div>
                </div>
            <?php endif; ?>
        <?php endif; ?>
    </div>
<?php endif; ?>
<?php endif; ?><!--[/JCBGUI$$$$]-->