' . __( 'Read More', 'digifly' ) . ''; } /** * Full-width layout. * * @since 1.0.0 * * @return boolean true if the full-width layout is enabled, false otherwise */ function digifly_layout_full_width() { $theme_options = get_theme_mod( 'theme_options' ); $layout_full_width = isset( $theme_options['layout_full_width'] ) && true === $theme_options['layout_full_width'] ? true : false; return $layout_full_width; } /** * Mini Cart * * @since 1.0.0 * * @return boolean true if the full-width layout is enabled, false otherwise */ function digifly_mini_cart_enabled() { $theme_options = get_theme_mod( 'theme_options' ); $mini_cart = isset( $theme_options['mini_cart'] ) && true === $theme_options['mini_cart'] ? true : false; return $mini_cart; } if ( ! function_exists( 'wp_body_open' ) ) { /** * Fire the wp_body_open action. * Adds backward compatibility for WordPress versions < 5.2 * * @since 1.0.9 */ function wp_body_open() { do_action( 'wp_body_open' ); } } /** * Get Theme Author URI * * @since 1.0.0 * * @return string/url */ function digifly_get_author_uri() { $my_theme = wp_get_theme(); return $my_theme->get( 'AuthorURI' ); }