Skip to content

Instantly share code, notes, and snippets.

View raazgemstone's full-sized avatar

Raaz raazgemstone

  • Gemstone Lights
View GitHub Profile
# 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.
<?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');
<!-- 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);
});