-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 11f02ee
Showing
28 changed files
with
1,207 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/* | ||
Plugin Name: Order Tracker for WooCommerce | ||
Plugin URI: https://wordpress.org/plugins/wc-order-tracker/ | ||
Description: Your customer can track his/her order on your WooCommerce website easily, woocommerce order tracking system with ajax | ||
Author: Md Abul Bashar | ||
Version: 1.2.3 | ||
Author URI: https://facebook.com/hmbashar | ||
Text Domain: cbwct | ||
Requires Plugins: woocommerce | ||
*/ | ||
|
||
// Don't call the file directly | ||
if ( !defined( 'ABSPATH' ) ) exit; | ||
|
||
//define URL | ||
define('CBWCT_TRACKER_URL', plugin_dir_url( __FILE__ )); | ||
define('CBWCT_TRACKER_PATH', plugin_dir_path(__FILE__)); | ||
|
||
|
||
//Enqueue Style for Plugin | ||
function cbwct_basic_scripts(){ | ||
|
||
wp_enqueue_style('cbwct-animate', CBWCT_TRACKER_URL .'css/ali-animate.css'); | ||
wp_enqueue_style('cbwct-tracker-style', CBWCT_TRACKER_URL .'css/style.css'); | ||
wp_enqueue_style('cbwct-tracker-responsive', CBWCT_TRACKER_URL .'css/responsive.css'); | ||
|
||
wp_enqueue_script( 'cbwct-tracker-ajax', CBWCT_TRACKER_URL .'js/ajax-active.js', array('jquery'), 1.0, true ); | ||
|
||
wp_localize_script( 'cbwct-tracker-ajax', 'cbwct_tracker', array( 'ajaxurl' => admin_url('admin-ajax.php')) ); | ||
} | ||
add_action('wp_enqueue_scripts','cbwct_basic_scripts'); | ||
//Include additional file | ||
require_once( CBWCT_TRACKER_PATH . '/inc/custom.php' ); | ||
require_once( CBWCT_TRACKER_PATH . '/inc/shortcode.php' ); | ||
require_once( CBWCT_TRACKER_PATH . '/inc/hooks.php' ); | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
|
||
@keyframes cbwct_wc_circle{ | ||
0%{ | ||
transform: rotate(0deg) | ||
translate(0) | ||
rotate(0deg); | ||
|
||
} | ||
100%{ | ||
transform:rotate(0) | ||
translate(0) | ||
rotate(360deg) | ||
} | ||
} | ||
|
||
|
||
/* Chrome, Safari, Opera */ | ||
@-webkit-keyframes bounce { | ||
0% { margin-top:0; -webkit-animation-timing-function: ease-out; } | ||
50% { margin-top:15px; -webkit-animation-timing-function: ease-in; } | ||
100% { margin-top:0; -webkit-animation-timing-function: ease-out; } | ||
} | ||
|
||
/* Standard syntax */ | ||
@keyframes bounce { | ||
0% { margin-top:0; animation-timing-function: ease-out; } | ||
50% { margin-top:15px; animation-timing-function: ease-in; } | ||
100% { margin-top:0; animation-timing-function: ease-out; } | ||
} | ||
|
||
|
||
/* Standard syntax */ | ||
|
||
@keyframes cbwct_left_to_right { | ||
|
||
|
||
100% { | ||
transform: translateX(180px); | ||
} | ||
} | ||
|
||
@keyframes CBWC_Tracking { | ||
0% { | ||
background-position: 0% 50%; | ||
} | ||
50% { | ||
background-position: 100% 50%; | ||
} | ||
100% { | ||
background-position: 0% 50%; | ||
} | ||
} | ||
|
||
|
||
|
||
@keyframes cbwct_loader { | ||
0% { | ||
top: 8px; | ||
height: 64px; | ||
} | ||
50%, 100% { | ||
top: 24px; | ||
height: 32px; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
/* Tablet Layout: 768px. */ | ||
|
||
@media only screen and (min-width: 768px) and (max-width: 991px) { | ||
|
||
.cbwct-tracking-title h2 { | ||
font-size: 20px; | ||
} | ||
.cbwct-tracking { | ||
padding: 10px; | ||
} | ||
.cbwct-tracking-from { | ||
padding: 0 10px; | ||
} | ||
.cbwct-tracking-from form input[type="text"] { | ||
flex-basis: 100%; | ||
} | ||
.cbwct-tracking-form-field { | ||
display: flex; | ||
flex-direction: column; | ||
flex-basis: 100%; | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
/* Mobile Layout: 320px. */ | ||
|
||
@media only screen and (max-width: 767px) { | ||
|
||
.cbwct-tracking-container { | ||
padding: 0px 5px; | ||
} | ||
.cbwct-tracking { | ||
width: 100%; | ||
margin: 0 auto; | ||
} | ||
table tr td:first-child { | ||
min-width: 150px !important; | ||
line-height: 30px; | ||
} | ||
.cbwct-tracking-container { | ||
margin-top: 18px; | ||
} | ||
.cbwct-tracking-title { | ||
text-align: center; | ||
} | ||
.cbwct-tracking-from form label { | ||
padding-right: 10px; | ||
font-weight: 400; | ||
} | ||
.cbwct-tracking-from { | ||
margin-top: 40px; | ||
text-align: center; | ||
margin-bottom: 30px; | ||
} | ||
.cbwct-tracking-title h2 { | ||
font-size: 16px; | ||
} | ||
|
||
@keyframes cbwct_left_to_right { | ||
100% { | ||
transform: translateX(60px); | ||
} | ||
} | ||
|
||
.cbwct_shipping.active { | ||
animation: cbwct_left_to_right 2s linear infinite; | ||
} | ||
|
||
.cbwct-tracking-form-area { | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.cbwct-tracking-form-field { | ||
flex-basis: 100%; | ||
margin-bottom: 10px; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.cbwct-tracking-from form input[type="text"] { | ||
flex-basis: 100%; | ||
margin-right: 0; | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
/* Wide Mobile Layout: 480px. */ | ||
|
||
@media only screen and (min-width: 480px) and (max-width: 767px) { | ||
|
||
.cbwct-tracking-title h2 { | ||
font-size: 18px; | ||
} | ||
|
||
@keyframes cbwct_left_to_right { | ||
|
||
100% { | ||
transform: translateX(65px); | ||
} | ||
} | ||
.cbwct_shipping.active { | ||
animation: cbwct_left_to_right 2s linear infinite; | ||
} | ||
.cbwct-tracking-form-area { | ||
text-align: center; | ||
} | ||
.cbwct-tracking-form-field { | ||
flex-basis: 100%; | ||
margin-bottom: 10px; | ||
} | ||
.cbwct-tracking-from form input[type="text"] { | ||
flex-basis: 100%; | ||
} | ||
|
||
|
||
} | ||
|
||
|
Oops, something went wrong.