role_names); $val = get_option( 'wp_user_roles' ); $levels = array(); foreach ($current_user->roles as $role) { $levels[$role] = isset($roles[$role])?$roles[$role]:$role; } ?>
$name){ $rc++; ?>

get_var("select count(*) from {$wpdb->prefix}ahm_download_stats where uid = '{$current_user->ID}'"),0,'.',','); ?>

get_var("select count(*) from {$wpdb->prefix}ahm_download_stats where uid = '{$current_user->ID}' and `year` = YEAR(CURDATE()) and `month` = MONTH(CURDATE()) and `day` = DAY(CURDATE())"),0,'.',','); ?>

'wpdmpro', 'posts_per_page' => 20, 'orderby' => 'rand' ); if($params['recommended'] != 'recent') $qparams['tax_query'] = array(array('taxonomy' => 'wpdmcategory', 'field' => 'slug', 'terms' => $params['recommended'])); else $qparams['orderby'] = 'date'; $q = new WP_Query($qparams); while ($q->have_posts()) { $q->the_post(); if (\WPDM\Package::userCanAccess(get_the_ID()) && has_post_thumbnail(get_the_ID())) { ?> = 6) break; } } wp_reset_postdata(); ?>
[thumb_40x40]
[page_link]
[file_size]
'; ?>
post_type == 'wpdmpro'){ ?> $fav)); ?>
post_title; ?> 'btn-xs rem-fav fav_'.$fav, 'a2f_label' => "", 'rff_label' => ""), false); ?>
get_results("select p.post_title,s.* from {$wpdb->prefix}posts p, {$wpdb->prefix}ahm_download_stats s where s.uid = '{$current_user->ID}' and s.pid = p.ID order by `timestamp` desc limit 0,5"); foreach($res as $stat){ ?>
post_title; ?> timestamp); ?> ip; ?>