'', 'id' => '')); $url = ''; if ($media['id'] != '') { if ( strpos( get_post_mime_type( $media['id'] ), 'image' ) !== false ) { $image = wp_get_attachment_image_src( $media['id'], $size ); if ( $image ){ $url = $image[0]; } } else { $url = wp_get_attachment_url( $media['id'] ); } } if ($url == '' && $media['url'] != '') { $id = attachment_url_to_postid( $media['url'] ); if ( $id ) { if ( strpos( get_post_mime_type( $id ), 'image' ) !== false ) { $image = wp_get_attachment_image_src( $id, $size ); if ( $image ){ $url = $image[0]; } } else { $url = wp_get_attachment_url( $id ); } } else { $url = $media['url']; } } return $url; } } function business_idea_copyrighttext(){ $business_idea_option = wp_parse_args( get_option( 'business_idea_option', array() ), business_idea_default_data() ); ?> $v) { if (isset ($v['content_page'])) { $v['content_page'] = absint($v['content_page']); if ($v['content_page'] > 0) { $page_ids[] = wp_parse_args($v, array( 'icon_type' => 'icon', 'image' => '', 'icon' => 'gg', 'iconcolor' => '#242424', 'enable_link' => 0 )); } } } } return $page_ids; } } if ( ! function_exists( 'business_idea_get_section_about_data' ) ) { function business_idea_get_section_about_data() { $business_idea_option = wp_parse_args( get_option( 'business_idea_option', array() ), business_idea_default_data() ); $boxes = $business_idea_option['business_idea_about_boxes']; if (is_string($boxes)) { $boxes = json_decode($boxes, true); } $page_ids = array(); if (!empty($boxes) && is_array($boxes)) { foreach ($boxes as $k => $v) { if (isset ($v['content_page'])) { $v['content_page'] = absint($v['content_page']); if ($v['content_page'] > 0) { $page_ids[] = wp_parse_args($v, array('enable_link' => 0, 'hide_title' => 0)); } } } } $page_ids = array_filter( $page_ids ); return $page_ids; } } if ( ! function_exists( 'business_idea_get_section_team_data' ) ) { function business_idea_get_section_team_data() { $business_idea_option = wp_parse_args( get_option( 'business_idea_option', array() ), business_idea_default_data() ); $members = $business_idea_option['business_idea_team']; if (is_string($members)) { $members = json_decode($members, true); } $page_ids = array(); if (!empty($members) && is_array($members)) { foreach ($members as $k => $v) { $page_ids[] = wp_parse_args($v, array( 'user_id' => '', 'name' => '', 'designation' => '', 'desc' => '' )); } } return $page_ids; } } if ( ! function_exists( 'business_idea_get_section_testimonial_data' ) ) { function business_idea_get_section_testimonial_data(){ $business_idea_option = wp_parse_args( get_option( 'business_idea_option', array() ), business_idea_default_data() ); $members = $business_idea_option['business_idea_testimonial']; if (is_string($members)) { $members = json_decode($members, true); } $page_ids = array(); if (!empty($members) && is_array($members)) { foreach ($members as $k => $v) { $page_ids[] = wp_parse_args($v, array( 'user_id' => '', 'name' => '', 'designation' => '', 'desc' => '', 'link' => '', )); } } return $page_ids; } } function business_idea_categorized_blog() { $category_count = get_transient( 'business_idea_categories' ); if ( false === $category_count ) { $categories = get_categories( array( 'fields' => 'ids', 'hide_empty' => 1, 'number' => 2, ) ); $category_count = count( $categories ); set_transient( 'business_idea_categories', $category_count ); } if ( is_preview() ) { return true; } return $category_count > 1; } /** * Flush out the transients */ function business_idea_category_transient_flusher() { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } // Like, beat it. Dig? delete_transient( 'business_idea_categories' ); } add_action( 'edit_category', 'business_idea_category_transient_flusher' ); add_action( 'save_post', 'business_idea_category_transient_flusher' ); add_filter('get_avatar','business_idea_gravatar_class'); function business_idea_gravatar_class($class) { $class = str_replace("class='avatar", "class='avatar news-author-thumb", $class); return $class; } if( !function_exists('business_idea_breadcrumbs')){ function business_idea_breadcrumbs(){ $business_idea_option = wp_parse_args( get_option( 'business_idea_option', array() ), business_idea_default_data() ); ?>
' . __('Home','business-idea') . ''; }else if( is_archive() ){ the_archive_title( '

', '

' ); the_archive_description( '
', '
' ); }else{ ?>

'', 'title' => '', 'desc' => '', 'fallback' => false, ); // Parse args. $args = wp_parse_args( $args, $defaults ); // Set aria hidden. $aria_hidden = ' aria-hidden="true"'; // Set ARIA. $aria_labelledby = ''; /* * See https://www.paciellogroup.com/blog/2013/12/using-aria-enhance-svg-accessibility/. */ if ( $args['title'] ) { $aria_hidden = ''; $unique_id = uniqid(); $aria_labelledby = ' aria-labelledby="title-' . $unique_id . '"'; if ( $args['desc'] ) { $aria_labelledby = ' aria-labelledby="title-' . $unique_id . ' desc-' . $unique_id . '"'; } } // Begin SVG markup. $svg = ''; // Display the title. if ( $args['title'] ) { $svg .= '' . esc_html( $args['title'] ) . ''; // Display the desc only if the title is already set. if ( $args['desc'] ) { $svg .= '' . esc_html( $args['desc'] ) . ''; } } /* * Display the icon. * * See https://core.trac.wordpress.org/ticket/38387. */ $svg .= ' '; // Add some markup to use as a fallback for browsers that do not support SVGs. if ( $args['fallback'] ) { $svg .= ''; } $svg .= ''; return $svg; } include_once( get_template_directory() . '/inc/install/class-install-helper.php' ); if ( ! function_exists( 'business_idea_author_detail' ) ) : function business_idea_author_detail(){ ?>
'; business_idea_set_color($color); echo ''; } function business_idea_set_color( $color = '#00B2FF' ){ $business_idea_option = wp_parse_args( get_option( 'business_idea_option', array() ), business_idea_default_data() ); $color = sanitize_hex_color($color); list($r, $g, $b) = sscanf($color, "#%02x%02x%02x"); ?> /* hero section */ .slide-filter::before{ background-color: ; } .big-title{ color: ; } .slider-content{ color: ; } .about-area .section-title, .about-area .section-overlay .section-title{ color: ; } .about-area .section-description, .about-area .section-overlay .section-description{ color: ; } .about-area h3.about-post-title, .about-area h3.about-post-title a{ color: ; } .about-area .about-content, .about-area blockquote{ color: ; } .contact-area .section-title, .contact-area .section-overlay .section-title{ color: ; } .contact-area .section-description, .contact-area .section-overlay .section-description{ color: ; } .news-area .section-title, .news-area .section-overlay .section-title{ color: ; } .news-area .section-description, .news-area .section-overlay .section-description{ color: ; } .social-area .section-title, .social-area .section-overlay .section-title{ color: ; } .dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover, .nav .open > a, .nav .open > a:hover, .nav .open > a:focus, .dropdown-menu>.active>a, .dropdown-menu>.active>a:focus, .dropdown-menu>.active>a:hover, .sub-header a, .sub-header a:hover, .sub-header a:focus, .slider .carousel-control .fa, .sections .section-title strong, .service-icon .fa, .service-area .service-title:hover, .service-area .service-title:focus, .about-area a, .about-area h3 a:hover, .about-area h3 a:focus, .product-category h6, .product-category a, .product-title a h3:hover, .product-title a h3:focus, .team-area .team-item-area .team-title:hover, .team-area .team-item-area .team-title:focus, .team-item-area .team-footer ul li .fa, .newsletter-content-area input[type="submit"]:hover, .newsletter-content-area input[type="submit"]:focus, .news-title-link:hover, .news-title-link:focus, .news-title-link h3:hover, .news-title-link h3:focus, .news-item-area .time, .news-item-area .media-body a:hover, .news-item-area .media-body a:focus, .news-item-area a, .callout-link, .pricing-item-area.active .pricing-features .pricing-icon, .portfolio-tabs ul li a:hover, .portfolio-tabs ul li a:focus, .widget ul li > a:hover, .widget ul li > a:focus, .footer-post-area .footer-post-time, .footer-post-area .footer_post_title:hover, .footer-post-area .footer_post_title:hover, .footer-contact-info span .fa, .copyright-contents a:hover, .copyright-contents a:focus, .site-content .blog a:hover, .site-content .blog a:focus, .site-content .blog .entry-title:hover, .site-content .blog .entry-title:focus, .author_detail .author_title, .author_detail .author_title h4, .widget a, .site-content a, .site-content .blog a, .comment-reply-link, .btn-primary, .btn-link:hover, .btn-link:focus, .btn-secondary:hover, .btn-secondary:focus{ color: ; } @media (max-width: 767px){ .float-header .navbar-default .navbar-nav .open .dropdown-menu>li>a:hover, .float-header .navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{ color: !important; } } .header .btn-primary, .navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:focus, .navbar-default .navbar-nav>.open>a:hover, .header .navbar-nav > .active > a, .header .navbar-nav > .active > a:before, .slide-btn:hover, .slide-btn:focus, .slide-back, .carousel-indicators .active, .sections .section-title:before, .service-button, .start-add-to-cart a, .testimonial-client-profile, .testimonial-client-profile:after, .newsletter-content-area input[type="submit"], .news-thumbnail .news-overlay a, input[type="submit"], .callout-link:hover, .callout-link:focus, .carousel-control, .pricing-item-area .pricing-header, .pricing-features .pricing-button:hover, .pricing-features .pricing-button:focus, .pricing-item-area.active .pricing-features .pricing-button, .portfolio-tabs ul li.active a, .portfolio-tabs ul li.active a:hover, .portfolio-tabs ul li.active a:focus, .portfolio-item-area span, .scroll_top, .site-content .blog .more-link, .blog .tags a, .search-submit, .widget .tagcloud a, .page-numbers.current, .contact-area .contact-section-header, .btn-primary:hover, .btn-primary:focus, .btn-secondary{ background-color: ; } .header .btn-primary, .btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-secondary{ border-color: ; } .pricing-features .pricing-button:hover, .pricing-features .pricing-button:focus, .pricing-item-area.active .pricing-features .pricing-button, .carousel-indicators li, div[role=form] input[type="text"]:focus, div[role=form] input[type="email"]:focus, div[role=form] textarea:focus{ border: 1px solid ; } .slide-btn:hover, .slide-btn:focus, .newsletter-content-area input[type="submit"]{ border: 2px solid ; } .dropdown-menu{ border-top: 2px solid ; } input[type="submit"] { background-color: ; } blockquote { border-left: 1px solid ; } @media ( max-width: 768px ){ .site-header{ background-color: ; } } .woocommerce span.onsale, .shop-counts-contents, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce button.button.alt, .pirate-forms-submit-button, .pirate-forms-submit-button:hover, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background-color: ; } .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background-color: ; } body{ font-size: px !important; } .header .navbar-nav > li > a, .dropdown-menu > li > a{ font-size: px !important; } h1{ font-size: px; } h2{ font-size: px; } h3{ font-size: px; } h4{ font-size: px; } h5{ font-size: px; } h6{ font-size: px; } .sub-header{ background-color: rgb(,,); } 'product', ); $args['posts_per_page'] = ! empty( $shop_items ) ? absint( $shop_items ) : 4; $loop = new WP_Query( $args ); if ( $loop->have_posts() ) : $i = 1; echo '
'; if($business_idea_option['business_idea_shop_scroll_effect_hide'] == false ) { echo ''; echo '
'; } echo ''; if($business_idea_option['business_idea_shop_scroll_effect_hide'] == false ) { echo ' Previous Next '; } endif; } }