Example #1
0
    $content = "content.php";
}
//------------------------------------------------------------------------------
// Попапы закреплений фрилансеров ----------------------------------------------
$popup = __paramInit('string', 'popup');
$freelancer_binds = new freelancer_binds();
$is_spec = $prof_id > 0;
$prof_use = $is_spec ? professions::GetProfessionOrigin($prof_id) : $prof_group_id;
$allow_frl_bind = $freelancer_binds->isAllowBind($uid, $prof_use, $is_spec);
$binded_to = $freelancer_binds->getBindDateStop($uid, $prof_use, $is_spec);
if ($allow_frl_bind || $binded_to) {
    quickPaymentPopupFrlbind::getInstance()->init(array('prof_id' => $prof_id, 'prof_group_id' => $prof_group_id, 'prof_use' => $prof_use, 'is_spec' => $is_spec, 'ammount' => $freelancer_binds->getPrice($prof_use, $is_spec, (bool) $binded_to, $uid), 'date_stop' => $binded_to, 'autoshow' => $popup == 'bind_prolong', 'addprof' => $is_spec && $freelancer_binds->needAddProf($uid, $prof_use)));
}
$is_bind_first = $freelancer_binds->isBindFirst($uid, $prof_use, $is_spec);
if ($binded_to && !$is_bind_first) {
    quickPaymentPopupFrlbindup::getInstance()->init(array('prof_id' => $prof_use, 'is_spec' => $is_spec, 'ammount' => $freelancer_binds->getPriceUp($prof_use, $is_spec, $uid), 'autoshow' => $popup == 'bind_up'));
}
$is_binded_hide = $binded_to && !$freelancer_binds->isAllowBind($uid, $prof_use, $is_spec, false);
//------------------------------------------------------------------------------
unset($_SESSION['payed_frl_' . md5($_SERVER['REQUEST_URI'])]);
$first_pages = array();
if ($prof_group_id) {
    $first_pages = firstpage::GetAll($prof_group_id, array(), true);
} else {
    $first_pages = firstpage::GetAll($prof_id ?: -1, array());
}
$_SESSION['payed_frl_' . md5($_SERVER['REQUEST_URI'])] = $first_pages ?: array();
$_SESSION['payed_frl_prof_id'] = $prof_group_id ? 0 : ($prof_id ?: -1);
$_SESSION['payed_frl_prof_group_id'] = $prof_group_id;
if ($popup == 'firstpage_prolong') {
    $_SESSION['firstpage_popup'] = 'prolong';
Example #2
0
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <span class="b-shadow__icon b-shadow__icon_close"></span>
        </div>

    <?php 
}
?>

<?php 
if ($allow_frl_bind || $binded_to) {
    echo quickPaymentPopupFrlbind::getInstance()->render();
}
if ($binded_to && !$is_bind_first) {
    echo quickPaymentPopupFrlbindup::getInstance()->render();
}
?>


    <style type="text/css">.b-icon__pro_team{ top:1px;} .b-icon__shield{ top:0 !important;}</style>
</div>

<a id="upper" class="b-page__up" href="#" style=" visibility:hidden;"></a>