post_content, ' 1, 'post_type' => 'post', 'category_name' => esc_attr($photograph_settings['photograph_video_category']), )); if( ($photograph_slider_video_display=='video') && ( $photograph_video_upload !=0 || $photograph_slider_youtube_url !='' || $photograph_settings['photograph_video_category'] !='') ){ ?>
have_posts() && ($photograph_settings['photograph_video_category'] !='')):$query->the_post(); $attachment_id = get_post_thumbnail_id(); $image_attributes = wp_get_attachment_image_src($attachment_id,'full'); ?>
have_posts()):$query->the_post(); ?>

'; } ?>
intval($photograph_settings['photograph_slider_number']), 'post_type' => array( 'post' ) , 'category_name' => esc_attr($category), )); if($query->have_posts() && !empty($category) ){ ?>
    have_posts()):$query->the_post(); $attachment_id = get_post_thumbnail_id(); $image_attributes = wp_get_attachment_image_src($attachment_id,'photograph_slider_image'); $title_attribute = apply_filters('the_title', get_the_title(get_queried_object_id())); $excerpt = get_the_excerpt(); echo '
  • '; if ($image_attributes) { echo '
    '; }else{ echo '
    '; } echo '
    '; if ($title_attribute != '' || $excerpt != '') { echo '
    '; $remove_link = $photograph_settings['photograph_slider_link']; if($remove_link == 0){ if ($title_attribute != '') { echo '

    '.get_the_title().'

    '; } }else{ echo '

    '.get_the_title().'

    '; } if ($excerpt != '') { echo '

    '.wp_strip_all_tags( get_the_excerpt(), true ).'

    '; } echo '
    '; } echo '
    '; echo '
  • '; endwhile; wp_reset_postdata(); ?>
ID; $photograph_categories_list = get_the_category($photograph_post_id); ?> name; $photograph_category_id = $category_list->term_id; $photograph_category_link = get_category_link( $photograph_category_id ); ?> $photograph_animation_effect, 'photograph_slideshowSpeed' => $photograph_slideshowSpeed, 'photograph_animationSpeed' => $photograph_animationSpeed, ) ); wp_enqueue_script( 'photograph-slider' ); if( $photograph_settings['photograph_responsive'] == 'on' ) { wp_enqueue_style('photograph-responsive', get_template_directory_uri().'/css/responsive.css'); } /********* Adding Multiple Fonts ********************/ $photograph_googlefont = array(); array_push( $photograph_googlefont, 'Roboto'); array_push( $photograph_googlefont, 'Rajdhani'); $photograph_googlefonts = implode("|", $photograph_googlefont); wp_register_style( 'photograph-google-fonts', '//fonts.googleapis.com/css?family='.$photograph_googlefonts .':300,400,400i,500,600,700'); wp_enqueue_style( 'photograph-google-fonts' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } $photograph_internal_css=''; /* Theme Color Styles */ $photograph_theme_color_styles = get_theme_mod( 'theme_color_styles', '#fd513b' ); if($photograph_theme_color_styles !='#fd513b'){ $photograph_internal_css .= ' /* Nav, links and hover */ a, ul li a:hover, ol li a:hover, .main-navigation a:hover, /* Navigation */ .main-navigation ul li.current-menu-item a, .main-navigation ul li.current_page_ancestor a, .main-navigation ul li.current-menu-ancestor a, .main-navigation ul li.current_page_item a, .main-navigation ul li:hover > a, .main-navigation li.current-menu-ancestor.menu-item-has-children > a:after, .main-navigation li.current-menu-item.menu-item-has-children > a:after, .main-navigation ul li:hover > a:after, .main-navigation li.menu-item-has-children > a:hover:after, .main-navigation li.page_item_has_children > a:hover:after, .main-navigation ul li ul li a:hover, .main-navigation ul li ul li:hover > a, .main-navigation ul li.current-menu-item ul li a:hover, .side-menu-wrap .side-nav-wrap a:hover, /* Side Menu */ .entry-title a:hover, /* Post */ .entry-title a:focus, .entry-title a:active, .entry-meta a:hover, .image-navigation .nav-links a, a.more-link, .widget ul li a:hover, /* Widgets */ .widget-title a:hover, .widget_contact ul li a:hover, .site-info .copyright a:hover, /* Footer */ #secondary .widget-title, #colophon .widget ul li a:hover, #footer-navigation a:hover, blockquote:before, .filter-button ul li:hover, .filter-button ul li.active, .couples-row .couples-column:first-child:before { color: '. esc_attr( $photograph_theme_color_styles ).'; }'.' .main-navigation ul li ul:before, .side-menu:after, .page-overlay:before, #secondary .widget-title:before, .featured-gallery .featured-text-content, .maps-container:before { background-color: '. esc_attr( $photograph_theme_color_styles ).'; }'.' .main-navigation ul li ul:after { border-bottom-color: '. esc_attr( $photograph_theme_color_styles ).'; }'.' /* Webkit */ ::selection { background: '. esc_attr( $photograph_theme_color_styles ).'; color: #fff; } '.' /* Gecko/Mozilla */ ::-moz-selection { background: '. esc_attr( $photograph_theme_color_styles ).'; color: #fff; } '.' /* Accessibility ================================================== */ .screen-reader-text:hover, .screen-reader-text:active, .screen-reader-text:focus { background-color: #f1f1f1; color: '. esc_attr( $photograph_theme_color_styles ).'; }'.' /* Default Buttons ================================================== */ input[type="reset"],/* Forms */ input[type="button"], input[type="submit"], .search-submit, .btn-default, .widget_tag_cloud a, .search-x { background-color: '. esc_attr( $photograph_theme_color_styles ).'; }'.' /* #Search Box ================================================== */ #search-box .search-submit { border-bottom: 1px solid '. esc_attr( $photograph_theme_color_styles ).'; color: '. esc_attr( $photograph_theme_color_styles ).'; }'.' #search-box input[type="search"] { border-bottom: 1px solid '. esc_attr( $photograph_theme_color_styles ).'; }'.' /* #bbpress ================================================== */ #bbpress-forums .bbp-topics a:hover { color: '. esc_attr( $photograph_theme_color_styles ).'; }'.' .bbp-submit-wrapper button.submit { background-color: '. esc_attr( $photograph_theme_color_styles ).'; border: 1px solid '. esc_attr( $photograph_theme_color_styles ).'; }'.' /* Woocommerce ================================================== */ .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce-demo-store p.demo_store { background-color: '. esc_attr( $photograph_theme_color_styles ).'; }'.' .woocommerce .woocommerce-message:before { color:'. esc_attr( $photograph_theme_color_styles ).'; }'; } /* Custom Css */ if ($photograph_settings['photograph_logo_high_resolution'] !=0){ $photograph_internal_css .= '/* Center Logo for high resolution screen(Use 2X size image) */ .top-logo-title .custom-logo-link { display: inline-block; } .top-logo-title .custom-logo { height: auto; width: 50%; } .top-logo-title #site-detail { display: block; text-align: center; } @media only screen and (max-width: 767px) { .top-logo-title .custom-logo-link .custom-logo { width: 60%; } } @media only screen and (max-width: 480px) { .top-logo-title .custom-logo-link .custom-logo { width: 80%; } }'; } if($photograph_settings['photograph_slider_content_bg_color'] =='on' ){ $photograph_internal_css .= '/* Slider/Video/Image Content With background color */ .layer-slider .slider-content, .vid-thumb-bg:not(.movie) .vid-thumb-content { background-color: rgba(0, 0, 0, 0.5); border-radius: 20px; padding: 30px; }'; } if($photograph_settings['photograph_slider_content'] == 'off'){ $photograph_internal_css .= /* Hide Slider/Video/Image Content */ '.slider-content, .vid-thumb-content { display: none; }'; } if($photograph_settings['photograph_disable_volume_button'] == 1){ $photograph_internal_css .= /* Disable volume button */ '.jarallax-video-pause { display: none; }'; } if($photograph_settings['photograph_header_display']=='header_logo'){ $photograph_internal_css .= ' #site-branding #site-title, #site-branding #site-description{ clip: rect(1px, 1px, 1px, 1px); position: absolute; }'; } wp_add_inline_style( 'photograph-style', wp_strip_all_tags($photograph_internal_css) ); } add_action( 'wp_enqueue_scripts', 'photograph_scripts' ); /**************** Categoy Lists ***********************/ if( !function_exists( 'photograph_categories_lists' ) ): function photograph_categories_lists() { $photograph_cat_args = array( 'type' => 'post', 'taxonomy' => 'category', ); $photograph_categories = get_categories( $photograph_cat_args ); $photograph_categories_lists = array('' => esc_html__('--Select--','photograph')); foreach( $photograph_categories as $category ) { $photograph_categories_lists[esc_attr( $category->slug )] = esc_html( $category->name ); } return $photograph_categories_lists; } endif; /**************** Tag list Lists ***********************/ if( !function_exists( 'photograph_tag_lists' ) ): function photograph_tag_lists() { $tags = get_tags(); $photograph_tag_list = array('' => esc_html__('--Select--','photograph')); foreach ( (array) $tags as $tag ) { $photograph_tag_list[esc_attr( $tag->slug )] = esc_html($tag->name); } return $photograph_tag_list; } endif;