Skip to content

Instantly share code, notes, and snippets.

@robinliujm
robinliujm / wcp-editor.js
Last active July 29, 2018 04:27
wcp-editor
// Webcraft Plugins Ltd.
// Author: Nikolay Dyankov
/*
Class hierarchy and descriptions:
- WCPEditor
The main class.
- WCPEditorForm
<?php
// Admin Panel Translations
$lang['ctn_1'] = "Admin Panel";
$lang['ctn_2'] = "Home";
$lang['ctn_3'] = "Email Templates";
$lang['ctn_4'] = "Edit Email Template";
$lang['ctn_5'] = "Email templates allow you to manage how your emails are sent to your users. These templates are set to specific functions on the site. Feel free to change the text to suit your needs.";
$lang['ctn_6'] = "Legend";
$lang['ctn_7'] = "User's name.";
@robinliujm
robinliujm / dashboard.css
Last active March 13, 2017 18:02
script/layouts/titan/dashboard.css
/*
* Base structure
*/
/* Move down content because we have a fixed navbar that is 50px tall */
body {
padding-top: 80px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php if(isset($page_title)) : ?><?php echo $page_title ?> - <?php endif; ?><?php echo $this->settings->info->site_name ?></title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php if(isset($page_desc)) : ?>
<meta name="description" content="<?php echo $page_desc ?>">
<?php endif; ?>
<!-- Bootstrap -->
/*
*
* More info at [www.dropzonejs.com](http://www.dropzonejs.com)
*
* Copyright (c) 2012, Matias Meno
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
$(document).ready(function(){
var addedRoomPrice = 0;
var paypal_percentage = 4;
$(window).on('scroll', function () {
var top = $(document).scrollTop();
if (top > 10) {
$('.drop-right').addClass('sticky');
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once("PasswordHash.php");
class Common
{
public function nohtml($message)
{
@robinliujm
robinliujm / create_order.php
Created March 11, 2017 23:16
pages/create_order.php
<!DOCTYPE html>
<html lang="en">
<head>
<title>Online Order your Floor Plan and get it in 24 hours</title>
<meta name="author" content="Robin Liu">
<meta name="description" content="1:upload your sketch. 2: set preferences. 3: select draw options. 4: fillup your information. 5: download your plan in 24 hours">
<meta name="keywords" content="upload your sketch, select draw options, download your floor plan">
<meta property="og:type" content="article" />
<meta property="og:title" content="Online Order your Floor Plan and get it in 24 hours" />
<div class="col-md-3">
<div class="drop-right <?php echo $is_sticky?>" style="top: 85px;">
<p class="fee-summery">FEE SUMMERY</p>
<div class="cart fee-list">
<span class="fee-text">Base Price</span> <i class="fa arrow fee-text">$<span
id="base_price"><?php echo BASE_PRICE?></span></i> <br> <span class="fee-text">Preferences</span>
<i class="fa arrow fee-text">$<span id="preferences_price">
<?php
$preferences = $preference_price;
echo $preferences;
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingThree">
<h4 class="panel-title">
<a> Step 2</a>
</h4>
</div>
<div id="stepthree" class="panel-collapse" role="tabpanel"
aria-labelledby="headingThree">
<div class="panel-body">
<p class="upload-sketch">DRAW OPTIONS</p>