Changeset 340499
- Timestamp:
- 07/24/2026 04:06:15 AM (3 months ago)
- Location:
- goods-and-transport/1.1
- Files:
-
- 13 added
- 4 edited
- 1 copied
-
. (copied) (copied from goods-and-transport/1.0 )
-
assets/css/admin-notice.css (added)
-
assets/css/customizer.css (added)
-
functions.php (modified) (1 diff)
-
getstarted (added)
-
getstarted/assets (added)
-
getstarted/assets/css (added)
-
getstarted/assets/css/getstart-page.css (added)
-
getstarted/assets/js (added)
-
getstarted/assets/js/getstart-page.js (added)
-
getstarted/goods_and_transport_about_page.php (added)
-
getstarted/goods_and_transport_changelog.php (added)
-
inc/section-pro (added)
-
inc/section-pro/customizer.php (added)
-
inc/section-pro/section-pro.php (added)
-
patterns/footer-default.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
style.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
goods-and-transport/1.1/functions.php
r338844 r340499 88 88 require_once get_template_directory() . '/inc/tgm/tgm.php'; 89 89 90 /** 91 * Section Pro 92 */ 93 require get_template_directory() . '/inc/section-pro/customizer.php'; 94 90 95 } 91 96 add_action( 'after_setup_theme', 'goods_and_transport_init_setup' ); 97 98 99 ////////////////////////////////////////////// Function for Translation Error ////////////////////////////////////////////////////// 100 function goods_and_transport_enqueue_function() { 101 102 /** 103 * GET START. 104 */ 105 require get_template_directory() . '/getstarted/goods_and_transport_about_page.php'; 106 107 define('GOODS_AND_TRANSPORT_FREE_SUPPORT',__('https://www.revolutionwp.com/products/goods-and-transport','goods-and-transport')); 108 define('GOODS_AND_TRANSPORT_PRO_SUPPORT',__('https://www.revolutionwp.com/support/revolution-wp/','goods-and-transport')); 109 define('GOODS_AND_TRANSPORT_REVIEW',__('https://wordpress.org/support/theme/goods-and-transport/reviews/','goods-and-transport')); 110 define('GOODS_AND_TRANSPORT_BUY_NOW',__('https://www.revolutionwp.com/products/transport-wordpress-theme','goods-and-transport')); 111 define('GOODS_AND_TRANSPORT_LIVE_DEMO',__('https://demo.revolutionwp.com/goods-and-transport-pro/','goods-and-transport')); 112 define('GOODS_AND_TRANSPORT_PRO_DOC',__('https://demo.revolutionwp.com/wpdocs/goods-and-transport-pro/','goods-and-transport')); 113 define('GOODS_AND_TRANSPORT_LITE_DOC',__('https://demo.revolutionwp.com/wpdocs/goods-and-transport-free/','goods-and-transport')); 114 115 } 116 add_action( 'after_setup_theme', 'goods_and_transport_enqueue_function' ); 117 118 // Add admin notice 119 function goods_and_transport_admin_notice() { 120 global $pagenow; 121 $goods_and_transport_theme_args = wp_get_theme(); 122 $goods_and_transport_meta = get_option( 'goods_and_transport_admin_notice' ); 123 $name = $goods_and_transport_theme_args->__get( 'Name' ); 124 $goods_and_transport_current_screen = get_current_screen(); 125 126 if( !$goods_and_transport_meta ){ 127 if( is_network_admin() ){ 128 return; 129 } 130 131 if( ! current_user_can( 'manage_options' ) ){ 132 return; 133 } 134 135 if( $goods_and_transport_current_screen->base !== 'appearance_page_goods_and_transport_guide') { ?> 136 137 <div class="notice notice-success goods-and-transport-welcome-notice"> 138 <p class="goods-and-transport-dismiss-link"> 139 <strong> 140 <a href="<?php echo esc_url( add_query_arg( 'goods_and_transport_admin_notice', '1' ) ); ?>"> 141 <?php esc_html_e( 'Dismiss', 'goods-and-transport' ); ?> 142 </a> 143 </strong> 144 </p> 145 146 <div class="goods-and-transport-welcome-notice-wrap"> 147 <h2 class="goods-and-transport-notice-title"> 148 <span class="dashicons dashicons-admin-home"></span> 149 <?php 150 $goods_and_transport_theme_name = wp_get_theme()->get( 'Name' ); 151 /* translators: %s!: Theme Name. */ 152 echo esc_html( sprintf( __( 'Welcome to the free theme: %s!', 'goods-and-transport' ), $goods_and_transport_theme_name ) ); 153 ?> 154 </h2> 155 <p class="goods-and-transport-notice-desc"> 156 <?php esc_html_e( 'Get started by exploring the features of your new theme. Customize your design, add your content, and create a site that fits your vision.', 'goods-and-transport' ); ?> 157 </p> 158 159 <div class="goods-and-transport-welcome-info"> 160 <div class="goods-and-transport-welcome-thumb"> 161 <img src="<?php echo esc_url( get_stylesheet_directory_uri() . '/screenshot.png' ); ?>" alt="<?php esc_attr_e( 'Theme Screenshot', 'goods-and-transport' ); ?>"> 162 </div> 163 164 <div class="goods-and-transport-welcome-getting-started"> 165 <h3><span class="dashicons dashicons-art"></span> <?php esc_html_e( 'Customize Your Theme', 'goods-and-transport' ); ?></h3> 166 <p><?php esc_html_e( 'Want to make it truly yours? Explore the Getting Started Guide to personalize your site to suit your needs.', 'goods-and-transport' ); ?></p> 167 <p><a class="info-link button" href="<?php echo esc_url( admin_url( 'themes.php?page=goods-and-transport-getstart-page' ) ); ?>"><?php esc_html_e( 'View Getting Started Guide', 'goods-and-transport' ); ?></a></p> 168 </div> 169 </div> 170 </div> 171 </div> 172 173 <?php 174 } 175 176 } 177 } 178 179 add_action( 'admin_notices', 'goods_and_transport_admin_notice' ); 180 181 if( ! function_exists( 'goods_and_transport_update_admin_notice' ) ) : 182 /** 183 * Updating admin notice on dismiss 184 */ 185 function goods_and_transport_update_admin_notice(){ 186 if ( isset( $_GET['goods_and_transport_admin_notice'] ) && $_GET['goods_and_transport_admin_notice'] = '1' ) { 187 update_option( 'goods_and_transport_admin_notice', true ); 188 } 189 } 190 endif; 191 add_action( 'admin_init', 'goods_and_transport_update_admin_notice' ); 192 193 add_action('after_switch_theme', 'goods_and_transport_setup_options'); 194 function goods_and_transport_setup_options () { 195 update_option('goods_and_transport_admin_notice', FALSE ); 196 } 197 198 // Enqueue custom admin notice CSS 199 function goods_and_transport_enqueue_admin_notice_css( $hook ) { 200 // Load CSS only on wp-admin pages (not the front end) 201 wp_enqueue_style( 202 'goods-and-transport-admin-notice-style', 203 get_template_directory_uri() . '/assets/css/admin-notice.css', 204 array(), 205 wp_get_theme()->get( 'Version' ) 206 ); 207 } 208 add_action( 'admin_enqueue_scripts', 'goods_and_transport_enqueue_admin_notice_css' ); 209 210 211 // changelog 212 function goods_and_transport_get_changelog_from_readme() { 213 $file_path = get_template_directory() . '/readme.txt'; 214 215 if (!file_exists($file_path)) { 216 return []; 217 } 218 219 $content = file_get_contents($file_path); 220 221 // Check if changelog exists 222 if (strpos($content, '== Changelog ==') === false) { 223 return []; 224 } 225 226 // Extract only changelog section 227 $changelog = explode('== Changelog ==', $content)[1]; 228 229 // Match versions like = 1.0 = 230 preg_match_all('/=\s*([\d\.]+)\s*=\s*(.*?)(?=\n=\s*[\d\.]+\s*=|\Z)/s', $changelog, $matches, PREG_SET_ORDER); 231 232 return $matches; 233 } -
goods-and-transport/1.1/patterns/footer-default.php
r338844 r340499 102 102 <div class="wp-block-columns copyright-section"><!-- wp:column {"verticalAlignment":"center","width":"100%"} --> 103 103 <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:100%"><!-- wp:paragraph {"align":"center","className":"has-white-color has-text-color","style":{"typography":{"fontStyle":"normal","fontWeight":"500","fontSize":"15px"},"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}},"spacing":{"padding":{"top":"10px","bottom":"10px","left":"22px","right":"22px"}},"border":{"radius":"5px"}},"backgroundColor":"background","textColor":"foreground","fontFamily":"PT Sans"} --> 104 <p class="has-text-align-center has-white-color has-text-color has-foreground-color has-background-background-color has-background has-link-color has-pt-sans-font-family" style="border-radius:5px;padding-top:10px;padding-right:22px;padding-bottom:10px;padding-left:22px;font-size:15px;font-style:normal;font-weight:500"><strong>< ?php esc_html_e('Goods and Transport','goods-and-transport'); ?></strong> <?php esc_html_e('WordPress Theme','goods-and-transport'); ?></p>104 <p class="has-text-align-center has-white-color has-text-color has-foreground-color has-background-background-color has-background has-link-color has-pt-sans-font-family" style="border-radius:5px;padding-top:10px;padding-right:22px;padding-bottom:10px;padding-left:22px;font-size:15px;font-style:normal;font-weight:500"><strong><a target="_blank" href="https://www.revolutionwp.com/products/goods-and-transport"><?php esc_html_e('Goods and Transport','goods-and-transport'); ?></a></strong> <?php esc_html_e('WordPress Theme','goods-and-transport'); ?></p> 105 105 <!-- /wp:paragraph --></div> 106 106 <!-- /wp:column --></div> -
goods-and-transport/1.1/readme.txt
r338844 r340499 6 6 Requires PHP: 7.2 7 7 Tested up to: 7.0 8 Stable tag: 1. 08 Stable tag: 1.1 9 9 License: GNU General Public License v2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 24 24 = 1.0 = 25 25 * Initial release 26 27 = 1.1 = 28 * Added get started. 29 * Added footer link. 30 * Added go pro link in customizer. 31 * Resolved preview errors. 26 32 27 33 == Copyright == -
goods-and-transport/1.1/style.css
r338844 r340499 5 5 Author URI: https://www.revolutionwp.com/ 6 6 Description: The Goods and Transport Theme is designed with a structured layout suitable for presenting transport-related content, logistics information, shipping services, fleet details, and business updates. It includes organized sections for service listings, featured content, contact information, testimonials, and company details. The homepage layout supports banners, call-to-action areas, and content blocks that help arrange information in a clear format. The theme offers responsive layouts that adapt across desktops, tablets, and mobile devices for a consistent browsing experience. It supports customization through the built-in editor, allowing changes to colors, typography, menus, logos, and page layouts without modifying core files. The code follows standard development practices, making it compatible with commonly used plugins and regular platform updates. It also includes support for navigation menus, widget areas, featured images, and blog sections for publishing company news or industry articles. Basic SEO-friendly structure, optimized page layouts, and accessibility-focused elements contribute to improved usability. Overall, the Goods and Transport Theme provides a balanced framework for creating an organized and informative website with flexible customization options while maintaining a clean and professional appearance. 7 Version: 1. 07 Version: 1.1 8 8 Requires at least: 5.5 9 9 Tested up to: 7.0 … … 2587 2587 } 2588 2588 @media screen and (max-width:1250px) and (min-width:850px) { 2589 2589 .logo-box-grp h1{ 2590 font-size: 20px !important; 2591 } 2592 .main-banner-sec h1{ 2593 font-size: 42px !important; 2594 } 2595 .form-sec h2{ 2596 font-size: 20px !important; 2597 } 2598 .tracking-form input[type="text"], .tracking-form input[type="email"]{ 2599 width: 180px !important; 2600 } 2590 2601 } 2591 2602 /* Scroll to Top */
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)