本文整理汇总了PHP中freelancer::getProfiAllRandom方法的典型用法代码示例。如果您正苦于以下问题:PHP freelancer::getProfiAllRandom方法的具体用法?PHP freelancer::getProfiAllRandom怎么用?PHP freelancer::getProfiAllRandom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类freelancer
的用法示例。
在下文中一共展示了freelancer::getProfiAllRandom方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: freelancer
<?php
/**
* Список PROFI для лендинга.
*/
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/freelancer.php';
$freelancer = new freelancer();
$profiList = $freelancer->getProfiAllRandom(90);
if ($profiList) {
?>
<h2 class="b-page__title b-page__title_center">
<a href="/profi/" class="b-page__title_decor_none b-page__title_color_32">Лучшие исполнители</a>
</h2>
<div class="b-layout b-layout_box b-layout_margbot_30 b-layout_padleft_30_iphone b-layout_padright_15_iphone b-layout_pad_null_r560">
<?php
foreach ($profiList as $profiUser) {
$user_profile_url = sprintf('/users/%s/', $profiUser['login']);
?>
<div class="b-layout b-layuot_width_33ps b-layuot_width_50ps b-layout__one_width_full_iphone b-layout_float_left b-layout_height_180 profi-fix">
<div class="b-layout b-layout_padbot_20 b-layout_padright_15">
<table class="b-layout__table b-fon_bg_f0ffdf_hover b-layout_hover_link_decorate b-layout__table_width_full">
<tr class="b-layout__tr">
<td class="b-layout__td b-layout__td_width_100 b-layout__td_pad_10 b-layout__td_ipad">
<a href="<?php
echo $user_profile_url;
?>
" class="b-layout__link">
<span class="i-pic b-pic_border_radius_50 b-pic_bord_ffa800 b-layout_overflow_hidden"><?php
echo view_avatar($profiUser['login'], $profiUser['photo'], 0, 0, 'b-pic b-pic_border_radius_50_safari-win');
?>
</span>