Make WordPress Themes

Changeset 275453


Ignore:
Timestamp:
06/11/2025 06:28:11 PM (6 months ago)
Author:
themedropbox
Message:

New version of Joyas Shop - 1.3.4

Location:
joyas-shop/1.3.4
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • joyas-shop/1.3.4/inc/class/class-header.php

    r262618 r275453  
    2727        add_action('joyas_shop_site_header', array( $this, 'site_skip_to_content' ), 5 );
    2828
    29 
    3029        add_action('joyas_shop_site_header', array( $this, 'site_header_top_bar' ), 10 );
    3130
    3231        add_action('joyas_shop_site_header', array( $this, 'site_header_wrap_before' ), 10 );
    3332
    34        
    35        
    3633        add_action('joyas_shop_site_header', array( $this, 'site_header_layout' ), 30 );
    3734
     
    242239    * @return HTML
    243240    */
    244     public function site_hero_sections(){
    245         if( is_404() ) return;
    246         if ( is_front_page() && is_active_sidebar( 'slider' ) ) :
    247          dynamic_sidebar( 'slider' );
    248         else:
    249         $header_image = get_header_image();
    250         ?>
    251             <?php if( !empty( $header_image ) ) : ?>
    252             <div id="static_header_banner" class="header-img" style="background-image: url(<?php echo esc_url( $header_image );?>); background-attachment: scroll; background-size: cover; background-position: center center;">
    253              <?php else: ?>
    254              <div id="static_header_banner">
    255             <?php endif;?>
    256            
    257            
    258            
    259                 <div class="content-text">
    260                     <div class="container">
    261                         <?php
    262                             echo '<div class="site-header-text-wrap">';
    263 
    264                             if ( is_home() ) {
    265                                 if ( display_header_text() == true ){
    266                                     echo '<h1 class="page-title-text">';
    267                                     echo bloginfo( 'name' );
    268                                     echo '</h1>';
    269                                     echo '<p class="subtitle">';
    270                                     echo esc_html(get_bloginfo( 'description', 'display' ));
    271                                     echo '</p>';
    272                                 }
    273                             }else if ( function_exists('is_shop') && is_shop() ){
    274                                 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
    275                                     echo '<h1 class="page-title-text">';
    276                                     echo esc_html( woocommerce_page_title() );
    277                                     echo '</h1>';
    278                                 }
    279                             }else if( function_exists('is_product_category') && is_product_category() ){
    280                                 echo '<h1 class="page-title-text">';
    281                                 echo esc_html( woocommerce_page_title() );
    282                                 echo '</h1>';
    283                                 echo '<p class="subtitle">';
    284                                 do_action( 'joyas_shop_archive_description' );
    285                                 echo '</p>';
    286                                
    287                             }elseif ( is_singular() ) {
    288                                 echo '<h1 class="page-title-text">';
    289                                     echo single_post_title( '', false );
    290                                 echo '</h1>';
    291                             } elseif ( is_archive() ) {
    292                                
    293                                 the_archive_title( '<h1 class="page-title-text">', '</h1>' );
    294                                 the_archive_description( '<p class="archive-description subtitle">', '</p>' );
    295                                
    296                             } elseif ( is_search() ) {
    297                                 echo '<h1 class="title">';
    298                                     printf( /* translators:straing */ esc_html__( 'Search Results for: %s', 'joyas-shop' ),  get_search_query() );
    299                                 echo '</h1>';
    300                             } elseif ( is_404() ) {
    301                                 echo '<h1 class="display-1">';
    302                                     esc_html_e( 'Oops! That page can&rsquo;t be found.', 'joyas-shop' );
    303                                 echo '</h1>';
    304                             }
    305                             echo '</div>';
    306                         ?>
    307                     </div>
    308                 </div>
    309             </div>
    310         <?php
    311         endif;
    312     }
    313     /**
    314      * Add Banner Title.
    315      *
    316      * @since 1.0.0
    317      */
    318     function hero_block_heading() {
    319          echo '<div class="site-header-text-wrap">';
    320        
    321             if ( is_home() ) {
    322                     echo '<h1 class="page-title-text">';
    323                     echo bloginfo( 'name' );
    324                     echo '</h1>';
    325                     echo '<p class="subtitle">';
    326                     echo esc_html(get_bloginfo( 'description', 'display' ));
    327                     echo '</p>';
    328             }else if ( function_exists('is_shop') && is_shop() ){
    329                 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
    330                     echo '<h1 class="page-title-text">';
    331                     echo esc_html( woocommerce_page_title() );
    332                     echo '</h1>';
    333                 }
    334             }else if( function_exists('is_product_category') && is_product_category() ){
    335                 echo '<h1 class="page-title-text">';
    336                 echo esc_html( woocommerce_page_title() );
    337                 echo '</h1>';
    338                 echo '<p class="subtitle">';
    339                 do_action( 'joyas_shop_archive_description' );
    340                 echo '</p>';
    341                
    342             }elseif ( is_singular() ) {
    343                 echo '<h1 class="page-title-text">';
    344                     echo single_post_title( '', false );
    345                 echo '</h1>';
    346             } elseif ( is_archive() ) {
    347                
    348                 the_archive_title( '<h1 class="page-title-text">', '</h1>' );
    349                 the_archive_description( '<p class="archive-description subtitle">', '</p>' );
    350                
    351             } elseif ( is_search() ) {
    352                 echo '<h1 class="title">';
    353                     printf( /* translators:straing */ esc_html__( 'Search Results for: %s', 'joyas-shop' ),  get_search_query() );
    354                 echo '</h1>';
    355             } elseif ( is_404() ) {
    356                 echo '<h1 class="display-1">';
    357                     esc_html_e( 'Oops! That page can&rsquo;t be found.', 'joyas-shop' );
    358                 echo '</h1>';
    359             }
    360        
    361         echo '</div>';
     241    public function site_hero_sections() {
     242        if ( is_404() ) return;
     243
     244        if ( is_front_page() && is_active_sidebar( 'slider' ) ) {
     245            dynamic_sidebar( 'slider' );
     246            return;
     247        }
     248        $header_image = get_header_image();
     249        $has_header_image = ! empty( $header_image );
     250        ?>
     251        <div id="static_header_banner" class="header-img"
     252            <?php if ( $has_header_image ) : ?>
     253                style="background-image: url(<?php echo esc_url( $header_image ); ?>); background-attachment: scroll; background-size: cover; background-position: center center;"
     254            <?php endif; ?>>
     255           
     256            <div class="content-text">
     257                <div class="container">
     258                    <div class="site-header-text-wrap">
     259                        <?php
     260                        if ( is_home() && display_header_text() ) {
     261                            echo '<h1 class="page-title-text">' . get_bloginfo( 'name' ) . '</h1>';
     262                            echo '<p class="subtitle">' . esc_html( get_bloginfo( 'description', 'display' ) ) . '</p>';
     263                        }
     264
     265                        elseif ( function_exists( 'is_shop' ) && is_shop() && class_exists( 'WooCommerce' ) ) {
     266                            echo '<h1 class="page-title-text">';
     267                            echo esc_html( woocommerce_page_title() );
     268                            echo '</h1>';
     269                        }
     270                        elseif ( function_exists( 'is_product_category' ) && is_product_category() ) {
     271                            echo '<h1 class="page-title-text">';
     272                            echo esc_html( woocommerce_page_title() );
     273                            echo '</h1>';
     274                            echo '<p class="subtitle">';
     275                            do_action( 'joyas_shop_archive_description' );
     276                            echo '</p>';
     277                        }
     278
     279                        elseif ( is_singular() ) {
     280                            echo '<h1 class="page-title-text">' . single_post_title( '', false ) . '</h1>';
     281                            echo '<div class="subtitle">';
     282                            do_action( 'joyas_shop_single_post_title' );
     283                            echo '</div>';
     284                        }
     285
     286                        elseif ( is_archive() ) {
     287                            the_archive_title( '<h1 class="page-title-text">', '</h1>' );
     288                            the_archive_description( '<p class="archive-description subtitle">', '</p>' );
     289                        }
     290
     291                        elseif ( is_search() ) {
     292                            echo '<h1 class="title">';
     293                            printf( esc_html__( 'Search Results for: %s', 'joyas-shop' ), get_search_query() );
     294                            echo '</h1>';
     295                        }
     296
     297                        elseif ( is_404() ) {
     298                            echo '<h1 class="display-1">';
     299                            esc_html_e( 'Oops! That page can&rsquo;t be found.', 'joyas-shop' );
     300                            echo '</h1>';
     301                        }
     302                        ?>
     303                    </div>
     304                </div>
     305            </div>
     306        </div>
     307        <?php
    362308    }
    363309    private function alowed_tags(){
  • joyas-shop/1.3.4/inc/class/class-post-related.php

    r170683 r275453  
    2626       
    2727        add_action( 'joyas_shop_posts_blog_media', array( $this, 'render_thumbnail' ) );
    28        
    29        
    3028        add_action( 'joyas_shop_loop_navigation', array( $this,'site_loop_navigation' ) );
    3129        add_action( 'joyas_shop_single_post_navigation', array( $this,'single_post_navigation' ),10 );
    32        
    3330        add_filter( 'the_content_more_link', array( $this,'content_read_more_link' ));
    3431        add_filter( 'excerpt_more', array( $this,'excerpt_read_more_link' ) );
     
    4138    function author_bio(){
    4239    ?>
    43 
    44         <div id="author-info">
    45             <div class="author-avatar">
    46             <?php echo get_avatar( get_the_author_meta('user_email'), '80', '' ); ?>
    47             </div>
    48             <h3><?php the_author_link(); ?></h3>
    49             <div class="author-description">
    50             <?php the_author_meta('description'); ?>
    51             </div>
     40    <div id="author-info">
     41        <div class="author-avatar">
     42        <?php echo get_avatar( get_the_author_meta('user_email'), '80', '' ); ?>
    5243        </div>
    53 
     44        <h3><?php the_author_link(); ?></h3>
     45        <div class="author-description">
     46        <?php the_author_meta('description'); ?>
     47        </div>
     48    </div>
    5449    <?php
    5550    }
     
    6661            the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark" >', '</a></h2>' );
    6762        endif;
    68        
    69        
    70     }
    71    
    72    
    73 
     63    }
    7464    /**
    7565     * @since  Blog Expert 1.0.0
     
    10393
    10494    }
    105    
    106    
    107    
    10895    /**
    10996    * Adds custom Read More link the_content().
     
    142129        return $more;
    143130    }
    144 
    145    
    146131    /**
    147132     * Post Single Posts Navigation
     
    193178       
    194179    }
    195    
    196    
    197180    /**
    198181     * Post Posts Loop Navigation
     
    231214        endif;
    232215       
    233        
    234     }
    235    
    236    
     216    }
    237217    /**
    238218     * Change Comment fields location
     
    253233        return $fields;
    254234    }
    255    
    256    
    257    
    258235    /**
    259236     * Render post type thumbnail.
     
    282259   
    283260    }
    284    
    285    
    286261    /**
    287262     * Post formats audio.
     
    333308           
    334309        endif; 
    335        
    336        
    337        
    338310        $html =  apply_filters( 'joyas-shop_gallery_thumbnail', $html );
    339311       
     
    394366            $html .= $this->get_image_thumbnail();
    395367        }
    396        
    397        
    398        
    399368       
    400369        $html =  apply_filters( 'joyas-shop_audio_thumbnail', $html );
     
    484453        echo wp_kses( $html, $this->alowed_tags() );
    485454    }
    486    
    487    
    488    
    489    
    490455    private function alowed_tags(){
    491456       
  • joyas-shop/1.3.4/style.css

    r270218 r275453  
    88Tested up to: 6.8.0
    99Requires PHP: 7.0
    10 Version: 1.3.3
     10Version: 1.3.4
    1111License: GPLv3 or later
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.