Make WordPress Themes

Changeset 268656

Timestamp:
04/22/2025 11:08:31 AM (7 months ago)
Author:
themedropbox
Message:

New version of Enrollment - 1.0.11

Location:
enrollment/1.0.11
Files:
6 added
21 edited
1 copied

Legend:

Unmodified
Added
Removed
  • enrollment/1.0.11/assets/css/customizer-style.css

    r128860 r268656  
    223223=================================================*/
    224224.customize-control-radio-image .ui-button {
    225     margin:        0;
     225    display: inline-block;
     226    margin: 0;
     227    width: 30%;
    226228    border-radius: 0;
    227     border:        none;
    228     background:    transparent;
     229    border: none;
     230    background: transparent;
    229231}
    230232
     
    440442    text-decoration: none;
    441443}
     444
     445#customize-control-enrollment_site_layout .ui-controlgroup {
     446    display: inline-block;
     447    width: 100%;
     448}
     449
     450#customize-control-enrollment_site_layout.customize-control-radio-image .ui-button{
     451    display: inline-block;
     452    width: 35%;
     453    margin-right: 20px;
     454}
     455
     456#customize-control-enrollment_site_layout .ui-controlgroup img {
     457    width: 100%;
     458    height: auto;
     459    border:  2px solid #0073aa;
     460    border-radius:  6px;
     461    margin-bottom: 6px;
     462}
  • enrollment/1.0.11/assets/js/custom-script.js

    r128860 r268656  
    2626            $('.homepage-slider').removeClass('cS-hidden');
    2727        }
     28    });
     29
     30    /**
     31     * Sticky sidebar
     32     */
     33    $('#primary, #secondary').theiaStickySidebar({
     34        additionalMarginTop: 40
    2835    });
    2936
  • enrollment/1.0.11/assets/js/customizer-control.js

    r128860 r268656  
    1515jQuery(document).ready(function($) {
    1616
    17     /**
     17    /**
    1818     * Script for switch option
    1919     */
     
    8080        }
    8181    );
     82
     83   
    8284
    8385    /**
  • enrollment/1.0.11/inc/customizer/cv-custom-classes.php

    r128860 r268656  
    1010if ( class_exists( 'WP_Customize_Control' ) ) {
    1111
    12     /**
     12    /**
    1313     * Category dropdwon control
    1414     * @return HTML
     
    132132
    133133        public function content_template() { ?>
    134             <# if ( data.label ) { #>
    135                 <span class="customize-control-title">{{ data.label }}</span>
    136             <# } #>
    137 
    138             <# if ( data.description ) { #>
    139                 <span class="description customize-control-description">{{{ data.description }}}</span>
    140             <# } #>
    141 
    142             <div class="buttonset">
    143 
    144                 <# for ( key in data.choices ) { #>
    145 
    146                     <input type="radio" value="{{ key }}" name="_customize-{{ data.type }}-{{ data.id }}" id="{{ data.id }}-{{ key }}" {{{ data.link }}} <# if ( key === data.value ) { #> checked="checked" <# } #> />
    147 
    148                     <label for="{{ data.id }}-{{ key }}">
    149                         <span class="screen-reader-text">{{ data.choices[ key ]['label'] }}</span>
    150                         <img src="{{ data.choices[ key ]['url'] }}" title="{{ data.choices[ key ]['label'] }}" alt="{{ data.choices[ key ]['label'] }}" />
    151                     </label>
    152                 <# } #>
    153 
    154             </div><!-- .buttonset -->
    155         <?php }
     134    <# if ( data.label ) { #>
     135        <span class="customize-control-title">{{ data.label }}</span>
     136    <# } #>
     137
     138    <# if ( data.description ) { #>
     139        <span class="description customize-control-description">{{{ data.description }}}</span>
     140    <# } #>
     141
     142    <div class="buttonset">
     143
     144        <# for ( key in data.choices ) { #>
     145
     146            <label for="{{ data.id }}-{{ key }}">
     147                <input type="radio"
     148                       value="{{ key }}"
     149                       name="_customize-{{ data.type }}-{{ data.id }}"
     150                       id="{{ data.id }}-{{ key }}"
     151                       {{{ data.link }}}
     152                       <# if ( key === data.value ) { #> checked="checked" <# } #>
     153                        />
     154                     <label for="{{ data.id }}-{{ key }}">
     155                    <img src="{{ data.choices[ key ]['url'] }}"
     156                     title="{{ data.choices[ key ]['label'] }}"
     157                     alt="{{ data.choices[ key ]['label'] }}"/>
     158
     159                <span class="image-label">{{ data.choices[ key ]['label'] }}</span>
     160            </label>
     161
     162        <# } #>
     163
     164    </div><!-- .buttonset -->
     165<?php }
     166
    156167    }
    157168
  • enrollment/1.0.11/inc/customizer/cv-general-panel.php

    r128860 r268656  
    2020    function enrollment_general_panel_register( $wp_customize ) {
    2121
    22         $wp_customize->get_section( 'title_tagline' )->panel = 'enrollment_general_settings_panel';
     22        $wp_customize->get_section( 'title_tagline' )->panel = 'enrollment_general_settings_panel';
    2323        $wp_customize->get_section( 'title_tagline' )->priority = '5';
    2424        $wp_customize->get_section( 'title_tagline' )->title = __( 'Site Logo/Title/Favicon', 'enrollment' );
     
    3131
    3232
    33         /**
    34         * General Settings Panel on customizer
    35         *
    36         * @since 1.0.0
    37         */
    38         $wp_customize->add_panel(
     33        /**
     34        * General Settings Panel on customizer
     35        *
     36        * @since 1.0.0
     37        */
     38        $wp_customize->add_panel(
    3939            'enrollment_general_settings_panel',
    40             array(
    41                 'priority'       => 5,
    42                 'capability'     => 'edit_theme_options',
    43                 'theme_supports' => '',
    44                 'title'          => __( 'General Settings', 'enrollment' ),
     40            array(
     41                'priority'       => 5,
     42                'capability'     => 'edit_theme_options',
     43                'theme_supports' => '',
     44                'title'          => __( 'General Settings', 'enrollment' ),
    4545            )
    4646        );
    4747
    4848    /*------------------------------------------------------------------------------------------------------------------------------------*/
    49         /**
    50         * Website Layout
    51         *
    52         * @since 1.0.0
    53         */
    54         $wp_customize->add_section(
    55             'website_layout_section',
     49        /**
     50        * Website Layout
     51        *
     52        * @since 1.0.0
     53        */
     54        $wp_customize->add_section(
     55        'website_layout_section',
    5656            array(
    5757                'priority'       => 35,
     
    5959                'theme_supports' => '',
    6060                'panel'          => 'enrollment_general_settings_panel',
    61                 'title'          => __( 'Website Layout', 'enrollment' )
     61                'title'          => __( 'Website Layout', 'enrollment' )
    6262            )
    6363        );
    6464
    65         /**
    66         * Select options for website layout option
    67         *
    68         * @since 1.0.0
    69         */
     65        /**
     66        * Select options for website layout option
     67        *
     68        * @since 1.0.0
     69        */
    7070        $wp_customize->add_setting(
    7171            'enrollment_site_layout',
     
    7676            )       
    7777        );
     78
    7879        $wp_customize->add_control(
    79             'enrollment_site_layout',
    80             array(
    81                 'label'         => __( 'Site Layout', 'enrollment' ),
    82                 'description'   => __( 'Select the website layout.', 'enrollment' ),
    83                 'section'       => 'website_layout_section',
    84                 'settings'      => 'enrollment_site_layout',
    85                 'type'          => 'select',
    86                 'priority'      => 5,
    87                 'choices' => array(
    88                     'wide_layout'  => __( 'Wide Layout', 'enrollment' ),
    89                     'boxed_layout' => __( 'Boxed Layout', 'enrollment' )
    90                 )
     80    new Enrollment_Customize_Control_Radio_Image(
     81        $wp_customize,
     82        'enrollment_site_layout',
     83        array(
     84            'label'       => __( 'Site Layout', 'enrollment' ),
     85            'description' => __( 'Select the website layout.', 'enrollment' ),
     86            'section'     => 'website_layout_section',
     87            'settings'    => 'enrollment_site_layout',
     88            'priority'    => 5,
     89            'choices'     => array(
     90                'fullwidth' => array(
     91                    'url'   => get_template_directory_uri() . '/assets/images/full-width.png',
     92                    'label' => __( 'Fullwidth', 'enrollment' ),
     93                ),
     94                'boxed_layout' => array(
     95                    'url'   => get_template_directory_uri() . '/assets/images/boxed.png',
     96                    'label' => __( 'Boxed Layout', 'enrollment' ),
     97                ),
    9198            )
    92         );
     99        )
     100    )
     101);
     102
    93103    /*------------------------------------------------------------------------------------------------------------------------------------*/
    94104        /**
     
    138148                    'section'    => 'colors',
    139149                    'settings'   => 'enrollment_title_color',
    140                     'priority'   => 20
     150                    'priority'   => 20
    141151                )
    142152            )
  • enrollment/1.0.11/inc/enrollment-functions.php

    r192013 r268656  
    179179
    180180    global $enrollment_version;
    181    
     181   
    182182    wp_enqueue_script( 'jquery-lightslider', get_template_directory_uri() . '/assets/library/lightslider/js/lightslider.min.js', array('jquery'), '20180605', true );
    183183    wp_enqueue_script( 'enrollment-navigation', get_template_directory_uri() . '/assets/js/navigation.js', array(), esc_attr( $enrollment_version ), true );
     
    193193    }
    194194
    195     wp_enqueue_script( 'enrollment-custom-script', get_template_directory_uri(). '/assets/js/custom-script.js', array( 'jquery' ), esc_attr( $enrollment_version ), true );
    196 
    197     wp_enqueue_style( 'font-awesome', get_template_directory_uri().'/assets/library/font-awesome/css/font-awesome.min.css', array(), '4.5.0' );
     195    wp_enqueue_script( 'enrollment-custom-script', get_template_directory_uri(). '/assets/js/custom-script.js', array( 'jquery' ), esc_attr( $enrollment_version ), true );
     196
     197    wp_enqueue_style( 'font-awesome', get_template_directory_uri().'/assets/library/font-awesome/css/font-awesome.min.css', array(), '4.5.0' );
    198198
    199199    wp_enqueue_style( 'enrollment-fonts', enrollment_fonts_url(), array(), null );
     
    201201    wp_enqueue_style( 'lightslider-style', get_template_directory_uri() .'/assets/library/lightslider/css/lightslider.min.css', array(), '1.1.5' );
    202202
    203     wp_enqueue_style( 'enrollment-style', get_stylesheet_uri(), array(), esc_attr( $enrollment_version ) );
     203    wp_enqueue_style( 'enrollment-style', get_stylesheet_uri(), array(), esc_attr( $enrollment_version ) );
    204204
    205205    wp_enqueue_style( 'enrollment-responsive-style', get_template_directory_uri() .'/assets/css/enrollment-responsive.css', array(), esc_attr( $enrollment_version ) );
    206206
    207     if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    208         wp_enqueue_script( 'comment-reply' );
    209     }
     207
     208
     209add_filter('enable_sticky_sidebar', function() {
     210    return true; // or dynamic condition
     211});
     212function enrollment_sticky_sidebar_with_filter() {
     213    $make_sidebar_sticky = apply_filters('enable_sticky_sidebar', true);
     214    if ( $make_sidebar_sticky ) {
     215        wp_enqueue_script(
     216            'theia-sticky-sidebar',
     217            get_template_directory_uri() . '/assets/library/sticky-sidebar/theia-sticky-sidebar.min.js',
     218            array( 'jquery' ),
     219            '1.4.0',
     220            true
     221        );
     222    } else {
     223        wp_dequeue_script( 'theia-sticky-sidebar' );
     224        wp_deregister_script( 'theia-sticky-sidebar' );
     225    }
     226}
     227add_action( 'wp_enqueue_scripts', 'enrollment_sticky_sidebar_with_filter', 20 );
     228
     229
     230    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
     231        wp_enqueue_script( 'comment-reply' );
     232    }
    210233}
    211234add_action( 'wp_enqueue_scripts', 'enrollment_scripts' );
  • enrollment/1.0.11/inc/metaboxes/page-metabox.php

    r128860 r268656  
    2525endif;
    2626
    27 $enrollment_page_sidebar_options = array(
    28     'default-sidebar' => array(
    29         'id'        => 'page-default-sidebar',
    30         'value'     => 'default_sidebar',
    31         'label'     => esc_html__( 'Default Sidebar', 'enrollment' ),
    32         'thumbnail' => get_template_directory_uri() . '/assets/images/default-sidebar.png'
    33     ),
    34     'left-sidebar' => array(
    35         'id'        => 'page-left-sidebar',
    36         'value'     => 'left_sidebar',
    37         'label'     => esc_html__( 'Left sidebar', 'enrollment' ),
    38         'thumbnail' => get_template_directory_uri() . '/assets/images/left-sidebar.png'
    39     ),
    40     'right-sidebar' => array(
    41         'id'        => 'page-right-sidebar',
    42         'value'     => 'right_sidebar',
    43         'label'     => esc_html__( 'Right sidebar', 'enrollment' ),
    44         'thumbnail' => get_template_directory_uri() . '/assets/images/right-sidebar.png'
    45     ),
    46     'no-sidebar' => array(
    47         'id'        => 'page-no-sidebar',
    48         'value'     => 'no_sidebar',
    49         'label'     => esc_html__( 'No sidebar Full width', 'enrollment' ),
    50         'thumbnail' => get_template_directory_uri() . '/assets/images/no-sidebar.png'
    51     ),
    52     'no-sidebar-center' => array(
    53         'id'        => 'page-no-sidebar-center',
    54         'value'     => 'no_sidebar_center',
    55         'label'     => esc_html__( 'No sidebar Content Centered', 'enrollment' ),
    56         'thumbnail' => get_template_directory_uri() . '/assets/images/no-sidebar-center.png'
    57     )
    58 );
    59 
    6027
    6128if ( ! function_exists( 'enrollment_page_meta_callback' ) ) :
     
    6431     * Callback function for page option
    6532     */
    66     function enrollment_page_meta_callback() {
    67         global $post, $enrollment_page_sidebar_options;
     33    function enrollment_page_meta_callback() {
     34        global $post;     
     35    $enrollment_page_sidebar_options = array(
     36        'default-sidebar' => array(
     37            'id'        => 'page-default-sidebar',
     38            'value'     => 'default_sidebar',
     39            'label'     => esc_html__( 'Default Sidebar', 'enrollment' ),
     40            'thumbnail' => get_template_directory_uri() . '/assets/images/default-sidebar.png'
     41        ),
     42        'left-sidebar' => array(
     43            'id'        => 'page-left-sidebar',
     44            'value'     => 'left_sidebar',
     45            'label'     => esc_html__( 'Left sidebar', 'enrollment' ),
     46            'thumbnail' => get_template_directory_uri() . '/assets/images/left-sidebar.png'
     47        ),
     48        'right-sidebar' => array(
     49            'id'        => 'page-right-sidebar',
     50            'value'     => 'right_sidebar',
     51            'label'     => esc_html__( 'Right sidebar', 'enrollment' ),
     52            'thumbnail' => get_template_directory_uri() . '/assets/images/right-sidebar.png'
     53        ),
     54        'no-sidebar' => array(
     55            'id'        => 'page-no-sidebar',
     56            'value'     => 'no_sidebar',
     57            'label'     => esc_html__( 'No sidebar Full width', 'enrollment' ),
     58            'thumbnail' => get_template_directory_uri() . '/assets/images/no-sidebar.png'
     59        ),
     60        'no-sidebar-center' => array(
     61            'id'        => 'page-no-sidebar-center',
     62            'value'     => 'no_sidebar_center',
     63            'label'     => esc_html__( 'No sidebar Content Centered', 'enrollment' ),
     64            'thumbnail' => get_template_directory_uri() . '/assets/images/no-sidebar-center.png'
     65        )
     66    );
    6867
    6968        $get_post_meta_identity = get_post_meta( $post->ID, 'post_meta_identity', true );
    7069        $post_identity_value    = empty( $get_post_meta_identity ) ? 'cv-metabox-info' : $get_post_meta_identity;
    7170
    72         wp_nonce_field( basename( __FILE__ ), 'enrollment_page_meta_nonce' );
     71        wp_nonce_field( basename( __FILE__ ), 'enrollment_page_meta_nonce' );
    7372?>
    74         <div class="cv-meta-container clearfix">
    75             <ul class="cv-meta-menu-wrapper">
    76                 <li class="cv-meta-tab <?php if ( $post_identity_value == 'cv-metabox-info' ) { echo 'active'; } ?>" data-tab="cv-metabox-info"><span class="dashicons dashicons-clipboard"></span><?php esc_html_e( 'Information', 'enrollment' ); ?></li>
    77                 <li class="cv-meta-tab <?php if ( $post_identity_value == 'cv-metabox-sidebar' ) { echo 'active'; } ?>" data-tab="cv-metabox-sidebar"><span class="dashicons dashicons-exerpt-view"></span><?php esc_html_e( 'Sidebars', 'enrollment' ); ?></li>
    78             </ul><!-- .cv-meta-menu-wrapper -->
    79             <div class="cv-metabox-content-wrapper">
    80                
    81                 <!-- Info tab content -->
    82                 <div class="cv-single-meta" id="cv-metabox-info">
    83                     <div class="content-header">
    84                         <h4><?php esc_html_e( 'About Metabox Options', 'enrollment' ) ;?></h4>
    85                     </div><!-- .content-header -->
    86                     <div class="meta-options-wrap"><?php esc_html_e( 'At Metabox there are option for sidebars.', 'enrollment' ); ?></div><!-- .meta-options-wrap  -->
    87                 </div><!-- #cv-info-content -->
     73        <div class="cv-meta-container clearfix">
     74            <ul class="cv-meta-menu-wrapper">
     75                <li class="cv-meta-tab <?php if ( $post_identity_value == 'cv-metabox-info' ) { echo 'active'; } ?>" data-tab="cv-metabox-info"><span class="dashicons dashicons-clipboard"></span><?php esc_html_e( 'Information', 'enrollment' ); ?></li>
     76                <li class="cv-meta-tab <?php if ( $post_identity_value == 'cv-metabox-sidebar' ) { echo 'active'; } ?>" data-tab="cv-metabox-sidebar"><span class="dashicons dashicons-exerpt-view"></span><?php esc_html_e( 'Sidebars', 'enrollment' ); ?></li>
     77            </ul><!-- .cv-meta-menu-wrapper -->
     78            <div class="cv-metabox-content-wrapper">
     79               
     80                <!-- Info tab content -->
     81                <div class="cv-single-meta" id="cv-metabox-info">
     82                    <div class="content-header">
     83                        <h4><?php esc_html_e( 'About Metabox Options', 'enrollment' ) ;?></h4>
     84                    </div><!-- .content-header -->
     85                    <div class="meta-options-wrap"><?php esc_html_e( 'At Metabox there are option for sidebars.', 'enrollment' ); ?></div><!-- .meta-options-wrap  -->
     86                </div><!-- #cv-info-content -->
    8887
    89                 <!-- Sidebar tab content -->
    90                 <div class="cv-single-meta" id="cv-metabox-sidebar">
    91                     <div class="content-header">
    92                         <h4><?php esc_html_e( 'Available Sidebars', 'enrollment' ) ;?></h4>
    93                         <span class="section-desc"><em><?php esc_html_e( 'Select sidebar from available options which replaced sidebar layout from customizer settings.', 'enrollment' ); ?></em></span>
    94                     </div><!-- .content-header -->
    95                     <div class="cv-meta-options-wrap">
    96                         <div class="buttonset">
    97                             <?php
    98                                 foreach ( $enrollment_page_sidebar_options as $field ) {
    99                                     $enrollment_page_sidebar = get_post_meta( $post->ID, 'single_page_sidebar', true );
     88                <!-- Sidebar tab content -->
     89                <div class="cv-single-meta" id="cv-metabox-sidebar">
     90                    <div class="content-header">
     91                        <h4><?php esc_html_e( 'Available Sidebars', 'enrollment' ) ;?></h4>
     92                        <span class="section-desc"><em><?php esc_html_e( 'Select sidebar from available options which replaced sidebar layout from customizer settings.', 'enrollment' ); ?></em></span>
     93                    </div><!-- .content-header -->
     94                    <div class="cv-meta-options-wrap">
     95                        <div class="buttonset">
     96                            <?php
     97                                foreach ( $enrollment_page_sidebar_options as $field ) {
     98                                    $enrollment_page_sidebar = get_post_meta( $post->ID, 'single_page_sidebar', true );
    10099                                    $enrollment_page_sidebar = ( $enrollment_page_sidebar ) ? $enrollment_page_sidebar : 'default_sidebar';
    101                             ?>
    102                                     <input type="radio" id="<?php echo esc_attr( $field['id'] ); ?>" value="<?php echo esc_attr( $field['value'] ); ?>" name="single_page_sidebar" <?php checked( $field['value'], $enrollment_page_sidebar ); ?> />
    103                                     <label for="<?php echo esc_attr( $field['id'] ); ?>">
    104                                         <span class="screen-reader-text"><?php echo esc_html( $field['label'] ); ?></span>
    105                                         <img src="<?php echo esc_url( $field['thumbnail'] ); ?>" title="<?php echo esc_attr( $field['label'] ); ?>" alt="<?php echo esc_attr( $field['label'] ); ?>" />
    106                                     </label>
    107                                
    108                             <?php } ?>
    109                         </div><!-- .buttonset -->
    110                     </div><!-- .meta-options-wrap  -->
    111                 </div><!-- #cv-sidebar-content -->
    112             </div><!-- .cv-metabox-content-wrapper -->
     100                            ?>
     101                                    <input type="radio" id="<?php echo esc_attr( $field['id'] ); ?>" value="<?php echo esc_attr( $field['value'] ); ?>" name="single_page_sidebar" <?php checked( $field['value'], $enrollment_page_sidebar ); ?> />
     102                                    <label for="<?php echo esc_attr( $field['id'] ); ?>">
     103                                        <span class="screen-reader-text"><?php echo esc_html( $field['label'] ); ?></span>
     104                                        <img src="<?php echo esc_url( $field['thumbnail'] ); ?>" title="<?php echo esc_attr( $field['label'] ); ?>" alt="<?php echo esc_attr( $field['label'] ); ?>" />
     105                                    </label>
     106                               
     107                            <?php } ?>
     108                        </div><!-- .buttonset -->
     109                    </div><!-- .meta-options-wrap  -->
     110                </div><!-- #cv-sidebar-content -->
     111            </div><!-- .cv-metabox-content-wrapper -->
    113112            <div class="clear"></div>
    114113            <input type="hidden" id="post-meta-selected" name="post_meta_identity" value="<?php echo esc_attr( $post_identity_value ); ?>" />
    115         </div><!-- .cv-meta-container -->
     114        </div><!-- .cv-meta-container -->
    116115<?php
    117     }
     116    }
    118117
    119118endif;
  • enrollment/1.0.11/inc/metaboxes/post-metabox.php

    r128860 r268656  
    2525endif;
    2626
    27 $enrollment_post_sidebar_options = array(
    28     'default-sidebar' => array(
    29         'id'        => 'post-default-sidebar',
    30         'value'     => 'default_sidebar',
    31         'label'     => esc_html__( 'Default Sidebar', 'enrollment' ),
    32         'thumbnail' => get_template_directory_uri() . '/assets/images/default-sidebar.png'
    33     ),
    34     'left-sidebar' => array(
    35         'id'        => 'post-right-sidebar',
    36         'value'     => 'left_sidebar',
    37         'label'     => esc_html__( 'Left sidebar', 'enrollment' ),
    38         'thumbnail' => get_template_directory_uri() . '/assets/images/left-sidebar.png'
    39     ),
    40     'right-sidebar' => array(
    41         'id'        => 'post-left-sidebar',
    42         'value'     => 'right_sidebar',
    43         'label'     => esc_html__( 'Right sidebar', 'enrollment' ),
    44         'thumbnail' => get_template_directory_uri() . '/assets/images/right-sidebar.png'
    45     ),
    46     'no-sidebar' => array(
    47         'id'        => 'post-no-sidebar',
    48         'value'     => 'no_sidebar',
    49         'label'     => esc_html__( 'No sidebar Full width', 'enrollment' ),
    50         'thumbnail' => get_template_directory_uri() . '/assets/images/no-sidebar.png'
    51     ),
    52     'no-sidebar-center' => array(
    53         'id'        => 'post-no-sidebar-center',
    54         'value'     => 'no_sidebar_center',
    55         'label'     => esc_html__( 'No sidebar Content Centered', 'enrollment' ),
    56         'thumbnail' => get_template_directory_uri() . '/assets/images/no-sidebar-center.png'
    57     )
    58 );
    59 
    60 
    6127if ( ! function_exists( 'enrollment_post_meta_callback' ) ) :
    62    
     28   
    6329    /**
    6430     * Callback function for post option
    6531     */
    6632    function enrollment_post_meta_callback() {
    67         global $post, $enrollment_post_sidebar_options;
     33        global $post;
     34        $enrollment_post_sidebar_options = array(
     35            'default-sidebar' => array(
     36                'id'        => 'post-default-sidebar',
     37                'value'     => 'default_sidebar',
     38                'label'     => esc_html__( 'Default Sidebar', 'enrollment' ),
     39                'thumbnail' => get_template_directory_uri() . '/assets/images/default-sidebar.png'
     40            ),
     41            'left-sidebar' => array(
     42                'id'        => 'post-right-sidebar',
     43                'value'     => 'left_sidebar',
     44                'label'     => esc_html__( 'Left sidebar', 'enrollment' ),
     45                'thumbnail' => get_template_directory_uri() . '/assets/images/left-sidebar.png'
     46            ),
     47            'right-sidebar' => array(
     48                'id'        => 'post-left-sidebar',
     49                'value'     => 'right_sidebar',
     50                'label'     => esc_html__( 'Right sidebar', 'enrollment' ),
     51                'thumbnail' => get_template_directory_uri() . '/assets/images/right-sidebar.png'
     52            ),
     53            'no-sidebar' => array(
     54                'id'        => 'post-no-sidebar',
     55                'value'     => 'no_sidebar',
     56                'label'     => esc_html__( 'No sidebar Full width', 'enrollment' ),
     57                'thumbnail' => get_template_directory_uri() . '/assets/images/no-sidebar.png'
     58            ),
     59            'no-sidebar-center' => array(
     60                'id'        => 'post-no-sidebar-center',
     61                'value'     => 'no_sidebar_center',
     62                'label'     => esc_html__( 'No sidebar Content Centered', 'enrollment' ),
     63                'thumbnail' => get_template_directory_uri() . '/assets/images/no-sidebar-center.png'
     64            )
     65        );
    6866
    6967        $get_post_meta_identity = get_post_meta( $post->ID, 'post_meta_identity', true );
    7068        $post_identity_value = empty( $get_post_meta_identity ) ? 'cv-metabox-info' : $get_post_meta_identity;
    7169
    72         wp_nonce_field( basename( __FILE__ ), 'enrollment_post_meta_nonce' );
     70        wp_nonce_field( basename( __FILE__ ), 'enrollment_post_meta_nonce' );
    7371?>
    74         <div class="cv-meta-container clearfix">
    75             <ul class="cv-meta-menu-wrapper">
    76                 <li class="cv-meta-tab <?php if ( $post_identity_value == 'cv-metabox-info' ) { echo 'active'; } ?>" data-tab="cv-metabox-info"><span class="dashicons dashicons-clipboard"></span><?php esc_html_e( 'Information', 'enrollment' ); ?></li>
    77                 <li class="cv-meta-tab <?php if ( $post_identity_value == 'cv-metabox-sidebar' ) { echo 'active'; } ?>" data-tab="cv-metabox-sidebar"><span class="dashicons dashicons-exerpt-view"></span><?php esc_html_e( 'Sidebars', 'enrollment' ); ?></li>
    78             </ul><!-- .cv-meta-menu-wrapper -->
    79             <div class="cv-metabox-content-wrapper">
    80                
    81                 <!-- Info tab content -->
    82                 <div class="cv-single-meta active" id="cv-metabox-info">
    83                     <div class="content-header">
    84                         <h4><?php esc_html_e( 'About Metabox Options', 'enrollment' ) ;?></h4>
    85                     </div><!-- .content-header -->
    86                     <div class="meta-options-wrap"><?php esc_html_e( 'At Metabox there are option for sidebars.', 'enrollment' ); ?></div><!-- .meta-options-wrap  -->
    87                 </div><!-- #cv-info-content -->
     72        <div class="cv-meta-container clearfix">
     73            <ul class="cv-meta-menu-wrapper">
     74                <li class="cv-meta-tab <?php if ( $post_identity_value == 'cv-metabox-info' ) { echo 'active'; } ?>" data-tab="cv-metabox-info"><span class="dashicons dashicons-clipboard"></span><?php esc_html_e( 'Information', 'enrollment' ); ?></li>
     75                <li class="cv-meta-tab <?php if ( $post_identity_value == 'cv-metabox-sidebar' ) { echo 'active'; } ?>" data-tab="cv-metabox-sidebar"><span class="dashicons dashicons-exerpt-view"></span><?php esc_html_e( 'Sidebars', 'enrollment' ); ?></li>
     76            </ul><!-- .cv-meta-menu-wrapper -->
     77            <div class="cv-metabox-content-wrapper">
     78               
     79                <!-- Info tab content -->
     80                <div class="cv-single-meta active" id="cv-metabox-info">
     81                    <div class="content-header">
     82                        <h4><?php esc_html_e( 'About Metabox Options', 'enrollment' ) ;?></h4>
     83                    </div><!-- .content-header -->
     84                    <div class="meta-options-wrap"><?php esc_html_e( 'At Metabox there are option for sidebars.', 'enrollment' ); ?></div><!-- .meta-options-wrap  -->
     85                </div><!-- #cv-info-content -->
    8886
    89                 <!-- Sidebar tab content -->
    90                 <div class="cv-single-meta" id="cv-metabox-sidebar">
    91                     <div class="content-header">
    92                         <h4><?php esc_html_e( 'Available Sidebars', 'enrollment' ) ;?></h4>
    93                         <span class="section-desc"><em><?php esc_html_e( 'Select sidebar from available options which replaced sidebar layout from customizer settings.', 'enrollment' ); ?></em></span>
    94                     </div><!-- .content-header -->
    95                     <div class="cv-meta-options-wrap">
    96                         <div class="buttonset">
    97                             <?php
    98                                 foreach ( $enrollment_post_sidebar_options as $field ) {
    99                                     $enrollment_post_sidebar = get_post_meta( $post->ID, 'single_post_sidebar', true );
     87                <!-- Sidebar tab content -->
     88                <div class="cv-single-meta" id="cv-metabox-sidebar">
     89                    <div class="content-header">
     90                        <h4><?php esc_html_e( 'Available Sidebars', 'enrollment' ) ;?></h4>
     91                        <span class="section-desc"><em><?php esc_html_e( 'Select sidebar from available options which replaced sidebar layout from customizer settings.', 'enrollment' ); ?></em></span>
     92                    </div><!-- .content-header -->
     93                    <div class="cv-meta-options-wrap">
     94                        <div class="buttonset">
     95                            <?php
     96                                foreach ( $enrollment_post_sidebar_options as $field ) {
     97                                    $enrollment_post_sidebar = get_post_meta( $post->ID, 'single_post_sidebar', true );
    10098                                    $enrollment_post_sidebar = ( $enrollment_post_sidebar ) ? $enrollment_post_sidebar : 'default_sidebar';
    101                             ?>
    102                                     <input type="radio" id="<?php echo esc_attr( $field['id'] ); ?>" value="<?php echo esc_attr( $field['value'] ); ?>" name="single_post_sidebar" <?php checked( $field['value'], $enrollment_post_sidebar ); ?> />
    103                                     <label for="<?php echo esc_attr( $field['id'] ); ?>">
    104                                         <span class="screen-reader-text"><?php echo esc_html( $field['label'] ); ?></span>
    105                                         <img src="<?php echo esc_url( $field['thumbnail'] ); ?>" title="<?php echo esc_attr( $field['label'] ); ?>" alt="<?php echo esc_attr( $field['label'] ); ?>" />
    106                                     </label>
    107                                
    108                             <?php } ?>
    109                         </div><!-- .buttonset -->
    110                     </div><!-- .meta-options-wrap  -->
    111                 </div><!-- #cv-sidebar-content -->
     99                            ?>
     100                                    <input type="radio" id="<?php echo esc_attr( $field['id'] ); ?>" value="<?php echo esc_attr( $field['value'] ); ?>" name="single_post_sidebar" <?php checked( $field['value'], $enrollment_post_sidebar ); ?> />
     101                                    <label for="<?php echo esc_attr( $field['id'] ); ?>">
     102                                        <span class="screen-reader-text"><?php echo esc_html( $field['label'] ); ?></span>
     103                                        <img src="<?php echo esc_url( $field['thumbnail'] ); ?>" title="<?php echo esc_attr( $field['label'] ); ?>" alt="<?php echo esc_attr( $field['label'] ); ?>" />
     104                                    </label>
     105                               
     106                            <?php } ?>
     107                        </div><!-- .buttonset -->
     108                    </div><!-- .meta-options-wrap  -->
     109                </div><!-- #cv-sidebar-content -->
    112110
    113             </div><!-- .cv-metabox-content-wrapper -->
     111            </div><!-- .cv-metabox-content-wrapper -->
    114112            <div class="clear"></div>
    115113            <input type="hidden" id="post-meta-selected" name="post_meta_identity" value="<?php echo esc_attr( $post_identity_value ); ?>" />
    116         </div><!-- .cv-meta-container -->
     114        </div><!-- .cv-meta-container -->
    117115<?php
    118     }
     116    }
    119117
    120118endif;
  • enrollment/1.0.11/readme.txt

    r192013 r268656  
    22
    33Contributors:       codevibrant
    4 Requires at least:  4.7
    5 Tested up to:       6.2.1
    6 Requires PHP:       5.2.4
     4Requires at least:  5.6
     5Tested up to:       6.7
     6Requires PHP:       7.2
    77License:            GPLv3 or later
    88License URI:        http://www.gnu.org/licenses/gpl-3.0.html
     
    5959    https://pxhere.com/en/photo/1449809
    6060
    61 == Changelog ==
    62 
    63 = 1.0.10 = May 19, 2023
    64     * Added - block based widget design added.
    65     * Added - Block based tag dynamic hover color added.
    66 
    67 = 1.0.9 = May 21, 2021
    68     * Fixed - Responsive issue fixed.
    69     * Tweaks - 404 error page design tweaks done.
    70     * Fixed - Dynamic color issue fixed.
    71     * Tweaks - Some design tweaks and glitch fixed.
    72 
    73 = 1.0.8 = April 21, 2020
    74     * Fixed - bug at latest blog widget.
    75 
    76 = 1.0.7 = April 07, 2020
    77     * Fixed - responsive header and menu bug fixed.
    78     * Added - buy now button at welcome section.
    79     * Updated - .pot file.
    80 
    81 = 1.0.6 = November 20, 2019
    82     * Added - wp_body_open hooks.
    83     * Added - required at least WordPress version information.
    84     * Added - required php version information.
    85     * Added - TGM.
    86     * Fixed - Welcome notice dismissible.
    87 
    88 = 1.0.5 = August 08, 2019
    89     * Added - skip link for content.
    90     * Added - navigation scripts file.
    91     * Added - Welcome page.
    92     * Fixed - some code in files.
    93 
    94 = 1.0.4 =
    95     * Fixed design on the index page and header section.
    96 
    97 = 1.0.3 =
    98     * Added upsell button.
    99 
    100 = 1.0.2 =
    101     * Removed unused customizer field and their related codes.
    102 
    103 = 1.0.1 =
    104     * New screenshot updated.
    105 
    106 = 1.0.0 =
    107     * Submit on wordpress.org trac.
  • enrollment/1.0.11/style.css

    r192013 r268656  
    55Author URI:          https://codevibrant.com
    66Description:         Enrollment is a clean and modern WordPress Theme for all kinds of Educational center like School, College, University & Training center. It is perfect for any kind Educational website. It is easy to use & has a powerful features. Launch your institutional site with the Enrollment education WordPress theme! We have great customer support via email, support forum.
    7 Version:             1.0.10
    8 Requires at least:   4.7
    9 Tested up to:        6.2.1
    10 Requires PHP:        5.2.4
     7Version:             1.0.11
     8Requires at least:  5.6
     9Tested up to:       6.7
     10Requires PHP:       7.2
    1111License:             GNU General Public License v3 or later
    1212License URI:         http://www.gnu.org/licenses/gpl-3.0.html
     
    13111311
    13121312.site-title-wrapper {
    1313   float: left;
    13141313  margin: 22px 0;
    13151314}
     
    27462745  margin-top: 0;
    27472746}
     2747/* no result search page css */
     2748
     2749#primary .no-results .search-field{
     2750  width:90%;
     2751}
     2752
     2753#primary .no-results .search-submit{
     2754  height:36px;
     2755}
     2756
     2757.sticky-sidebar {
     2758    position: sticky;
     2759    top: 0; /* Adjust as needed */
     2760}
Note: See TracChangeset for help on using the changeset viewer.