Make WordPress Themes

Changeset 299603


Ignore:
Timestamp:
11/21/2025 07:38:59 AM (3 days ago)
Author:
themedropbox
Message:

New version of Doctor General Physician - 2.7

Location:
doctor-general-physician/2.7
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • doctor-general-physician/2.7/inc/customizer.php

    r285592 r299603  
    549549    ) );
    550550
     551    //TP Single Blog Option
     552    $wp_customize->add_section('doctor_general_physician_single_blog_option',array(
     553        'title' => __('Single Post Option', 'doctor-general-physician'),
     554        'priority' => 1,
     555        'panel' => 'doctor_general_physician_panel_id'
     556    ) );
     557
     558    /** Meta Order */
     559    $wp_customize->add_setting('doctor_general_physician_single_blog_meta_order', array(
     560        'default' => array('date', 'author', 'comment','category', 'time'),
     561        'sanitize_callback' => 'doctor_general_physician_sanitize_sortable',
     562    ));
     563    $wp_customize->add_control(new doctor_general_physician_Control_Sortable($wp_customize, 'doctor_general_physician_single_blog_meta_order', array(
     564        'label' => esc_html__('Meta Order', 'doctor-general-physician'),
     565        'description' => __('Drag & Drop post items to re-arrange the order and also hide and show items as per the need by clicking on the eye icon.', 'doctor-general-physician') ,
     566        'section' => 'doctor_general_physician_single_blog_option',
     567        'choices' => array(
     568            'date' => __('date', 'doctor-general-physician') ,
     569            'author' => __('author', 'doctor-general-physician') ,
     570            'comment' => __('comment', 'doctor-general-physician') ,
     571            'category' => __('category', 'doctor-general-physician') ,
     572            'time' => __('time', 'doctor-general-physician') ,
     573        ) ,
     574    )));
     575
     576    $wp_customize->add_setting('doctor_general_physician_single_post_date_icon',array(
     577        'default'   => 'far fa-calendar-alt',
     578        'sanitize_callback' => 'sanitize_text_field'
     579    ));
     580    $wp_customize->add_control(new Doctor_General_Physician_Icon_Changer(
     581       $wp_customize,'doctor_general_physician_single_post_date_icon',array(
     582        'label' => __('Change Date Icon','doctor-general-physician'),
     583        'transport' => 'refresh',
     584        'section'   => 'doctor_general_physician_single_blog_option',
     585        'type'      => 'doctor-general-physician-icon'
     586    )));
     587
     588    $wp_customize->add_setting('doctor_general_physician_single_post_author_icon',array(
     589        'default'   => 'fas fa-user',
     590        'sanitize_callback' => 'sanitize_text_field'
     591    ));
     592    $wp_customize->add_control(new Doctor_General_Physician_Icon_Changer(
     593       $wp_customize,'doctor_general_physician_single_post_author_icon',array(
     594        'label' => __('Change Author Icon','doctor-general-physician'),
     595        'transport' => 'refresh',
     596        'section'   => 'doctor_general_physician_single_blog_option',
     597        'type'      => 'doctor-general-physician-icon'
     598    )));
     599
     600    $wp_customize->add_setting('doctor_general_physician_single_post_comment_icon',array(
     601        'default'   => 'fas fa-comments',
     602        'sanitize_callback' => 'sanitize_text_field'
     603    ));
     604    $wp_customize->add_control(new Doctor_General_Physician_Icon_Changer(
     605       $wp_customize,'doctor_general_physician_single_post_comment_icon',array(
     606        'label' => __('Change Comment Icon','doctor-general-physician'),
     607        'transport' => 'refresh',
     608        'section'   => 'doctor_general_physician_single_blog_option',
     609        'type'      => 'doctor-general-physician-icon'
     610    )));
     611
     612    $wp_customize->add_setting('doctor_general_physician_single_post_category_icon',array(
     613        'default'   => 'fas fa-list',
     614        'sanitize_callback' => 'sanitize_text_field'
     615    ));
     616    $wp_customize->add_control(new Doctor_General_Physician_Icon_Changer(
     617       $wp_customize,'doctor_general_physician_single_post_category_icon',array(
     618        'label' => __('Change Category Icon','doctor-general-physician'),
     619        'transport' => 'refresh',
     620        'section'   => 'doctor_general_physician_single_blog_option',
     621        'type'      => 'doctor-general-physician-icon'
     622    )));
     623
     624    $wp_customize->add_setting('doctor_general_physician_single_post_time_icon',array(
     625        'default'   => 'fas fa-clock',
     626        'sanitize_callback' => 'sanitize_text_field'
     627    ));
     628    $wp_customize->add_control(new Doctor_General_Physician_Icon_Changer(
     629       $wp_customize,'doctor_general_physician_single_post_time_icon',array(
     630        'label' => __('Change Time Icon','doctor-general-physician'),
     631        'transport' => 'refresh',
     632        'section'   => 'doctor_general_physician_single_blog_option',
     633        'type'      => 'doctor-general-physician-icon'
     634    )));
     635
    551636     //MENU TYPOGRAPHY
    552637    $wp_customize->add_section( 'doctor_general_physician_menu_typography', array(
  • doctor-general-physician/2.7/readme.txt

    r298211 r299603  
    55Tested up to: 6.8
    66Requires PHP: 5.6
    7 Stable tag: 2.6
     7Stable tag: 2.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    139139= 2.6 =
    140140    * Resolved theme css errors.
     141   
     142= 2.7 =
     143    * Added post meta order option for single post display.
     144    * Added option to customize the date icon in single posts.
     145    * Added option to customize the author icon in single posts.
     146    * Added option to customize the comment icon in single posts.
     147    * Added option to customize the category icon in single posts.
     148    * Added option to customize the time icon in single posts.
    141149       
    142150== Resources ==
  • doctor-general-physician/2.7/style.css

    r298211 r299603  
    55Author URI: https://www.themespride.com/
    66Description: The Doctor Physician WordPress Lite Theme is a modern and responsive solution designed specifically for healthcare professionals, doctors, clinics, and medical institutions. Whether you are a general practitioner, specialist, or running a healthcare clinic, this theme provides all the essential features needed to create a professional online presence effortlessly. It boasts a mobile-responsive design that ensures your website looks great across all devices, offering patients easy access to your site anytime, anywhere.The theme features a clean and professional layout, prioritizing readability and user experience, helping you present your services clearly. You can integrate appointment booking plugins seamlessly, allowing patients to schedule consultations directly from your site. The customizable service pages enable you to showcase your medical expertise and offerings in a way that’s easy for patients to understand.Optimized for SEO, the Doctor Physician WordPress Lite Theme helps your practice rank well in search results, attracting local traffic. It also includes blogging capabilities, allowing you to share medical advice, health tips, and updates, thereby engaging with your audience while boosting your SEO. The built-in contact forms and Google Maps integration make it easy for patients to reach out to you and find your clinic, improving accessibility. With customizable sections for colors, fonts, and layouts, you can effortlessly personalize the theme to match your brand without any coding knowledge. Designed for simplicity, efficiency, and elegance, the Doctor Physician WordPress Lite Theme is the perfect choice for medical professionals seeking to enhance their digital presence while focusing on patient care.
    7 Version: 2.6
     7Version: 2.7
    88Tested up to: 6.8
    99Requires PHP: 5.6
  • doctor-general-physician/2.7/template-parts/post/single-post.php

    r281110 r299603  
    1111    <div class="box-info">
    1212        <?php
    13         $doctor_general_physician_blog_archive_ordering = get_theme_mod('blog_meta_order', array('date', 'author', 'comment', 'category'));
     13        $doctor_general_physician_blog_archive_ordering = get_theme_mod('doctor_general_physician_single_blog_meta_order', array('date', 'author', 'comment', 'category'));
    1414
    1515        foreach ($doctor_general_physician_blog_archive_ordering as $doctor_general_physician_blog_data_order) :
    1616            if ('date' === $doctor_general_physician_blog_data_order) : ?>
    17                 <i class="far fa-calendar-alt mb-1 me-2"></i>
     17                <i class="<?php echo esc_attr(get_theme_mod('doctor_general_physician_single_post_date_icon','far fa-calendar-alt mb-1 me-2')); ?>"></i>
    1818                <span class="entry-date me-3"><?php echo get_the_date('j F, Y'); ?></span>
    1919            <?php elseif ('author' === $doctor_general_physician_blog_data_order) : ?>
    20                 <i class="fas fa-user mb-1 me-2"></i>
     20                <i class="<?php echo esc_attr(get_theme_mod('doctor_general_physician_single_post_author_icon','fas fa-user mb-1 me-2')); ?>"></i>
    2121                <span class="entry-author me-3"><?php the_author(); ?></span>
    2222            <?php elseif ('comment' === $doctor_general_physician_blog_data_order) : ?>
    23                 <i class="fas fa-comments mb-1 me-2"></i>
     23                <i class="<?php echo esc_attr(get_theme_mod('doctor_general_physician_single_post_comment_icon','fas fa-comments mb-1 me-2')); ?>"></i>
    2424                <span class="entry-comments me-3"><?php comments_number(__('0 Comments', 'doctor-general-physician'), __('0 Comments', 'doctor-general-physician'), __('% Comments', 'doctor-general-physician')); ?></span>
    2525            <?php elseif ('category' === $doctor_general_physician_blog_data_order) : ?>
    26                 <i class="fas fa-list mb-1 me-2"></i>
     26                <i class="<?php echo esc_attr(get_theme_mod('doctor_general_physician_single_post_category_icon','fas fa-list mb-1 me-2')); ?>"></i>
    2727                <span class="entry-category me-3"><?php doctor_general_physician_display_post_category_count(); ?></span>
    2828            <?php elseif ('time' === $doctor_general_physician_blog_data_order) : ?>
    29                 <i class="fas fa-clock mb-1 me-2"></i>
     29                <i class="<?php echo esc_attr(get_theme_mod('doctor_general_physician_single_post_time_icon','fas fa-clock mb-1 me-2')); ?>"></i>
    3030                <span class="entry-time me-3"><?php echo get_the_time('g:i a'); ?></span>
    3131
Note: See TracChangeset for help on using the changeset viewer.