Changeset 294912
- Timestamp:
- 10/27/2025 06:00:07 AM (12 months ago)
- Location:
- pixel-charity-nonprofit/1.9
- Files:
-
- 1 added
- 11 edited
- 1 copied
-
. (copied) (copied from pixel-charity-nonprofit/1.7 )
-
assets/images/default-posts-image.png (added)
-
inc/customizer/customizer.php (modified) (1 diff)
-
inc/template-functions.php (modified) (1 diff)
-
languages/pixel-charity-nonprofit.pot (modified) (3 diffs)
-
page.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
sidebar.php (modified) (1 diff)
-
single.php (modified) (1 diff)
-
style.css (modified) (4 diffs)
-
template-parts/content-image.php (modified) (1 diff)
-
template-parts/content-search.php (modified) (1 diff)
-
template-parts/content.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pixel-charity-nonprofit/1.9/inc/customizer/customizer.php
r285587 r294912 852 852 'choices' => pixel_charity_nonprofit_get_all_google_font_families(), 853 853 ) 854 ); 854 ); 855 855 856 856 // Footer Option -
pixel-charity-nonprofit/1.9/inc/template-functions.php
r281673 r294912 51 51 52 52 /** 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 */ 55 function 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 */ 76 function 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 } 61 95 } 62 96 -
pixel-charity-nonprofit/1.9/languages/pixel-charity-nonprofit.pot
r291745 r294912 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Pixel Charity Nonprofit 1. 2\n"5 "Project-Id-Version: Pixel Charity Nonprofit 1.9\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/pixel-charity-nonprofit\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 984 984 msgstr "" 985 985 986 #: inc/template-functions.php:109 986 #: inc/template-functions.php:71 987 msgid "Default Image" 988 msgstr "" 989 990 #: inc/template-functions.php:143 987 991 msgid "Left Sidebar" 988 992 msgstr "" 989 993 990 #: inc/template-functions.php:1 11991 #: inc/template-functions.php:1 22994 #: inc/template-functions.php:145 995 #: inc/template-functions.php:156 992 996 msgid "Add widgets here." 993 997 msgstr "" 994 998 995 #: inc/template-functions.php:1 20999 #: inc/template-functions.php:154 996 1000 msgid "Footer Sidebar" 997 1001 msgstr "" 998 1002 999 #: inc/template-functions.php:1 561003 #: inc/template-functions.php:190 1000 1004 msgctxt "yearly archives date format" 1001 1005 msgid "Y" 1002 1006 msgstr "" 1003 1007 1004 #: inc/template-functions.php:1 581008 #: inc/template-functions.php:192 1005 1009 msgctxt "monthly archives date format" 1006 1010 msgid "F Y" 1007 1011 msgstr "" 1008 1012 1009 #: inc/template-functions.php:1 601013 #: inc/template-functions.php:194 1010 1014 msgctxt "daily archives date format" 1011 1015 msgid "F j, Y" 1012 1016 msgstr "" 1013 1017 1014 #: inc/template-functions.php: 2661018 #: inc/template-functions.php:300 1015 1019 msgid "Full Size" 1016 1020 msgstr "" 1017 1021 1018 #: inc/template-functions.php: 2671022 #: inc/template-functions.php:301 1019 1023 msgid "Large Size" 1020 1024 msgstr "" 1021 1025 1022 #: inc/template-functions.php: 2681026 #: inc/template-functions.php:302 1023 1027 msgid "Medium Size" 1024 1028 msgstr "" 1025 1029 1026 #: inc/template-functions.php: 2691030 #: inc/template-functions.php:303 1027 1031 msgid "Medium Large Size" 1028 1032 msgstr "" 1029 1033 1030 #: inc/template-functions.php: 2701034 #: inc/template-functions.php:304 1031 1035 msgid "Thumbnail Size" 1032 1036 msgstr "" 1033 1037 1034 #: inc/template-functions.php: 2711038 #: inc/template-functions.php:305 1035 1039 msgid "1536x1536 Size" 1036 1040 msgstr "" 1037 1041 1038 #: inc/template-functions.php: 2721042 #: inc/template-functions.php:306 1039 1043 msgid "2048x2048 Size" 1040 1044 msgstr "" 1041 1045 1042 #: inc/template-functions.php: 2731046 #: inc/template-functions.php:307 1043 1047 msgid "1920x550 Size" 1044 1048 msgstr "" 1045 1049 1046 #: inc/template-functions.php: 2741050 #: inc/template-functions.php:308 1047 1051 msgid "1370x550 Size" 1048 1052 msgstr "" 1049 1053 1050 #: inc/template-functions.php: 2751054 #: inc/template-functions.php:309 1051 1055 msgid "590x310 Size" 1052 1056 msgstr "" 1053 1057 1054 #: inc/template-functions.php: 2761058 #: inc/template-functions.php:310 1055 1059 msgid "420x380 Size" 1056 1060 msgstr "" 1057 1061 1058 #: inc/template-functions.php: 2771062 #: inc/template-functions.php:311 1059 1063 msgid "420x300 Size" 1060 1064 msgstr "" 1061 1065 1062 #: inc/template-functions.php: 2781066 #: inc/template-functions.php:312 1063 1067 msgid "420x200 Size" 1064 1068 msgstr "" 1065 1069 1066 #: inc/template-functions.php: 2791070 #: inc/template-functions.php:313 1067 1071 msgid "290x150 Size" 1068 1072 msgstr "" 1069 1073 1070 #: inc/template-functions.php: 2801074 #: inc/template-functions.php:314 1071 1075 msgid "80x60 Size" 1072 1076 msgstr "" -
pixel-charity-nonprofit/1.9/page.php
r281673 r294912 11 11 <div id="content" class="site-content"> 12 12 <div class="container"> 13 <div class="pixel-charity-nonprofit-breadcrumb"> 14 <?php pixel_charity_nonprofit_breadcrumb_function(); ?> 15 </div> 13 16 <section class="wrap-detail-page"> 14 17 <div class="row"> -
pixel-charity-nonprofit/1.9/readme.txt
r291745 r294912 5 5 Requires PHP: 5.6 6 6 Tested up to: 6.8 7 Stable tag: 1. 77 Stable tag: 1.9 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 45 45 = 1.7 = 46 46 * Description Updated. 47 48 = 1.8 = 49 * Minor errors resolved. 50 51 = 1.9 = 52 * Added Breadcrumbs. 53 * Added Default Relevant Images in Posts. 47 54 48 55 == Resources == -
pixel-charity-nonprofit/1.9/sidebar.php
r281673 r294912 9 9 <?php 10 10 if ( 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' ); ?> 14 12 <?php } else { ?> 15 13 <div id="search-2" class="widget widget_search"> -
pixel-charity-nonprofit/1.9/single.php
r281673 r294912 11 11 <div id="content" class="site-content"> 12 12 <div class="container"> 13 <div class="pixel-charity-nonprofit-breadcrumb"> 14 <?php pixel_charity_nonprofit_breadcrumb_function(); ?> 15 </div> 13 16 <section class="wrap-detail-page"> 14 17 <div class="row"> -
pixel-charity-nonprofit/1.9/style.css
r291745 r294912 5 5 Author URI: https://www.themepixels.net/ 6 6 Description: 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. 77 Version: 1.9 8 8 Requires PHP: 5.6 9 9 Tested up to: 6.8 … … 1697 1697 opacity: 0.75; 1698 1698 } 1699 .post.no-thumbnail .entry-content,1699 /* .post.no-thumbnail .entry-content, 1700 1700 .attachment.no-thumbnail .entry-content { 1701 1701 padding-top: 0; 1702 } 1702 } */ 1703 1703 1704 1704 .entry-title a { … … 3305 3305 margin-bottom: 50px; 3306 3306 overflow-wrap: anywhere; 3307 border: 1px solid #e6e6e6; 3308 padding: 10px; 3307 3309 } 3308 3310 @media screen and (max-width: 575px) { … … 5122 5124 width: 100%; 5123 5125 } 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 17 17 ?> 18 18 <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> 26 24 27 25 <div class="entry-content"> -
pixel-charity-nonprofit/1.9/template-parts/content-search.php
r281673 r294912 14 14 ?> 15 15 <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 23 22 <div class="entry-content"> 24 23 <header class="entry-header"> -
pixel-charity-nonprofit/1.9/template-parts/content.php
r281673 r294912 14 14 ?> 15 15 <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> 23 21 24 22 <div class="entry-content">
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)