/**
* This file handles the Spacing module functionality.
*
* @package GP Premium
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // No direct access, please.
}
// Add any necessary functions.
require_once plugin_dir_path( __FILE__ ) . 'migration.php';
require_once plugin_dir_path( __FILE__ ) . 'customizer/secondary-nav-spacing.php';
if ( ! function_exists( 'generate_spacing_customize_register' ) ) {
add_action( 'customize_register', 'generate_spacing_customize_register', 99 );
/**
* Add our spacing Customizer options
*
* @since 0.1
* @param object $wp_customize The Customizer object.
*/
function generate_spacing_customize_register( $wp_customize ) {
// Bail if we don't have our defaults.
if ( ! function_exists( 'generate_spacing_get_defaults' ) ) {
return;
}
require_once GP_LIBRARY_DIRECTORY . 'customizer-helpers.php';
$defaults = generate_spacing_get_defaults();
// Register our custom control types.
if ( method_exists( $wp_customize, 'register_control_type' ) ) {
$wp_customize->register_control_type( 'GeneratePress_Pro_Range_Slider_Control' );
$wp_customize->register_control_type( 'GeneratePress_Spacing_Control' );
}
// Add our Spacing panel.
// This is only used if the Layout panel in the free theme doesn't exist.
if ( class_exists( 'WP_Customize_Panel' ) ) {
if ( ! $wp_customize->get_panel( 'generate_spacing_panel' ) ) {
$wp_customize->add_panel(
'generate_spacing_panel',
array(
'capability' => 'edit_theme_options',
'theme_supports' => '',
'title' => __( 'Spacing', 'gp-premium' ),
'description' => __( 'Change the spacing for various elements using pixels.', 'gp-premium' ),
'priority' => 35,
)
);
}
}
require_once plugin_dir_path( __FILE__ ) . 'customizer/top-bar-spacing.php';
require_once plugin_dir_path( __FILE__ ) . 'customizer/header-spacing.php';
require_once plugin_dir_path( __FILE__ ) . 'customizer/content-spacing.php';
require_once plugin_dir_path( __FILE__ ) . 'customizer/sidebar-spacing.php';
require_once plugin_dir_path( __FILE__ ) . 'customizer/navigation-spacing.php';
require_once plugin_dir_path( __FILE__ ) . 'customizer/footer-spacing.php';
}
}
if ( ! function_exists( 'generate_right_sidebar_width' ) ) {
add_filter( 'generate_right_sidebar_width', 'generate_right_sidebar_width' );
/**
* Set our right sidebar width.
*
* @param int $width The sidebar width.
*/
function generate_right_sidebar_width( $width ) {
// Bail if we don't have our defaults.
if ( ! function_exists( 'generate_spacing_get_defaults' ) ) {
return $width;
}
$spacing_settings = wp_parse_args(
get_option( 'generate_spacing_settings', array() ),
generate_spacing_get_defaults()
);
return absint( $spacing_settings['right_sidebar_width'] );
}
}
if ( ! function_exists( 'generate_left_sidebar_width' ) ) {
add_filter( 'generate_left_sidebar_width', 'generate_left_sidebar_width' );
/**
* Set our left sidebar width.
*
* @param int $width The sidebar width.
*/
function generate_left_sidebar_width( $width ) {
// Bail if we don't have our defaults.
if ( ! function_exists( 'generate_spacing_get_defaults' ) ) {
return $width;
}
$spacing_settings = wp_parse_args(
get_option( 'generate_spacing_settings', array() ),
generate_spacing_get_defaults()
);
return absint( $spacing_settings['left_sidebar_width'] );
}
}
if ( ! function_exists( 'generate_spacing_customizer_live_preview' ) ) {
add_action( 'customize_preview_init', 'generate_spacing_customizer_live_preview' );
/**
* Add our live preview JS
*/
function generate_spacing_customizer_live_preview() {
wp_enqueue_script(
'generate-spacing-customizer',
trailingslashit( plugin_dir_url( __FILE__ ) ) . 'customizer/js/customizer.js',
array( 'jquery', 'customize-preview' ),
GENERATE_SPACING_VERSION,
true
);
wp_localize_script(
'generate-spacing-customizer',
'gp_spacing',
array(
'mobile' => generate_premium_get_media_query( 'mobile' ),
'tablet' => generate_premium_get_media_query( 'tablet' ),
'desktop' => generate_premium_get_media_query( 'desktop' ),
'isFlex' => function_exists( 'generate_is_using_flexbox' ) && generate_is_using_flexbox(),
)
);
}
}
if ( ! function_exists( 'generate_include_spacing_defaults' ) ) {
/**
* Check if we should include our default.css file.
*
* @since 1.3.42
*/
function generate_include_spacing_defaults() {
return true;
}
}
if ( ! function_exists( 'generate_spacing_premium_defaults' ) ) {
add_filter( 'generate_spacing_option_defaults', 'generate_spacing_premium_defaults' );
/**
* Add premium spacing defaults.
*
* @since 1.3
* @param array $defaults The existing defaults.
*/
function generate_spacing_premium_defaults( $defaults ) {
$defaults['mobile_menu_item'] = '';
$defaults['mobile_menu_item_height'] = '';
$defaults['sticky_menu_item_height'] = '';
$defaults['off_canvas_menu_item_height'] = '';
$defaults['content_element_separator'] = '2'; // em.
// These defaults were added to GeneratePress (free) in 3.0.0.
if ( defined( 'GENERATE_VERSION' ) && version_compare( GENERATE_VERSION, '3.0.0-alpha.1', '<' ) ) {
$defaults['mobile_header_top'] = '';
$defaults['mobile_header_right'] = '';
$defaults['mobile_header_bottom'] = '';
$defaults['mobile_header_left'] = '';
$defaults['mobile_widget_top'] = '';
$defaults['mobile_widget_right'] = '';
$defaults['mobile_widget_bottom'] = '';
$defaults['mobile_widget_left'] = '';
$defaults['mobile_footer_widget_container_top'] = '';
$defaults['mobile_footer_widget_container_right'] = '';
$defaults['mobile_footer_widget_container_bottom'] = '';
$defaults['mobile_footer_widget_container_left'] = '';
}
return $defaults;
}
}
/**
* Build our premium CSS.
*/
function generate_spacing_do_premium_css() {
// Bail if we don't have our defaults.
if ( ! function_exists( 'generate_spacing_get_defaults' ) ) {
return;
}
$spacing_settings = wp_parse_args(
get_option( 'generate_spacing_settings', array() ),
generate_spacing_get_defaults()
);
require_once GP_LIBRARY_DIRECTORY . 'class-make-css.php';
$premium_css = new GeneratePress_Pro_CSS();
$css_output = '';
// Mobile spacing.
$premium_css->start_media_query( generate_premium_get_media_query( 'mobile-menu' ) );
if ( '' !== $spacing_settings['mobile_menu_item'] ) {
$premium_css->set_selector( '.main-navigation .menu-toggle,.main-navigation .mobile-bar-items a,.main-navigation .menu-bar-item > a' );
$premium_css->add_property( 'padding-left', absint( $spacing_settings['mobile_menu_item'] ), false, 'px' );
$premium_css->add_property( 'padding-right', absint( $spacing_settings['mobile_menu_item'] ), false, 'px' );
}
if ( '' !== $spacing_settings['mobile_menu_item_height'] ) {
$premium_css->set_selector( '.main-navigation .main-nav ul li a,.main-navigation .menu-toggle,.main-navigation .mobile-bar-items a,.main-navigation .menu-bar-item > a' );
$premium_css->add_property( 'line-height', absint( $spacing_settings['mobile_menu_item_height'] ), false, 'px' );
$premium_css->set_selector( '.main-navigation .site-logo.navigation-logo img, .mobile-header-navigation .site-logo.mobile-header-logo img, .navigation-search input[type="search"]' );
$premium_css->add_property( 'height', absint( $spacing_settings['mobile_menu_item_height'] ), false, 'px' );
}
$premium_css->stop_media_query();
// This CSS was added to GeneratePress (free) in 3.0.0.
if ( defined( 'GENERATE_VERSION' ) && version_compare( GENERATE_VERSION, '3.0.0-alpha.1', '<' ) ) {
$premium_css->start_media_query( generate_premium_get_media_query( 'mobile' ) );
$premium_css->set_selector( '.inside-header' );
if ( '' !== $spacing_settings['mobile_header_top'] ) {
$premium_css->add_property( 'padding-top', absint( $spacing_settings['mobile_header_top'] ), false, 'px' );
}
if ( '' !== $spacing_settings['mobile_header_right'] ) {
$premium_css->add_property( 'padding-right', absint( $spacing_settings['mobile_header_right'] ), false, 'px' );
}
if ( '' !== $spacing_settings['mobile_header_bottom'] ) {
$premium_css->add_property( 'padding-bottom', absint( $spacing_settings['mobile_header_bottom'] ), false, 'px' );
}
if ( '' !== $spacing_settings['mobile_header_left'] ) {
$premium_css->add_property( 'padding-left', absint( $spacing_settings['mobile_header_left'] ), false, 'px' );
}
$premium_css->set_selector( '.widget-area .widget' );
if ( '' !== $spacing_settings['mobile_widget_top'] ) {
$premium_css->add_property( 'padding-top', absint( $spacing_settings['mobile_widget_top'] ), false, 'px' );
}
if ( '' !== $spacing_settings['mobile_widget_right'] ) {
$premium_css->add_property( 'padding-right', absint( $spacing_settings['mobile_widget_right'] ), false, 'px' );
}
if ( '' !== $spacing_settings['mobile_widget_bottom'] ) {
$premium_css->add_property( 'padding-bottom', absint( $spacing_settings['mobile_widget_bottom'] ), false, 'px' );
}
if ( '' !== $spacing_settings['mobile_widget_left'] ) {
$premium_css->add_property( 'padding-left', absint( $spacing_settings['mobile_widget_left'] ), false, 'px' );
}
$premium_css->set_selector( '.footer-widgets' );
if ( '' !== $spacing_settings['mobile_footer_widget_container_top'] ) {
$premium_css->add_property( 'padding-top', absint( $spacing_settings['mobile_footer_widget_container_top'] ), false, 'px' );
}
if ( '' !== $spacing_settings['mobile_footer_widget_container_right'] ) {
$premium_css->add_property( 'padding-right', absint( $spacing_settings['mobile_footer_widget_container_right'] ), false, 'px' );
}
if ( '' !== $spacing_settings['mobile_footer_widget_container_bottom'] ) {
$premium_css->add_property( 'padding-bottom', absint( $spacing_settings['mobile_footer_widget_container_bottom'] ), false, 'px' );
}
if ( '' !== $spacing_settings['mobile_footer_widget_container_left'] ) {
$premium_css->add_property( 'padding-left', absint( $spacing_settings['mobile_footer_widget_container_left'] ), false, 'px' );
}
$premium_css->stop_media_query();
$premium_css->set_selector( '.post-image, .page-content, .entry-content, .entry-summary, footer.entry-meta' );
$premium_css->add_property( 'margin-top', floatval( $spacing_settings['content_element_separator'] ), '2', 'em' );
} else {
$premium_css->set_selector( '.post-image:not(:first-child), .page-content:not(:first-child), .entry-content:not(:first-child), .entry-summary:not(:first-child), footer.entry-meta' );
$premium_css->add_property( 'margin-top', floatval( $spacing_settings['content_element_separator'] ), '2', 'em' );
}
$premium_css->set_selector( '.post-image-above-header .inside-article div.featured-image, .post-image-above-header .inside-article div.post-image' );
$premium_css->add_property( 'margin-bottom', floatval( $spacing_settings['content_element_separator'] ), '2', 'em' );
if ( function_exists( 'generate_menu_plus_get_defaults' ) ) {
$menu_plus = wp_parse_args(
get_option( 'generate_menu_plus_settings', array() ),
generate_menu_plus_get_defaults()
);
if ( 'false' !== $menu_plus['sticky_menu'] && '' !== $spacing_settings['sticky_menu_item_height'] ) {
$premium_css->start_media_query( generate_premium_get_media_query( 'tablet' ) . ',' . generate_premium_get_media_query( 'desktop' ) );
if ( function_exists( 'generate_is_using_flexbox' ) && generate_is_using_flexbox() ) {
$premium_css->set_selector( '.main-navigation.sticky-navigation-transition .main-nav > ul > li > a,.sticky-navigation-transition .menu-toggle,.main-navigation.sticky-navigation-transition .menu-bar-item > a, .sticky-navigation-transition .navigation-branding .main-title' );
} else {
$premium_css->set_selector( '.main-navigation.sticky-navigation-transition .main-nav > ul > li > a,.sticky-navigation-transition .menu-toggle,.main-navigation.sticky-navigation-transition .mobile-bar-items a, .sticky-navigation-transition .navigation-branding .main-title' );
}
$premium_css->add_property( 'line-height', absint( $spacing_settings['sticky_menu_item_height'] ), false, 'px' );
$premium_css->set_selector( '.main-navigation.sticky-navigation-transition .site-logo img, .main-navigation.sticky-navigation-transition .navigation-search input[type="search"], .main-navigation.sticky-navigation-transition .navigation-branding img' );
$premium_css->add_property( 'height', absint( $spacing_settings['sticky_menu_item_height'] ), false, 'px' );
$premium_css->stop_media_query();
}
if ( 'false' !== $menu_plus['slideout_menu'] ) {
$premium_css->set_selector( '.main-navigation.slideout-navigation .main-nav > ul > li > a' );
if ( '' !== $spacing_settings['off_canvas_menu_item_height'] ) {
$premium_css->add_property( 'line-height', absint( $spacing_settings['off_canvas_menu_item_height'] ), false, 'px' );
}
}
}
if ( '' !== $premium_css->css_output() ) {
$css_output = $premium_css->css_output();
}
return $css_output;
}
if ( ! function_exists( 'generate_spacing_premium_css' ) ) {
add_action( 'wp_enqueue_scripts', 'generate_spacing_premium_css', 105 );
/**
* Add premium spacing CSS
*
* @since 1.3
*/
function generate_spacing_premium_css() {
$css = generate_spacing_do_premium_css();
if ( 'inline' === generate_get_css_print_method() && $css ) {
wp_add_inline_style( 'generate-style', $css );
}
}
}
add_filter( 'generate_external_dynamic_css_output', 'generate_spacing_add_to_external_stylesheet' );
/**
* Add CSS to the external stylesheet.
*
* @since 1.11.0
* @param string $css Existing CSS.
*/
function generate_spacing_add_to_external_stylesheet( $css ) {
if ( 'inline' === generate_get_css_print_method() ) {
return $css;
}
$css .= generate_spacing_do_premium_css();
return $css;
}
Wooden Photo Frame Design: Adding Elegance To Your Memories - Hardiko
Skip to content
In this digital age, where most of our photos are stored on smartphones and computers, there’s something truly special about holding a printed photograph. A well-crafted wooden photo frame not only preserves these precious memories but also adds a touch of elegance to your living space. In this article, we’ll explore the world of wooden photo frame designs, from classic to contemporary, to help you choose the perfect frame for your cherished moments.
Introduction
In a digital world, physical photographs hold a unique charm. They capture a moment frozen in time, and what better way to showcase them than in wooden photo frames? Wooden frames exude warmth and sophistication, making them the preferred choice for many.
Classic Wooden Photo Frame Design
Wooden Photo Frame Design
Classic wooden frames, with their timeless appeal, are perfect for traditional homes and vintage photographs. They often feature intricate detailing and come in various wood types, such as oak, walnut, and cherry.
For a touch of rustic charm, consider weathered wood frames. These frames have a distressed look that adds character to your photos. They are ideal for countryside-inspired decor.
Minimalistic Elegance: Modern Wooden Photo Frame Design
Wooden Photo Frame Design
Modern wooden frames are all about clean lines and simplicity. They blend seamlessly with contemporary interiors and allow your photographs to take center stage.
Ornate Beauty: Carved Wooden Photo Frame Design
Carved wooden frames are works of art in themselves. They feature intricate designs and patterns, adding a touch of opulence to your photos.
Customization Options
Wooden Photo Frame Design
Many frame makers offer customization services. You can choose the type of wood, finish, and even engrave names or dates, making your photo frame truly unique.
Choosing the Right Size
Selecting the right frame size is crucial. It should complement your photo without overwhelming it. Consider the aspect ratio and orientation of your picture.
Caring for Your Wooden Photo Frames Design
Wooden Photo Frame Design
Proper maintenance ensures your frames last a lifetime. Dust them regularly, and avoid placing them in direct sunlight or damp areas to prevent warping.
Where to Buy Wooden Photo Frames Design
You can find wooden photo frames in various places, from local craft stores to online marketplaces. Explore your options and compare prices and styles before making a purchase.
DIY Wooden Photo Frame Ideas
Wooden Photo Frame Design
Feeling creative? Try your hand at DIY wooden photo frames. There are countless tutorials online to help you craft a personalized frame.
Wooden Photo Frames as Gifts
Wooden photo frames make thoughtful gifts. Customize one with a special photo to celebrate birthdays, weddings, or other memorable occasions.
Adding Personal Touch: Decorating with Wooden Frames Design
Wooden Photo Frame Design
Wooden frames aren’t just for photos. Use them to display artwork, quotes, or even pressed flowers, adding a personal touch to your decor.
Sustainability and Wooden Frames Design
Consider eco-friendly options when purchasing wooden frames. Look for frames made from sustainably sourced wood or reclaimed materials.
Conclusion: Preserving Memories in Style
In a world filled with digital clutter, wooden photo frames provide a timeless way to cherish and display your most treasured memories.
You May Also Like:
FAQs
Q1: Are wooden photo frames durable?
Yes, wooden photo frames are durable and can last for generations with proper care.
Q2: Can I paint or stain wooden frames to match my decor?
Absolutely! Wooden frames are versatile and can be customized with paint or stain to suit your style.
Q3: Are there eco-friendly options for wooden photo frames?
Yes, many manufacturers offer eco-friendly wooden frames made from sustainable materials.
Q4: How do I clean my wooden photo frames?
Simply dust them with a soft cloth or use a gentle wood cleaner when necessary.
Q5: Can I use wooden frames for art prints?
Certainly! Wooden frames are a great choice for displaying art prints, adding a touch of sophistication to your walls.
Categories Furniture Tags diy photo frame ideas , diy picture frame , diy picture frames , diy wooden photo frame , frame , handmade photo frame , how to make a picture frame , how to make picture frame , how to make picture frames , make a picture frame , mirror frame designs , photo frame , photo frame design , photo frame ideas , photo frame making at home , picture frame , picture frames , wooden frame , wooden pallet photo frame , wooden photo album , wooden photo frame , wooden photo frame design
HARDIKO
Hardiko Enterprises is a leading timber store and furniture house with a rich history in the manufacturing of wood products.
I like this website it’s a master piece! Glad I noticed this ohttps://69v.topn google.Raise blog range