str_replace(99999, '%#%', esc_url(get_pagenum_link(99999))), 'format' => '?paged=%#%', 'current' => max(1, get_query_var('paged')),
'total' => $wp_query->max_num_pages, 'next_text' => 'Next>', 'prev_text' => '<Previous', 'type' => 'list');
$args = wp_parse_args($args, $default);
$pagination = '
';
if (paginate_links(array_merge(array('type' => 'array'), $args))) {
$replaced_pagination = str_replace( "
jr_get_settings('sub_social_networking');
$html = '';
if ($settings) {
foreach ($settings as $k => $v) {
if (kvalue($v, 'status') == 'on')
$html .= '';
}
}
return $html;
}
function contact_us_function(){
$content = 'Name: '.$_POST['name'].'
';
$content .= 'Email: '.$_POST['email'].'
';
$content .= $_POST['comment'];
$headers = 'From: <'.$_POST['email'].'>' . "\r\n";
add_filter( 'wp_mail_content_type', 'set_html_content_type' );
wp_mail( $_POST['sendto_email'] , $_POST['email_subject'], $content,$headers );
remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
echo "success";
exit;
}
function set_html_content_type() {
return 'text/html';
}
function custom_image_size_large( $sizes ) {
$custom_sizes = array(
'gallery_img' => 'Gallery Image'
);
return array_merge( $sizes, $custom_sizes );
}
/**
* Filters wp_title to print a neat tag based on what is being viewed.
*
* @param string $title Default title text for current view.
* @param string $sep Optional separator.
* @return string The filtered title.
*/
function theme_name_wp_title( $title, $sep ) {
if ( is_feed() ) {
return $title;
}
global $page, $paged;
// Add the blog name
$title .= get_bloginfo( 'name', 'display' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) ) {
$title .= " $sep $site_description";
}
// Add a page number if necessary:
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
$title .= " $sep " . sprintf( __( 'Page %s', '_s' ), max( $paged, $page ) );
}
return $title;
}
add_filter( 'wp_title', 'theme_name_wp_title', 10, 2 );
add_filter( 'image_size_names_choose', 'custom_image_size_large' );
remove_filter( 'the_content', 'wpautop' );
add_action('wp_ajax_nopriv_contact_us_data', 'contact_us_function');
add_action('wp_ajax_contact_us_data', 'contact_us_function');