Make WordPress Themes

Changeset 294912


Ignore:
Timestamp:
10/27/2025 06:00:07 AM (12 months ago)
Author:
themedropbox
Message:

New version of Pixel Charity Nonprofit - 1.9

Location:
pixel-charity-nonprofit/1.9
Files:
1 added
11 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pixel-charity-nonprofit/1.9/inc/customizer/customizer.php

    r285587 r294912  
    852852                        'choices'  => pixel_charity_nonprofit_get_all_google_font_families(),
    853853                )
    854         );     
     854        );
    855855
    856856    // Footer Option
  • pixel-charity-nonprofit/1.9/inc/template-functions.php

    r281673 r294912  
    5151
    5252/**
    53  * Adds custom size in images
    54  */
    55 function pixel_charity_nonprofit_image_size( $image_size ){
    56         $image_id = get_post_thumbnail_id();
    57        
    58         the_post_thumbnail( $image_size, array(
    59                 'alt' => esc_attr(get_post_meta( $image_id, '_wp_attachment_image_alt', true))
    60         ) );
     53 * Adds custom size in images and fallback to a default image if no featured image is available
     54 */
     55function pixel_charity_nonprofit_image_size( $pixel_charity_nonprofit_image_size ) {
     56    // Get the post's featured image ID
     57    $pixel_charity_nonprofit_image_id = get_post_thumbnail_id();
     58
     59    // If a featured image is set, use it, otherwise fallback to a default image
     60    if ( $pixel_charity_nonprofit_image_id ) {
     61        // Get the alt text for the featured image
     62        $pixel_charity_nonprofit_alt_text = esc_attr( get_post_meta( $pixel_charity_nonprofit_image_id, '_wp_attachment_image_alt', true ) );
     63       
     64        // Display the post thumbnail
     65        the_post_thumbnail( $pixel_charity_nonprofit_image_size, array( 'alt' => $pixel_charity_nonprofit_alt_text ) );
     66    } else {
     67        // Get the default image URL from the theme's 'images' folder
     68        $pixel_charity_nonprofit_default_image_url = get_template_directory_uri() . '/assets/images/default-posts-image.png'; // Adjust the path as necessary
     69       
     70        // Display the default image with proper escaping
     71        echo '<img src="' . esc_url( $pixel_charity_nonprofit_default_image_url ) . '" alt="' . esc_attr__( 'Default Image', 'pixel-charity-nonprofit' ) . '" />';
     72    }
     73}
     74
     75/* Breadcrumb Begin */
     76function pixel_charity_nonprofit_breadcrumb_function() {
     77        if (!is_home()) {
     78                echo '<a href="';
     79                        echo esc_url( home_url() );
     80                echo '">';
     81                        bloginfo('name');
     82                echo "</a> ";
     83                if (is_category() || is_single()) {
     84                        the_category(',');
     85                        if (is_single()) {
     86                                echo "<span> ";
     87                                        the_title();
     88                                echo "</span> ";
     89                        }
     90                } elseif (is_page()) {
     91                        echo "<span> ";
     92                                the_title();
     93                }
     94        }
    6195}
    6296
  • pixel-charity-nonprofit/1.9/languages/pixel-charity-nonprofit.pot

    r291745 r294912  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Pixel Charity Nonprofit 1.2\n"
     5"Project-Id-Version: Pixel Charity Nonprofit 1.9\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/pixel-charity-nonprofit\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-08-23T04:08:37+00:00\n"
     12"POT-Creation-Date: 2025-10-24T08:53:56+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
    … …  
    984984msgstr ""
    985985
    986 #: inc/template-functions.php:109
     986#: inc/template-functions.php:71
     987msgid "Default Image"
     988msgstr ""
     989
     990#: inc/template-functions.php:143
    987991msgid "Left Sidebar"
    988992msgstr ""
    989993
    990 #: inc/template-functions.php:111
    991 #: inc/template-functions.php:122
     994#: inc/template-functions.php:145
     995#: inc/template-functions.php:156
    992996msgid "Add widgets here."
    993997msgstr ""
    994998
    995 #: inc/template-functions.php:120
     999#: inc/template-functions.php:154
    9961000msgid "Footer Sidebar"
    9971001msgstr ""
    9981002
    999 #: inc/template-functions.php:156
     1003#: inc/template-functions.php:190
    10001004msgctxt "yearly archives date format"
    10011005msgid "Y"
    10021006msgstr ""
    10031007
    1004 #: inc/template-functions.php:158
     1008#: inc/template-functions.php:192
    10051009msgctxt "monthly archives date format"
    10061010msgid "F Y"
    10071011msgstr ""
    10081012
    1009 #: inc/template-functions.php:160
     1013#: inc/template-functions.php:194
    10101014msgctxt "daily archives date format"
    10111015msgid "F j, Y"
    10121016msgstr ""
    10131017
    1014 #: inc/template-functions.php:266
     1018#: inc/template-functions.php:300
    10151019msgid "Full Size"
    10161020msgstr ""
    10171021
    1018 #: inc/template-functions.php:267
     1022#: inc/template-functions.php:301
    10191023msgid "Large Size"
    10201024msgstr ""
    10211025
    1022 #: inc/template-functions.php:268
     1026#: inc/template-functions.php:302
    10231027msgid "Medium Size"
    10241028msgstr ""
    10251029
    1026 #: inc/template-functions.php:269
     1030#: inc/template-functions.php:303
    10271031msgid "Medium Large Size"
    10281032msgstr ""
    10291033
    1030 #: inc/template-functions.php:270
     1034#: inc/template-functions.php:304
    10311035msgid "Thumbnail Size"
    10321036msgstr ""
    10331037
    1034 #: inc/template-functions.php:271
     1038#: inc/template-functions.php:305
    10351039msgid "1536x1536 Size"
    10361040msgstr ""
    10371041
    1038 #: inc/template-functions.php:272
     1042#: inc/template-functions.php:306
    10391043msgid "2048x2048 Size"
    10401044msgstr ""
    10411045
    1042 #: inc/template-functions.php:273
     1046#: inc/template-functions.php:307
    10431047msgid "1920x550 Size"
    10441048msgstr ""
    10451049
    1046 #: inc/template-functions.php:274
     1050#: inc/template-functions.php:308
    10471051msgid "1370x550 Size"
    10481052msgstr ""
    10491053
    1050 #: inc/template-functions.php:275
     1054#: inc/template-functions.php:309
    10511055msgid "590x310 Size"
    10521056msgstr ""
    10531057
    1054 #: inc/template-functions.php:276
     1058#: inc/template-functions.php:310
    10551059msgid "420x380 Size"
    10561060msgstr ""
    10571061
    1058 #: inc/template-functions.php:277
     1062#: inc/template-functions.php:311
    10591063msgid "420x300 Size"
    10601064msgstr ""
    10611065
    1062 #: inc/template-functions.php:278
     1066#: inc/template-functions.php:312
    10631067msgid "420x200 Size"
    10641068msgstr ""
    10651069
    1066 #: inc/template-functions.php:279
     1070#: inc/template-functions.php:313
    10671071msgid "290x150 Size"
    10681072msgstr ""
    10691073
    1070 #: inc/template-functions.php:280
     1074#: inc/template-functions.php:314
    10711075msgid "80x60 Size"
    10721076msgstr ""
  • pixel-charity-nonprofit/1.9/page.php

    r281673 r294912  
    1111<div id="content" class="site-content">
    1212        <div class="container">
     13                <div class="pixel-charity-nonprofit-breadcrumb">
     14                        <?php pixel_charity_nonprofit_breadcrumb_function(); ?>
     15                </div>
    1316                <section class="wrap-detail-page">
    1417                        <div class="row">
  • pixel-charity-nonprofit/1.9/readme.txt

    r291745 r294912  
    55Requires PHP: 5.6
    66Tested up to: 6.8
    7 Stable tag: 1.7
     7Stable tag: 1.9
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    … …  
    4545= 1.7 =
    4646* Description Updated.
     47
     48= 1.8 =
     49* Minor errors resolved.
     50
     51= 1.9 =
     52* Added Breadcrumbs.
     53* Added Default Relevant Images in Posts.
    4754
    4855== Resources ==
  • pixel-charity-nonprofit/1.9/sidebar.php

    r281673 r294912  
    99<?php
    1010if ( is_active_sidebar( 'sidebar-1' )) { ?>
    11         <div id="secondary" class="sidebar left-sidebar">
    12                 <?php dynamic_sidebar( 'sidebar-1' ); ?>
    13         </div>
     11        <?php dynamic_sidebar( 'sidebar-1' ); ?>
    1412<?php } else { ?>
    1513        <div id="search-2" class="widget widget_search">
  • pixel-charity-nonprofit/1.9/single.php

    r281673 r294912  
    1111<div id="content" class="site-content">
    1212        <div class="container">
     13                <div class="pixel-charity-nonprofit-breadcrumb">
     14                        <?php pixel_charity_nonprofit_breadcrumb_function(); ?>
     15                </div>
    1316                <section class="wrap-detail-page">
    1417                        <div class="row">
  • pixel-charity-nonprofit/1.9/style.css

    r291745 r294912  
    55Author URI: https://www.themepixels.net/
    66Description: Pixel Charity Nonprofit is a multipurpose theme designed to help charitable organizations, NGOs, non-profit institutions, fundraising campaigns, donation drives, religious institutions, social service initiatives, community service projects, and charity foundations create a strong online presence with ease. Featuring a minimal, clean, and elegant design, this theme offers a sophisticated layout that is both visually appealing and highly functional. Its responsive and retina-ready design ensures your site looks stunning across all devices, providing a seamless user experience. Built with optimized code for faster page load times and secure, clean coding standards, Pixel Charity Nonprofit prioritizes performance and security. It is tutorial-friendly, making it easy for beginners to set up without technical hassles. The theme includes personalization options, allowing you to tailor the design to your brand’s unique style. With features like a banner section, testimonial section, team showcase, donation system integration (GiveWP plugin), advanced widgets, and fundraising tools, you can effectively build trust and highlight your mission. To boost engagement, the theme incorporates Call-to-Action (CTA) buttons, interactive elements, volunteer management options, and social media integration, helping you connect with your audience effortlessly. Pixel Charity Nonprofit also offers customization options, shortcodes, SEO-friendly structure, accessibility-ready features, fast-loading performance, mobile-friendly layout, cross-browser compatibility, and translation-ready functionality, ensuring flexibility and global reach. Its animated sections, Bootstrap-based structure, lightweight framework, and luxurious aesthetic make it stand out as both professional and visually captivating. Whether you’re creating a nonprofit, donation, fundraising, charity, NGO, foundation, or religious campaign site, Pixel Charity Nonprofit provides all the tools you need for success, combining stunning visuals, clean design, and user-friendly navigation to deliver a powerful online presence that inspires action.
    7 Version: 1.7
     7Version: 1.9
    88Requires PHP: 5.6
    99Tested up to: 6.8
    … …  
    16971697  opacity: 0.75;
    16981698}
    1699 .post.no-thumbnail .entry-content,
     1699/* .post.no-thumbnail .entry-content,
    17001700.attachment.no-thumbnail .entry-content {
    17011701  padding-top: 0;
    1702 }
     1702} */
    17031703
    17041704.entry-title a {
    … …  
    33053305  margin-bottom: 50px;
    33063306  overflow-wrap: anywhere;
     3307  border: 1px solid #e6e6e6;
     3308  padding: 10px;
    33073309}
    33083310@media screen and (max-width: 575px) {
    … …  
    51225124  width: 100%;
    51235125}
     5126
     5127/* Breadcrumb */
     5128.pixel-charity-nonprofit-breadcrumb{
     5129  padding:30px 0;
     5130  flex-direction: row;
     5131  gap: 10px;
     5132}
     5133.pixel-charity-nonprofit-breadcrumb a,.pixel-charity-nonprofit-breadcrumb span{
     5134  background: var(--global-colortwo);
     5135  color:#fff;
     5136  padding: 7px 15px;
     5137  border-radius: 4px;
     5138  display: inline-block;
     5139  align-content: center;
     5140  margin-bottom: 10px;
     5141}
     5142.pixel-charity-nonprofit-breadcrumb span{
     5143  margin-left: 5px;
     5144}
     5145.pixel-charity-nonprofit-breadcrumb a:hover, .post-categories li a:hover{
     5146  background: var(--global-color);
     5147  color:#000;
     5148}
  • pixel-charity-nonprofit/1.9/template-parts/content-image.php

    r282111 r294912  
    1717?>
    1818<article id="post-<?php the_ID(); ?>" <?php post_class( $class . ' ' ) ?> >
    19         <?php if ( has_post_thumbnail() ) : ?>
    20                 <figure class="featured-image">
    21                         <a href="<?php the_permalink(); ?>">
    22                                 <?php pixel_charity_nonprofit_image_size( 'pixel-charity-nonprofit-1370-550' ) ?>
    23                         </a>
    24                 </figure>
    25         <?php endif; ?>
     19        <figure class="featured-image">
     20                <a href="<?php the_permalink(); ?>">
     21                        <?php pixel_charity_nonprofit_image_size( 'pixel-charity-nonprofit-1370-550' ) ?>
     22                </a>
     23        </figure>
    2624
    2725        <div class="entry-content">
  • pixel-charity-nonprofit/1.9/template-parts/content-search.php

    r281673 r294912  
    1414?>
    1515<article id="post-<?php the_ID(); ?>" <?php post_class( $class . ' ' ) ?>>
    16         <?php if ( has_post_thumbnail() ) : ?>
    17                 <figure class="featured-image">
    18                         <a href="<?php the_permalink(); ?>">
    19                                 <?php pixel_charity_nonprofit_image_size( 'pixel-charity-nonprofit-1370-550' ) ?>
    20                         </a>
    21                 </figure>
    22         <?php endif; ?>
     16        <figure class="featured-image">
     17                <a href="<?php the_permalink(); ?>">
     18                        <?php pixel_charity_nonprofit_image_size( 'pixel-charity-nonprofit-1370-550' ) ?>
     19                </a>
     20        </figure>
     21       
    2322        <div class="entry-content">
    2423                <header class="entry-header">
  • pixel-charity-nonprofit/1.9/template-parts/content.php

    r281673 r294912  
    1414?>
    1515<article id="post-<?php the_ID(); ?>" <?php post_class( $class . ' ' ) ?> >
    16         <?php if ( has_post_thumbnail() ) : ?>
    17                 <figure class="featured-image">
    18                         <a href="<?php the_permalink(); ?>">
    19                                 <?php pixel_charity_nonprofit_image_size( 'pixel-charity-nonprofit-1370-550' ) ?>
    20                         </a>
    21                 </figure>
    22         <?php endif; ?>
     16        <figure class="featured-image">
     17                <a href="<?php the_permalink(); ?>">
     18                        <?php pixel_charity_nonprofit_image_size( 'pixel-charity-nonprofit-1370-550' ) ?>
     19                </a>
     20        </figure>
    2321
    2422        <div class="entry-content">
Note: See TracChangeset for help on using the changeset viewer.