<div class="wrapper-popular-user">
	<?php 
echo tag('h3', lang('related_chef'), array('class' => 'mb20'));
if (!empty($valuesRelatedPopularUser)) {
    ?>
	<ul class="no-pd no-ul-type">
		<?php 
    foreach ($valuesRelatedPopularUser as $value) {
        $user_id = $value['UserID'];
        $username = $value['UserName'];
        $userphoto = $value['UserPhoto'];
        $cnt_follower = !empty($value['NumberOfFollower']) ? sprintf('%s %s', $value['NumberOfFollower'], 'Follower') : false;
        $cnt_recipe = !empty($value['NumberOfRecipe']) ? sprintf('%s %s', $value['NumberOfRecipe'], lang('recipe')) : false;
        $concat_follower_recipe = customConcat($cnt_follower, $cnt_recipe);
        $path_image = '/resources/images/uploads/users/thumbs/' . $userphoto;
        $custom_image = $domain . $path_image;
        if (!file_exists($webroot . $path_image)) {
            $firstLetter = !empty($username[0]) ? strtoupper($username[0]) : false;
            $userImage = tag('div', $firstLetter, array('class' => 'alphabet-placeholder', 'wrapTag' => 'a', 'wrapAttributes' => array('title' => $username, 'href' => $domain . '/users/profile/' . $user_id . '/' . seoURL($username))));
        } else {
            $userImage = tag('img', false, array('src' => $custom_image, 'wrapTag' => 'a', 'wrapAttributes' => array('title' => $username, 'href' => $domain . '/users/profile/' . $user_id . '/' . seoURL($username)), 'img-progressive-type' => 'users'));
        }
        ?>
					<li>
						<div class="row">
							<div class="col-sm-3">
								<?php 
        echo $userImage;
        ?>
							</div>
							<div class="col-sm-9">
Exemple #2
0
				<span style="font-size: 20px; color: #ED6E0C;">
					20 SUPER CHEF
				</span>

				<div style="color: #acb1b8;">
					12 POINT TO LEVEL UP
				</div>
			</div>

			<div class="simple-bio">
				<br>
				<?php 
$country = isset($valuesUserAccount['CountryName']) ? $valuesUserAccount['CountryName'] : false;
$city = isset($valuesUserAccount['CityName']) ? $valuesUserAccount['CityName'] : false;
$country_city = customConcat($city, $country);
if (!empty($country_city)) {
    ?>
						<p class="pd10 no-mg">
							<span class="glyphicon glyphicon-map-marker"></span> &nbsp;
				<?php 
    echo $country_city;
    ?>
						</p>
				<?php 
}
if (!empty($birthday)) {
    ?>
						<p class="pd10 no-mg">
							<span class="glyphicon glyphicon-calendar"></span> &nbsp;
				<?php 
Exemple #3
0
<div class="wrapper-popular-user wrapper-popular-recipe hidden-print" data-spy="affix" data-offset-top="180" data-offset-bottom="150">
	<?php 
    echo tag('h3', $heading, array('class' => 'mb10 mt20'));
    ?>
	<ul class="no-pd no-ul-type">
		<?php 
    $counter = 0;
    foreach ($values as $value) {
        $recipe_id = $value['RecipeID'];
        $title = $value['RecipeName'];
        $image = $value['PrimaryPhoto'];
        $slug = $value['Slug'];
        $cnt_recook = !empty($value['NumberOfRecook']) ? sprintf('%s %s', $value['NumberOfRecook'], lang('recook')) : false;
        $cnt_comment = !empty($value['NumberOfComment']) ? sprintf('%s %s', $value['NumberOfComment'], lang('comment')) : false;
        $concat_recook_comment = customConcat($cnt_recook, $cnt_comment);
        $path_image = '/resources/images/uploads/recipe/primary/thumbs/' . $image;
        $custom_image = $domain . $path_image;
        if (!file_exists($webroot . $path_image)) {
            $custom_image = $domain . '/resources/images/placeholder/recipe.jpg';
        }
        $counter++;
        ?>
		<li>
			<div class="row">
				<div class="col-sm-3">
					<?php 
        echo tag('img', false, array('src' => $custom_image, 'wrapTag' => 'a', 'wrapAttributes' => array('href' => $domain . '/resep-masak/' . $recipe_id . '/' . $slug, 'title' => $title)));
        ?>
				</div>
				<div class="col-sm-9">