'', '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; } } include_once( get_template_directory() . '/functions/install/class-install-helper.php' ); /** * Setup theme color. * * @since 1.0 * */ add_action('wp_head','business_max_primary_color'); function business_max_primary_color(){ $option = wp_parse_args( get_option( 'businessmax_options', array() ), business_max_data() ); if($option['theme_color_custom_show']==true){ $color = $option['theme_color_custom_color']; } else{ $color = $option['theme_color']; } echo ''; } /** * Primary Color. * * Business Max assing primary color in theme css. * * @since 1.1 * */ function business_max_set_color( $color = '#A0D247' ){ $option = wp_parse_args( get_option( 'businessmax_options', array() ), business_max_data() ); list($r, $g, $b) = sscanf($color, "#%02x%02x%02x"); ?> .carousel-navigation a:before, .service-box h4 a:hover, .project-caption h4 a:hover, .home-blog-col h3 a:hover, .home-blog-col-date li i:hover, .home-blog-col-tags a i, .home-blog-col span a i, .blog-read-btn:hover, .footer-widget ul li a:hover, .footer-blog-post:hover h3 a, .page-breadcrumb > li.active a, ul.post-content li:hover a, .sm-sidebar-post h4 a:hover, .gallery .owl-theme .owl-controls .owl-buttons div, ul.arrow-style.ls1 li:before, .contact-section .widgets-contact .widget-contact-icon i, .services-section .service-grid i, .btn-search-modal, .sidebar-widget a:hover, .sidebar-widget a:focus, .footer-widget a:hover, .footer-widget a:focus{ color: ; } .navbar-toggle, .navbar .navbar-nav > .active > a, .navbar .navbar-nav > .active > a:hover, .navbar .navbar-nav > .active > a:focus, .navbar .navbar-nav > .open > a, .navbar .navbar-nav > .open > a:hover, .navbar .navbar-nav > .open > a:focus, .navbar .navbar-nav > li > a:hover, .navbar .navbar-nav > li > a:focus, .dropdown-item:hover, .navbar-toggler, .dropdown-menu, .dropdown-item.active, .carousel-navigation:hover .carousel-next, .carousel-navigation:hover .carousel-prev, .service-box span i, .home-gallery-showcase-icons a:hover, .home-blog-col-tags a:hover, .home-blog-col-cats a:hover, .blog-read-btn, .protfolio-filter > li a, .widget-content > .input-group > .input-group-addon, .sidebar-widget-tags a:hover, .blog-pagination a:hover, .blog-pagination a.active, .post-date-section .date, .gallery-col:hover .team-member-desc, .gallery .owl-theme .owl-controls .owl-buttons div.owl-prev:hover, .gallery .owl-theme .owl-controls .owl-buttons div.owl-next:hover, .purchase-colout, .comment-item .btn.btn-sm, .btn-default, .scroll-top, .widgets-contact .widget-contact-icon:after, .widget-newsletter-form form .btn, .panel-default > .panel-heading a:not(.collapsed), .main-btn, .search-open, .more-link, button, input[type="button"], input[type="reset"], input[type="submit"]{ background-color: ; } .navbar{ border-top: 2px solid ; border-bottom: 2px solid ; } .navbar .navbar-nav > .active > a, .navbar .navbar-nav > .active > a:hover, .navbar .navbar-nav > .active > a:focus, .navbar .navbar-nav > .open > a, .navbar .navbar-nav > .open > a:hover, .navbar .navbar-nav > .open > a:focus, .navbar .navbar-nav > li > a:hover, .navbar .navbar-nav > li > a:focus, .service-box:hover > span, .protfolio-filter > li a, .panel-default > .panel-heading a:not(.collapsed) { border-color: ; } .dropdown-item, .sidebar-widget-title h2 { border-bottom: 1px solid ; } .carousel-caption{ border-top: 4px solid ; border-bottom: 4px solid ; } .home-gallery-showcase-icons a:hover, .blog-social li a i, .widget-content > .input-group > .input-group-addon, .sidebar-widget-tags a:hover, .blog-pagination a:hover, .blog-pagination a.active, button, input[type="button"], input[type="reset"], input[type="submit"] { border: 1px solid ; } .blog-read-btn{ border: 2px solid ; } .copyright { border-bottom:4px solid ; } .sidebar-widget-title h2{ border-left: 4px solid ; } .home-blog-col-tags a , .home-blog-col-cats a{ background-image: linear-gradient(to bottom, #edf0f2 50%, 50%); } .blog-read-btn{ background-image: linear-gradient(to bottom, 50%, #fff 50%); } .footer { width:100%; background:#040408; overflow: hidden; padding: 0; width: 100%; border-top: 6px solid ; } .page-title-section .overlay{ padding-top: px; padding-bottom: px; } .page-title h1{ color: ; } .page-title-section.has_header_image .overlay{ background-color: ; } body{ font-size: px !important; } .navbar .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; }