enqueueStyles(); wp_enqueue_style(“stylesheet”, QODE_ROOT . “/css/stylesheet.min.css”); if ($woocommerce) { wp_enqueue_style(“woocommerce”, QODE_ROOT . “/css/woocommerce.min.css”); if (!empty($qode_options_proya[‘responsiveness’]) && $qode_options_proya[‘responsiveness’] == ‘yes’) { wp_enqueue_style(“woocommerce_responsive”, QODE_ROOT . “/css/woocommerce_responsive.min.css”); } } wp_enqueue_style(“qode_print”, QODE_ROOT . “/css/print.css”); preg_match(“#Chrome/(.+?)\.#”, $_SERVER[‘HTTP_USER_AGENT’], $match); if (!empty($match)) { $version = $match[1]; } else { $version = 0; } $mac_os = strpos($_SERVER[‘HTTP_USER_AGENT’], “Macintosh; Intel Mac OS X”); if ($is_chromeContinue reading “function”
Author Archives: kamalarenga
social
function wpvkp_social_buttons($content) { global $post; if(is_singular() || is_home()){ // Get current page URL $sb_url = urlencode(get_permalink()); // Get current page title $sb_title = str_replace( ‘ ‘, ‘%20’, get_the_title()); // Construct sharing URL without using any script $twitterURL = ‘https://twitter.com/intent/tweet?text=’.$sb_title.’&url=’.$sb_url.’&via=wpvkp’; $facebookURL = ‘https://www.facebook.com/sharer/sharer.php?u=’.$sb_url; $linkedInURL = ‘https://www.linkedin.com/shareArticle?mini=true&url=’.$sb_url.’&title=’.$sb_title; $gplusURL =’https://plus.google.com/share?url=’.$sb_url.”; // Add sharing button at the end ofContinue reading “social”
category function
add_shortcode(‘display_companies’, ‘showproducts’); function showproducts() { $taxonomies = get_terms( array(‘taxonomy’ => ‘job_company’,‘hide_empty’ => false,‘parent’ => 0, ) );$i = 1; foreach ( $taxonomies as $taxonomy ) { {$meta_image = get_wp_term_image($taxonomy->term_id); } $pimage = get_term_meta($taxonomy->term_id, ‘bgimage’, true);$pimages = wp_get_attachment_image_src($pimage, ‘full’); $pimagelogos = wp_get_attachment_image_src($pimagelogo, ‘full’); echo ‘ }echo ”;echo ”;}function job_search_function() {$message = ‘ ‘;return $message;}add_shortcode(‘custom_job_search’, ‘job_search_function’);function job_company_posts(Continue reading “category function”
socialsharing
function wpvkp_social_buttons($content) { global $post; if(is_singular() || is_home()){ // Get current page URL $sb_url = urlencode(get_permalink()); // Get current page title $sb_title = str_replace( ‘ ‘, ‘%20’, get_the_title()); // Construct sharing URL without using any script $twitterURL = ‘https://twitter.com/intent/tweet?text=’.$sb_title.’&url=’.$sb_url.’&via=wpvkp’; $facebookURL = ‘https://www.facebook.com/sharer/sharer.php?u=’.$sb_url; $linkedInURL = ‘https://www.linkedin.com/shareArticle?mini=true&url=’.$sb_url.’&title=’.$sb_title; $gplusURL =’https://plus.google.com/share?url=’.$sb_url.”; // Add sharing button at the end ofContinue reading “socialsharing”