function columnsTH($defaults) { if (get_post_type() != 'wpdmpro') { return $defaults; } $img['image'] = "<span class='wpdm-th-icon ttip' style='font-size: 0.8em'><i style='font-size: 80%' class='fa fa-image'></i></span>"; wpdm_array_splice_assoc($defaults, 1, 0, $img); $otf['download_count'] = "<span class='wpdm-th-icon ttip' style='font-size: 0.8em'><i style='font-size: 80%' class='fa fa-download'></i></span>"; $otf['wpdmshortcode'] = 'Short-code'; wpdm_array_splice_assoc($defaults, 3, 0, $otf); return $defaults; }
function wpdm_columns_th($defaults) { if (get_post_type() != 'wpdmpro') { return $defaults; } $img['image'] = "<img src='" . WPDM_BASE_URL . "images/image.png' style='margin-left:10px' title='Img/Ico' alt='Img/Ico' />"; wpdm_array_splice_assoc($defaults, 1, 0, $img); $otf['download_count'] = "<img src='" . WPDM_BASE_URL . "images/download-count.png' title='Download Count' alt='Downloads' />"; $otf['shortcode'] = 'Short-code'; wpdm_array_splice_assoc($defaults, 3, 0, $otf); return $defaults; }
function wpdm_columns_th($defaults) { if (get_post_type() != 'wpdmpro') { return $defaults; } $img['wpdm-image'] = "<i class='fa fa-image'></i>"; wpdm_array_splice_assoc($defaults, 1, 0, $img); $otf['download_count'] = "<i class='fa fa-download'></i>"; $otf['wpdm-shortcode'] = 'Short-code'; wpdm_array_splice_assoc($defaults, 3, 0, $otf); return $defaults; }
function wpdm_columns_th($defaults) { if (get_post_type() != 'wpdmpro') { return $defaults; } $img['image'] = "<span class='fa-stack' style='font-size: 0.8em'><i class='fa fa-circle-thin fa-stack-2x'></i><i style='font-size: 80%' class='fa fa-image fa-stack-1x'></i></span>"; wpdm_array_splice_assoc($defaults, 1, 0, $img); $otf['download_count'] = "<span class='fa-stack' style='font-size: 0.8em'><i class='fa fa-circle-thin fa-stack-2x'></i><i style='font-size: 80%' class='fa fa-download fa-stack-1x'></i></span>"; $otf['wpdmshortcode'] = 'Short-code'; wpdm_array_splice_assoc($defaults, 3, 0, $otf); return $defaults; }
function wpdm_columns_th($defaults) { if (get_post_type() != 'wpdmpro') { return $defaults; } $img['image'] = "Img/Ico"; wpdm_array_splice_assoc($defaults, 1, 0, $img); $otf['download_count'] = 'Downloads'; $otf['shortcode'] = 'Short-code'; wpdm_array_splice_assoc($defaults, 3, 0, $otf); return $defaults; }