This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Task: Convert Static HTML Calculator Site to PHP | |
| ## Project Context | |
| I have an existing static HTML website with ~50 pages: | |
| - A handful of informational pages (About, Contact, Privacy, etc.) | |
| - The rest are individual calculator pages, each with its own HTML/CSS/JS | |
| - All files are in current folder | |
| The site works, but maintaining 50 separate full HTML files is painful. Every header/footer/nav change means editing every file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Crudiator; | |
| // WordPress標準クラスのWP_List_Tableをベースクラスとする為、まだ存在しない場合はここで読み込みます | |
| if (!class_exists('WP_List_Table')) { | |
| if (!defined("ABSPATH")) { // 万が一WordPressで定義されているABSPATHが無い場合は何もせずreturnする | |
| return; | |
| } | |
| require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table.php'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Coupon Apply On Enter Mail on Product Page --> | |
| <script type="text/javascript"> | |
| // Function load on filter/click | |
| $('.user_subscribed #faceted-search-container li.navList-item a.navList-action.navList-action--checkbox').live('click',function(){ | |
| setTimeout(function(){ | |
| reload_price(); | |
| },2500); | |
| }); |