/** * Styles the header image displayed on the Appearance > Header admin panel. * * @see marketify_custom_header_setup(). */ function marketify_admin_header_style() { $header_image = get_custom_header(); ?> <style type="text/css"> .appearance_page_custom-header #headimg { border: none; background-color: <?php echo marketify_theme_mod('colors', 'primary'); ?> ; padding: 40px; width: auto; } #headimg h1, #desc { } #headimg h1 { margin: 0 0 0 40px; font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 26px; clear: none; line-height: <?php echo get_custom_header()->height; ?> px } #headimg h1 a { text-decoration: none; } #desc { display: none; } #headimg img { float: left; } </style> <?php }
* */ global $post; ?> <header class="entry-header"> <h1 class="entry-title"><a href="<?php the_permalink(); ?> " rel="bookmark"><?php the_title(); ?> </a></h1> <?php if (marketify_theme_mod('product-display', 'product-display-excerpt')) { ?> <div class="entry-excerpt"><?php echo esc_attr(wp_trim_words(get_the_excerpt(), 10)); ?> </div> <?php } ?> <div class="entry-meta"> <?php do_action('marketify_download_entry_meta_before_' . get_post_format()); ?>
} ?> <div class="col-md-<?php echo $cols; ?> "> <h1 class="site-title"><a href="<?php echo home_url(); ?> "> <?php if (marketify_theme_mod('footer', 'footer-logo')) { ?> <img src="<?php echo marketify_theme_mod('footer', 'footer-logo'); ?> " /> <?php } else { ?> <?php bloginfo('name'); ?> <?php } ?> </a></h1> <?php printf(__('© %d %s. All rights reserved.', 'marketify'), date('Y'), get_bloginfo('name'));
</div> <?php if ('grid' == marketify_theme_mod('product-display', 'product-display-single-style') && '1' == marketify_theme_mod('product-display', 'product-display-show-buy')) { ?> <div class="download-actions"> <?php do_action('marketify_download_actions'); ?> </div> <?php } ?> <?php if ('classic' == marketify_theme_mod('product-display', 'product-display-single-style')) { ?> <div class="download-actions"> <?php do_action('marketify_download_actions'); ?> </div> <div class="download-info"> <?php do_action('marketify_download_info'); ?> </div> <div class="featured-image container"> <?php
function marketify_product_details_widget_before() { if ('classic' == marketify_theme_mod('product-display', 'product-display-single-style')) { return; } ?> <div class="product-details-pull"> <div class="download-info"> <?php do_action('marketify_download_info'); ?> </div> <div class="download-actions"> <?php do_action('marketify_download_actions'); ?> </div> </div> <?php }
/** * EDD Download wrapper class. * * When using the [downloads] shortcode, add our own class to the wrapper. * * @since Marketify 1.0 * * @param string $class * @return string The updated class list */ function marketify_edd_downloads_list_wrapper_class($class, $atts) { $columns = marketify_theme_mod('product-display', 'product-display-columns'); return 'row download-grid-wrapper columns-' . $columns . ' ' . $class; }
/** * Featured Area: Standard (Images) * * @since Marketify 1.2 * * @return void */ function marketify_project_standard_player() { global $post; if ('grid' == marketify_theme_mod('product-display', 'product-display-single-style')) { return; } $images = projects_get_gallery_attachment_ids(); $before = '<div class="download-image">'; $after = '</div>'; $before = '<div class="download-image flexslider">'; echo $before; ?> <ul class="slides"> <?php foreach ($images as $image) { ?> <li><?php echo wp_get_attachment_image($image, 'fullsize'); ?> </li> <?php } ?> </ul> <?php echo $after; }
/** * Output the basic extra CSS for primary and accent colors. * Split away from widget colors for brevity. * * @since Marketify 1.0 */ function marketify_header_css() { $css = "\n\t.header-outer:not(.custom-featured-image) .site-header,\n\t.header-outer:not(.custom-featured-image) .page-header,\n\t.site-footer,\n\tbody.minimal,\n\tbody.custom-background.minimal,\n\t.header-outer,\n\t.minimal .entry-content .edd-slg-social-container span legend {\n\t\tbackground-color: " . marketify_theme_mod('colors', 'header') . ";\n\t}\n\n\tbutton,\n\tinput[type=reset],\n\tinput[type=submit],\n\t.button,\n\ta.button,\n\t.fes-button,\n\t.main-navigation .edd-cart .cart_item.edd_checkout a,\n\t.page-header .button:hover,\n\t.content-grid-download .button:hover,\n\tbody .marketify_widget_slider_hero .soliloquy-caption a.button:hover,\n\t#edd_checkout_form_wrap fieldset#edd_cc_fields legend,\n\t.marketify_widget_featured_popular .home-widget-title span:hover,\n\t.marketify_widget_featured_popular .home-widget-title span.active,\n\t.nav-previous a:hover i,\n\t.nav-next a:hover i,\n\tbody-footer.light .site-info .site-title,\n\tbody a.edd-wl-action,\n\tbody a.edd-wl-action.edd-wl-button,\n\t#recaptcha_area .recaptchatable a,\n\t#recaptcha_area .recaptchatable a:hover,\n\t.fes-feat-image-btn,\n\t.upload_file_button,\n\t.fes-avatar-image-btn {\n\t\tcolor: " . marketify_theme_mod('colors', 'primary') . ";\n\t}\n\n\tbutton,\n\tinput[type=reset],\n\tinput[type=submit],\n\t.button,\n\ta.button,\n\t.fes-button,\n\t.edd_price_options input[type=radio]:checked,\n\tbody #edd-wl-modal input[type=radio]:checked,\n\t#edd_checkout_form_wrap fieldset#edd_cc_fields legend,\n\t.marketify_widget_featured_popular .home-widget-title span:hover,\n\t.marketify_widget_featured_popular .home-widget-title span.active,\n\t.entry-content blockquote,\n\t.nav-previous a:hover,\n\t.nav-next a:hover,\n\tbody a.edd-wl-action,\n\tbody a.edd-wl-action.edd-wl-button,\n\tbody a.edd-wl-action.edd-wl-button:hover,\n\t.fes-feat-image-btn,\n\t.upload_file_button,\n\t.fes-avatar-image-btn {\n\t\tborder-color: " . marketify_theme_mod('colors', 'primary') . ";\n\t}\n\n\tbutton:hover,\n\tinput[type=reset]:hover,\n\tinput[type=submit]:hover,\n\t.button:hover,\n\ta.button:hover,\n\t#edd_checkout_form_wrap fieldset#edd_cc_fields > span:after,\n\t.edd-reviews-voting-buttons a:hover,\n\t.flex-control-nav a.flex-active,\n\t.search-form .search-submit,\n\t.fes-pagination a.page-numbers:hover,\n\tbody a.edd-wl-action.edd-wl-button:hover,\n\t.fes-feat-image-btn:hover,\n\t.upload_file_button:hover,\n\t.fes-avatar-image-btn:hover {\n\t\tbackground-color: " . marketify_theme_mod('colors', 'primary') . ";\n\t}\n\n\ta.edd-cart-saving-button,\n\tinput[name=edd_update_cart_submit],\n\t.main-navigation .edd-cart .cart_item.edd_checkout a,\n\t.download-variable .entry-content .edd-add-to-cart.button.edd-submit:hover,\n\t.download-variable .entry-content .edd_go_to_checkout.button.edd-submit:hover,\n\t.popup .edd-add-to-cart.button.edd-submit:hover,\n\t.edd-reviews-voting-buttons a,\n\ta.edd-fes-adf-submission-add-option-button,\n\t#fes-insert-image,\n\t#fes-view-comment a,\n\ta.edd_terms_links {\n\t\tcolor: " . marketify_theme_mod('colors', 'accent') . ";\n\t}\n\n\ta.edd-cart-saving-button,\n\tinput[name=edd_update_cart_submit],\n\t.main-navigation .edd-cart .cart_item.edd_checkout a:hover,\n\t.download-variable .entry-content .edd-add-to-cart.button.edd-submit:hover,\n\t.download-variable .entry-content .edd_go_to_checkout.button.edd-submit:hover,\n\t.popup .edd-add-to-cart.button.edd-submit:hover,\n\t.popup .edd_go_to_checkout.button.edd-submit,\n\t.popup .edd_go_to_checkout.button.edd-submit:hover,\n\t.edd-reviews-voting-buttons a,\n\t.edd-fes-adf-submission-add-option-button,\n\t#fes-insert-image,\n\t#fes-view-comment a,\n\t.edd_terms_links,\n\t.site-footer.dark .mailbag-wrap input[type=submit],\n\t.insert-file-row {\n\t\tborder-color: " . marketify_theme_mod('colors', 'accent') . ";\n\t}\n\n\ta.edd-cart-saving-button:hover,\n\tinput[name=edd_update_cart_submit]:hover,\n\t.minimal #edd_purchase_submit input[type=submit],\n\t.main-navigation .edd-cart .cart_item.edd_checkout a:hover,\n\t.minimal a.edd-cart-saving-button,\n\t.minimal input[name=edd_update_cart_submit],\n\t.minimal .fes-form input[type=submit],\n\t.popup .edd_go_to_checkout.button.edd-submit,\n\t.popup .edd_go_to_checkout.button.edd-submit:hover,\n\t.main-navigation .search-form.active .search-submit,\n\t.main-navigation.toggled .search-form .search-submit,\n\t.edd-fes-adf-submission-add-option-button:hover,\n\t#fes-insert-image:hover,\n\t.edd-reviews-voting-buttons a:hover,\n\t.minimal #edd_login_submit,\n\t.minimal input[name=edd_register_submit],\n\t.edd_terms_links:hover,\n\t.site-footer.dark .mailbag-wrap input[type=submit],\n\t.home-search .page-header .search-submit,\n\t.search-form-overlay .search-submit,\n\t.marketify_widget_taxonomy_stylized,\n\t.insert-file-row {\n\t\tbackground-color: " . marketify_theme_mod('colors', 'accent') . ";\n\t}\n\n\t.site-footer.light, {\n\t\tbackground-color: #" . get_theme_mod('background_color') . ";\n\t}\n\n\t.content-grid-download .entry-image:hover .overlay,\n\t.content-grid-download .entry-image.hover .overlay,\n\t.download-image-grid-preview .slides li.active a:before,\n\t.download-image-grid-preview .slides li:hover a:before {\n\t\tbackground: rgba( " . marketify_hex2rgb(marketify_theme_mod('colors', 'primary')) . ", .80 );\n\t\tborder: 1px solid rgba( " . marketify_hex2rgb(marketify_theme_mod('colors', 'primary')) . ", .80 );\n\t}\n\n\t.search-form-overlay {\n\t\tbackground: rgba( " . marketify_hex2rgb(marketify_theme_mod('colors', 'primary')) . ", .90 );\n\t}\n\t"; wp_add_inline_style('marketify-base', trim(str_replace(array("\t", "\r", "\n"), '', $css))); }
/** * Adds custom classes to the array of post classes. */ function marketify_post_classes($classes) { global $post; if ('1' == marketify_theme_mod('product-display', 'product-display-grid-info')) { $classes[] = 'force-info'; } elseif ('2' == marketify_theme_mod('product-display', 'product-display-grid-info')) { $classes[] = 'hide-info'; } if (marketify_theme_mod('product-display', 'product-display-truncate-title')) { $classes[] = 'truncate-title'; } if (marketify_theme_mod('product-display', 'product-display-aspect')) { $classes[] = 'portrait'; } return $classes; }