Make WordPress Themes

Changeset 315834


Ignore:
Timestamp:
03/02/2026 07:27:37 AM (8 months ago)
Author:
themedropbox
Message:

New version of Conference Event Planner - 4.1

Location:
conference-event-planner/4.1
Files:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • conference-event-planner/4.1/functions.php

    r313399 r315834  
    317317 */
    318318function conference_event_planner_scripts() {
    319 
    320319        // Add custom fonts, used in the main stylesheet.
    321320        wp_enqueue_style( 'conference-event-planner-fonts', conference_event_planner_fonts_url(), array(), null );
    322321
    323         // Bootstrap.
     322        // Bootstrap
    324323        wp_enqueue_style( 'bootstrap-css', get_theme_file_uri( '/assets/css/bootstrap.css' ) );
    325324
    326325        // Theme stylesheet.
    327326        wp_enqueue_style( 'conference-event-planner-style', get_stylesheet_uri() );
    328         wp_style_add_data( 'conference-event-planner-style', 'rtl', 'replace' );
    329 
    330         /* ---------- THEME COLOR CSS (INLINE) ---------- */
    331         $conference_event_planner_tp_theme_css = '';
    332         if ( file_exists( get_parent_theme_file_path( '/tp-theme-color.php' ) ) ) {
    333                 require get_parent_theme_file_path( '/tp-theme-color.php' );
    334         }
    335         if ( ! empty( $conference_event_planner_tp_theme_css ) ) {
    336                 wp_add_inline_style( 'conference-event-planner-style', $conference_event_planner_tp_theme_css );
    337         }
    338 
    339         /* ---------- BODY WIDTH / LAYOUT CSS (INLINE) ---------- */
    340         $conference_event_planner_tp_layout_css = '';
    341         if ( file_exists( get_parent_theme_file_path( '/tp-body-width-layout.php' ) ) ) {
    342                 require get_parent_theme_file_path( '/tp-body-width-layout.php' );
    343         }
    344         if ( ! empty( $conference_event_planner_tp_layout_css ) ) {
    345                 wp_add_inline_style( 'conference-event-planner-style', $conference_event_planner_tp_layout_css );
    346         }
     327        require get_parent_theme_file_path( '/tp-body-width-layout.php' );
     328        wp_add_inline_style( 'conference-event-planner-style',$conference_event_planner_tp_theme_css );
     329        wp_enqueue_style( 'conference-event-planner-style', get_stylesheet_uri() );
     330        require get_parent_theme_file_path( '/tp-theme-color.php' );
     331        wp_add_inline_style( 'conference-event-planner-style',$conference_event_planner_tp_theme_css );
     332        wp_style_add_data('conference-event-planner-style', 'rtl', 'replace');
     333
     334        // Theme stylesheet.
     335        wp_enqueue_style( 'conference-event-planner-style', get_stylesheet_uri() );
    347336
    348337        // Theme block stylesheet.
    349         wp_enqueue_style(
    350                 'conference-event-planner-block-style',
    351                 get_theme_file_uri( '/assets/css/blocks.css' ),
    352                 array( 'conference-event-planner-style' ),
    353                 '1.0'
    354         );
    355 
    356         // Font Awesome.
     338        wp_enqueue_style( 'conference-event-planner-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'conference-event-planner-style' ), '1.0' );
     339
     340        // Fontawesome
    357341        wp_enqueue_style( 'fontawesome-css', get_theme_file_uri( '/assets/css/fontawesome-all.css' ) );
    358342
    359         // Scripts.
    360         wp_enqueue_script(
    361                 'conference-event-planner-custom-scripts',
    362                 get_template_directory_uri() . '/assets/js/custom.js',
    363                 array( 'jquery' ),
    364                 null,
    365                 true
    366         );
    367 
    368         wp_enqueue_script(
    369                 'bootstrap-js',
    370                 get_theme_file_uri( '/assets/js/bootstrap.js' ),
    371                 array( 'jquery' ),
    372                 null,
    373                 true
    374         );
    375 
    376         wp_enqueue_script(
    377                 'conference-event-planner-focus-nav',
    378                 get_template_directory_uri() . '/assets/js/focus-nav.js',
    379                 array( 'jquery' ),
    380                 null,
    381                 true
    382         );
     343        wp_enqueue_script( 'bootstrap-js', get_theme_file_uri( '/assets/js/bootstrap.js' ), array( 'jquery' ), true );
     344
     345        wp_enqueue_script( 'conference-event-planner-custom-scripts', esc_url( get_template_directory_uri() ) . '/assets/js/custom.js', array('jquery'), true );
     346
     347        wp_enqueue_script( 'conference-event-planner-focus-nav', esc_url( get_template_directory_uri() ) . '/assets/js/focus-nav.js', array('jquery'), true);
    383348
    384349        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    … …  
    386351        }
    387352
    388         /* ---------- DYNAMIC TYPOGRAPHY CSS (INLINE) ---------- */
    389         $conference_event_planner_body_font_family    = get_theme_mod( 'conference_event_planner_body_font_family', '' );
    390         $conference_event_planner_heading_font_family = get_theme_mod( 'conference_event_planner_heading_font_family', '' );
    391 
    392         $conference_event_planner_dynamic_typography_css = '
    393                 body, p.simplep, .more-btn a {
    394                         font-family: ' . esc_html( $conference_event_planner_body_font_family ) . ';
    395                 }
    396                 h1, h2, h3, h4, h5, h6, .menubar, .logo h1, .logo p.site-title, p.simplep a,
    397                 #main-slider p.slidertop-title, .more-btn a,
    398                 .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,
    399                 .wc-block-cart__submit-container a,
    400                 .woocommerce #respond input#submit,
    401                 .woocommerce a.button,
    402                 .woocommerce button.button,
    403                 .woocommerce input.button,
    404                 .woocommerce #respond input#submit.alt,
    405                 .woocommerce a.button.alt,
    406                 .woocommerce button.button.alt,
    407                 .woocommerce input.button.alt,
    408                 #theme-sidebar button[type="submit"],
    409                 #footer button[type="submit"] {
    410                         font-family: ' . esc_html( $conference_event_planner_heading_font_family ) . ';
     353        $conference_event_planner_body_font_family = get_theme_mod('conference_event_planner_body_font_family', '');
     354
     355        $conference_event_planner_heading_font_family = get_theme_mod('conference_event_planner_heading_font_family', '');
     356
     357        $conference_event_planner_menu_font_family = get_theme_mod('conference_event_planner_menu_font_family', '');
     358
     359        $conference_event_planner_tp_theme_css = '
     360                body{
     361                    font-family: '.esc_html($conference_event_planner_body_font_family).';
     362                }
     363                h1{
     364                    font-family: '.esc_html($conference_event_planner_heading_font_family).';
     365                }
     366                h2{
     367                    font-family: '.esc_html($conference_event_planner_heading_font_family).';
     368                }
     369                h3{
     370                    font-family: '.esc_html($conference_event_planner_heading_font_family).';
     371                }
     372                h4{
     373                    font-family: '.esc_html($conference_event_planner_heading_font_family).';
     374                }
     375                h5{
     376                    font-family: '.esc_html($conference_event_planner_heading_font_family).';
     377                }
     378                h6{
     379                    font-family: '.esc_html($conference_event_planner_heading_font_family).';
     380                }
     381                #theme-sidebar .wp-block-search .wp-block-search__label{
     382                    font-family: '.esc_html($conference_event_planner_heading_font_family).';
     383                }
     384                .main-navigation a{
     385                    font-family: '.esc_html($conference_event_planner_menu_font_family).';
    411386                }
    412387        ';
    413 
    414         if ( ! empty( trim( $conference_event_planner_dynamic_typography_css ) ) ) {
    415                 wp_add_inline_style( 'conference-event-planner-style', $conference_event_planner_dynamic_typography_css );
    416         }
     388        wp_add_inline_style('conference-event-planner-style', $conference_event_planner_tp_theme_css);
    417389}
    418390add_action( 'wp_enqueue_scripts', 'conference_event_planner_scripts' );
  • conference-event-planner/4.1/inc/customizer.php

    r313399 r315834  
    18611861                'settings'    => 'conference_event_planner_product_sidebar',
    18621862        ) ) );
    1863         $wp_customize->add_setting('conference_event_planner_sale_tag_position',array(
    1864         'default' => 'right',
    1865         'sanitize_callback' => 'conference_event_planner_sanitize_choices'
    1866         ));
    1867         $wp_customize->add_control('conference_event_planner_sale_tag_position',array(
    1868         'type' => 'radio',
    1869         'label'     => __('Sale Badge Position', 'conference-event-planner'),
    1870         'description'   => __('This option work for Archieve Products', 'conference-event-planner'),
    1871         'section' => 'woocommerce_product_catalog',
    1872         'choices' => array(
    1873             'left' => __('Left','conference-event-planner'),
    1874             'right' => __('Right','conference-event-planner'),
    1875         ),
    1876         ) );
     1863
    18771864        $wp_customize->add_setting( 'conference_event_planner_single_product_sidebar', array(
    18781865                'default'           => true,
    … …  
    21002087        )));
    21012088
     2089        //Woocommerce settings
     2090        $wp_customize->add_section('conference_event_planner_woocommerce_section', array(
     2091                'title'    => __('WooCommerce Options', 'conference-event-planner'),
     2092                'priority' => null,
     2093                'panel'    => 'woocommerce',
     2094        ));
     2095
     2096        $wp_customize->add_setting('conference_event_planner_sale_tag_position',array(
     2097        'default' => 'right',
     2098        'sanitize_callback' => 'conference_event_planner_sanitize_choices'
     2099        ));
     2100        $wp_customize->add_control('conference_event_planner_sale_tag_position',array(
     2101        'type' => 'radio',
     2102        'label'     => __('Sale Badge Position', 'conference-event-planner'),
     2103        'description'   => __('This option work for Archieve Products', 'conference-event-planner'),
     2104        'section' => 'conference_event_planner_woocommerce_section',
     2105        'choices' => array(
     2106            'left' => __('Left','conference-event-planner'),
     2107            'right' => __('Right','conference-event-planner'),
     2108        ),
     2109        ) );
     2110
     2111        $wp_customize->add_setting('conference_event_planner_woocommerce_sale_font_size',array(
     2112                'default'=> '',
     2113                'sanitize_callback'     => 'absint'
     2114        ));
     2115        $wp_customize->add_control('conference_event_planner_woocommerce_sale_font_size',array(
     2116                'label' => __('Sale Font Size','conference-event-planner'),
     2117
     2118                'section'=> 'conference_event_planner_woocommerce_section',
     2119                'settings'    => 'conference_event_planner_woocommerce_sale_font_size',
     2120                'type'        => 'number',
     2121                'input_attrs' => array(
     2122                        'step'             => 2,
     2123                        'min'              => 0,
     2124                        'max'              => 100,
     2125                ),
     2126        ));
     2127
     2128        $wp_customize->add_setting('conference_event_planner_woocommerce_sale_padding_top_bottom',array(
     2129                'default'=> '',
     2130                'sanitize_callback'     => 'absint'
     2131        ));
     2132        $wp_customize->add_control('conference_event_planner_woocommerce_sale_padding_top_bottom',array(
     2133                'label' => __('Sale Padding Top Bottom','conference-event-planner'),
     2134                'section'=> 'conference_event_planner_woocommerce_section',
     2135                'type'        => 'number',
     2136                'input_attrs' => array(
     2137                        'step'             => 2,
     2138                        'min'              => 0,
     2139                        'max'              => 100,
     2140                ),
     2141        ));
     2142
     2143        $wp_customize->add_setting('conference_event_planner_woocommerce_sale_padding_left_right',array(
     2144                'default'=> '',
     2145                'sanitize_callback'     => 'absint'
     2146        ));
     2147        $wp_customize->add_control('conference_event_planner_woocommerce_sale_padding_left_right',array(
     2148                'label' => __('Sale Padding Left Right','conference-event-planner'),
     2149                'section'=> 'conference_event_planner_woocommerce_section',
     2150                'type'        => 'number',
     2151                'input_attrs' => array(
     2152                        'step'             => 2,
     2153                        'min'              => 0,
     2154                        'max'              => 100,
     2155                ),
     2156        ));
     2157
     2158        $wp_customize->add_setting( 'conference_event_planner_woocommerce_sale_border_radius', array(
     2159                'default'              => '100',
     2160                'transport'                => 'refresh',
     2161                'sanitize_callback'    => 'absint'
     2162        ) );
     2163        $wp_customize->add_control( 'conference_event_planner_woocommerce_sale_border_radius', array(
     2164                'label'       => esc_html__( 'Sale Border Radius','conference-event-planner' ),
     2165                'section'     => 'conference_event_planner_woocommerce_section',
     2166                'type'        => 'number',
     2167                'input_attrs' => array(
     2168                        'step'             => 2,
     2169                        'min'              => 0,
     2170                        'max'              => 100,
     2171                ),
     2172        ) );
     2173
    21022174}
    21032175add_action( 'customize_register', 'conference_event_planner_customize_register' );
  • conference-event-planner/4.1/readme.txt

    r313399 r315834  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 4.0
     7Stable tag: 4.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    322322    * Added font weight setting for copyright text.
    323323
     324= 4.1 =
     325    * Added sale badges position setting shift to woocommer option section.
     326    * Added padding controls for top/bottom positions of product sale badges.
     327    * Added padding controls for left/right positions of product sale badges.
     328    * Added font size control for product sale badges.
     329    * Added border radius control for product sale badges.
     330
    324331== Resources ==
    325332
  • conference-event-planner/4.1/style.css

    r313399 r315834  
    55Author URI: https://www.themespride.com/
    66Description: Conference Event is a versatile and feature-rich WordPress theme specifically designed for creating and managing professional conferences, seminars, workshops, or any event-related websites. This theme offers a comprehensive suite of tools and customization options tailored to the needs of event organizers, Event planning, Conference coordinators, Event management, Keynote speakers, Event sponsors, Event attendees, Seminar organizers, Trade show organizers, Corporate events, Event logistics, Event marketing, VIP guests, Exhibition planners, Event registration, Networking events, Workshop facilitators, Event setup, Event promotion, Sponsor management, Attendee engagement, speakers, attendees, and sponsors. With its modern and visually appealing design, the Conference Event theme ensures a captivating online presence for your event. The theme comes equipped with various customization options, enabling users to personalize colors, fonts, layouts, and other visual elements to align with the event's branding. Key features of the Conference Event theme include an intuitive event management system that facilitates easy scheduling, speaker profiles,session details, and ticketing. The theme also supports online registration and ticket booking, providing seamless interaction for attendees to sign up and participate. The responsive design ensures that the event website looks and functions well on various devices, from desktops to smartphones, enhancing user experience and accessibility. Additionally, the theme often incorporates integration with popular plugins for enhanced functionality, such as integrating with payment gateways for ticket purchases and social media integration to promote event engagement. Furthermore, the Conference Event theme offers tools for displaying event galleries, showcasing photos and videos from past events, and promoting upcoming events through countdown timers and highlight sections. The built-in blog feature allows event organizers to share valuable insights, updates, and news related to the event.
    7 Version: 4.0
     7Version: 4.1
    88Tested up to: 6.9
    99Requires PHP: 5.6
  • conference-event-planner/4.1/tp-body-width-layout.php

    r306101 r315834  
    149149if($conference_event_planner_scroll_position == 'right'){
    150150$conference_event_planner_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    151     $conference_event_planner_tp_theme_css .='right: 25px !important;';
     151    $conference_event_planner_tp_theme_css .='right: 25px !important; left: auto !important';
    152152$conference_event_planner_tp_theme_css .='}';
    153153}else if($conference_event_planner_scroll_position == 'left'){
    154154$conference_event_planner_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    155     $conference_event_planner_tp_theme_css .='left: 25px !important;';
    156 $conference_event_planner_tp_theme_css .='}';
     155    $conference_event_planner_tp_theme_css .='left: 25px !important; right: auto !important';
     156$conference_event_planner_tp_theme_css .='}';
     157}
     158
     159$conference_event_planner_woocommerce_sale_font_size = get_theme_mod('conference_event_planner_woocommerce_sale_font_size');
     160if($conference_event_planner_woocommerce_sale_font_size != false){
     161    $conference_event_planner_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
     162        $conference_event_planner_tp_theme_css .='font-size: '.esc_attr($conference_event_planner_woocommerce_sale_font_size).'px;';
     163    $conference_event_planner_tp_theme_css .='}';
     164}
     165
     166$conference_event_planner_woocommerce_sale_padding_top_bottom = get_theme_mod('conference_event_planner_woocommerce_sale_padding_top_bottom');
     167if($conference_event_planner_woocommerce_sale_padding_top_bottom != false){
     168    $conference_event_planner_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
     169        $conference_event_planner_tp_theme_css .='padding-top: '.esc_attr($conference_event_planner_woocommerce_sale_padding_top_bottom).'px; padding-bottom: '.esc_attr($conference_event_planner_woocommerce_sale_padding_top_bottom).'px;';
     170    $conference_event_planner_tp_theme_css .='}';
     171}
     172
     173$conference_event_planner_woocommerce_sale_padding_left_right = get_theme_mod('conference_event_planner_woocommerce_sale_padding_left_right');
     174if($conference_event_planner_woocommerce_sale_padding_left_right != false){
     175    $conference_event_planner_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
     176        $conference_event_planner_tp_theme_css .='padding-left: '.esc_attr($conference_event_planner_woocommerce_sale_padding_left_right).'px !Important; padding-right: '.esc_attr($conference_event_planner_woocommerce_sale_padding_left_right).'px !important;';
     177    $conference_event_planner_tp_theme_css .='}';
     178}
     179
     180$conference_event_planner_woocommerce_sale_border_radius = get_theme_mod('conference_event_planner_woocommerce_sale_border_radius', 100);
     181if($conference_event_planner_woocommerce_sale_border_radius != false){
     182    $conference_event_planner_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
     183        $conference_event_planner_tp_theme_css .='border-radius: '.esc_attr($conference_event_planner_woocommerce_sale_border_radius).'% !important;';
     184    $conference_event_planner_tp_theme_css .='}';
    157185}
    158186
Note: See TracChangeset for help on using the changeset viewer.