Make WordPress Themes

Changeset 299162


Ignore:
Timestamp:
11/19/2025 09:16:57 AM (5 days ago)
Author:
themedropbox
Message:

New version of Scary Halloween - 0.3.7

Location:
scary-halloween/0.3.7
Files:
7 edited
1 copied

Legend:

Unmodified
Added
Removed
  • scary-halloween/0.3.7/archive.php

    r251391 r299162  
    1111
    1212<div class="container">
    13   <main id="maincontent" class="middle-align pt-5" role="main">
     13  <main id="maincontent" class="middle-align pt-5 web-frame" role="main">
    1414    <header>
    1515      <?php
  • scary-halloween/0.3.7/custom-style.php

    r294502 r299162  
    10281028        $scary_halloween_custom_css .='}';
    10291029    }
     1030
     1031    // Web Frame
     1032    $scary_halloween_web_frame = get_theme_mod('scary_halloween_web_frame',false);
     1033    if($scary_halloween_web_frame == false && get_theme_mod( 'scary_halloween_web_frame',false) != true){
     1034        $scary_halloween_custom_css .='.web-frame{';
     1035        $scary_halloween_custom_css .='border: 1px !important';
     1036        $scary_halloween_custom_css .='}';
     1037    }
     1038
     1039    $scary_halloween_web_frame_border_color = get_theme_mod('scary_halloween_web_frame_border_color');
     1040    if($scary_halloween_web_frame_border_color != false){
     1041        $scary_halloween_custom_css .='.web-frame{';
     1042            $scary_halloween_custom_css .='border-color: '.esc_attr($scary_halloween_web_frame_border_color).'!important;';
     1043        $scary_halloween_custom_css .='}';
     1044    }
     1045   
     1046    $scary_halloween_web_frame_border_width = get_theme_mod('scary_halloween_web_frame_border_width');
     1047    if($scary_halloween_web_frame_border_width != false){
     1048        $scary_halloween_custom_css .='.web-frame{';
     1049            $scary_halloween_custom_css .='border-width: '.esc_attr($scary_halloween_web_frame_border_width).'!important;';
     1050        $scary_halloween_custom_css .='}';
     1051    }
     1052
     1053    // change the Category style //
     1054    $scary_halloween_single_post_styling = get_theme_mod( 'scary_halloween_single_post_styling','Button');
     1055        if($scary_halloween_single_post_styling == 'Underline'){
     1056        $scary_halloween_custom_css .='.single-post-category .post-categories li a{';
     1057            $scary_halloween_custom_css .='text-decoration: underline; color: #fff; background-color: transparent;';
     1058        $scary_halloween_custom_css .='}';
     1059    }
     1060    else if($scary_halloween_single_post_styling == 'Default'){
     1061        $scary_halloween_custom_css .='.single-post-category .post-categories li a{';
     1062            $scary_halloween_custom_css .='text-decoration: none; color: #fff; background-color: transparent;';
     1063        $scary_halloween_custom_css .='}';
     1064    }
  • scary-halloween/0.3.7/inc/customizer.php

    r294502 r299162  
    16131613  )));
    16141614
     1615  // Web Frame //
     1616   
     1617    $wp_customize->add_setting( 'scary_halloween_blog_web_frame',array(
     1618        'default' => 0,
     1619        'transport' => 'refresh',
     1620        'sanitize_callback' => 'scary_halloween_switch_sanitization'
     1621    ) );
     1622    $wp_customize->add_control( new Scary_halloween_Toggle_Switch_Custom_Control( $wp_customize, 'scary_halloween_web_frame',array(
     1623        'label' => esc_html__( 'Show / Hide Blog Page Border','scary-halloween' ),
     1624        'section' => 'scary_halloween_post_settings'
     1625    )));
     1626
     1627    $wp_customize->add_setting('scary_halloween_web_frame_border_color', array(
     1628        'default'           => '',
     1629        'sanitize_callback' => 'sanitize_hex_color',
     1630    ));
     1631    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'scary_halloween_web_frame_border_color', array(
     1632        'label'    => __('Blog Page Border Color', 'scary-halloween'),
     1633        'section'  => 'scary_halloween_post_settings',
     1634    )));
     1635
     1636    $wp_customize->add_setting('scary_halloween_web_frame_border_width',array(
     1637        'default'=> '',
     1638        'sanitize_callback' => 'sanitize_text_field'
     1639    ));
     1640    $wp_customize->add_control('scary_halloween_web_frame_border_width',array(
     1641        'label' => __('Blog Page Width','scary-halloween'),
     1642        'description' => __('Enter a value in pixels Example:20px','scary-halloween'),
     1643        'input_attrs' => array(
     1644        'placeholder' => __( '10px', 'scary-halloween' ),
     1645    ),
     1646        'section'=> 'scary_halloween_post_settings',
     1647        'type'=> 'text'
     1648));
     1649
    16151650    $wp_customize->add_setting('scary_halloween_blog_excerpt_suffix',array(
    16161651        'default'=> '',
     
    21322167        'section' => 'scary_halloween_single_blog_settings'
    21332168    )));
     2169
     2170    $wp_customize->add_setting('scary_halloween_single_post_styling',array(
     2171    'default' => 'Button',
     2172    'transport' => 'refresh',
     2173    'sanitize_callback' => 'scary_halloween_sanitize_choices'
     2174    ));
     2175    $wp_customize->add_control('scary_halloween_single_post_styling',array(
     2176    'description' => __('Change the styling of Category .','scary-halloween'),
     2177    'type' => 'select',
     2178    'section' => 'scary_halloween_single_blog_settings',
     2179    'choices' => array(
     2180        'Button' => __('Button','scary-halloween'),
     2181        'Underline' => __('Underline','scary-halloween'),
     2182        'Default' => __('Default','scary-halloween'),
     2183      ),
     2184    ) );
    21342185
    21352186    $wp_customize->add_setting('scary_halloween_single_post_meta_field_separator',array(
  • scary-halloween/0.3.7/index.php

    r251391 r299162  
    1414
    1515<div class="container">
    16   <main id="maincontent" class="middle-align pt-5" role="main">
     16  <main id="maincontent" class="middle-align pt-5 web-frame" role="main">
    1717    <?php
    1818      $scary_halloween_theme_lay = get_theme_mod( 'scary_halloween_theme_options','Right Sidebar');
  • scary-halloween/0.3.7/readme.txt

    r296194 r299162  
    55Tested up to: 6.8
    66Requires PHP: 7.2
    7 Stable tag: 0.3.6
     7Stable tag: 0.3.7
    88License: GNU General Public License v3.0
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1414
    1515== Changelog ==
     16
     17= 0.3.7 =
     18* Added show /hide blog page border,border color and border width setting.
     19* Changed category text styling in single post.
    1620
    1721= 0.3.6 =
  • scary-halloween/0.3.7/sidebar.php

    r294502 r299162  
    66 */
    77?>
    8 <div  class="sidebar <?php if( get_theme_mod( 'scary_halloween_sticky_sidebar', false) == 1) { ?> sidebar-sticky"<?php } else { ?>close-sticky <?php } ?>">
     8<div  class="sidebar wow zoomInUp delay-1000<?php if( get_theme_mod( 'scary_halloween_sticky_sidebar', false) == 1) { ?> sidebar-sticky"data-wow-duration="2s"<?php } else { ?>close-sticky <?php } ?>">
    99    <div id="sidebar" class="wow zoomInUp delay-1000" data-wow-duration="2s" <?php if( is_page_template('blog-post-left-sidebar.php')){?> style="float:left;"<?php } ?>>   
    1010        <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
  • scary-halloween/0.3.7/style.css

    r296194 r299162  
    88Tested up to: 6.8
    99Requires PHP: 7.2
    10 Version: 0.3.6
     10Version: 0.3.7
    1111License: GNU General Public License v3.0
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    252252    z-index: 999;
    253253  }
     254}
     255@media screen and (min-width: 768px)and (max-width: 1199px){
     256  .sidebar-fixed {
     257    width: 22%;
     258  }
     259}
     260/* Web Frame */
     261.web-frame{
     262  border: 2px #E3652D solid !important;
     263  padding: 20px 20px 20px 20px !important;
     264  margin-top: 35px !important;
     265  margin-bottom: 20px !important;
    254266}
    255267/*---------Sticky Copyright---------*/
Note: See TracChangeset for help on using the changeset viewer.