Use abbreviation for hours in countdown timer
This commit is contained in:
@@ -11,6 +11,6 @@ function sportspress_enqueue_scripts() {
|
|||||||
wp_enqueue_script( 'sportspress', SPORTSPRESS_PLUGIN_URL .'assets/js/sportspress.js', array( 'jquery' ), time(), true );
|
wp_enqueue_script( 'sportspress', SPORTSPRESS_PLUGIN_URL .'assets/js/sportspress.js', array( 'jquery' ), time(), true );
|
||||||
|
|
||||||
// Localize scripts.
|
// Localize scripts.
|
||||||
wp_localize_script( 'sportspress', 'localized_strings', array( 'days' => __( 'days', 'sportspress' ), 'hours' => __( 'hours', 'sportspress' ), 'mins' => __( 'mins', 'sportspress' ), 'secs' => __( 'secs', 'sportspress' ) ) );
|
wp_localize_script( 'sportspress', 'localized_strings', array( 'days' => __( 'days', 'sportspress' ), 'hrs' => __( 'hrs', 'sportspress' ), 'mins' => __( 'mins', 'sportspress' ), 'secs' => __( 'secs', 'sportspress' ) ) );
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'sportspress_enqueue_scripts' );
|
add_action( 'wp_enqueue_scripts', 'sportspress_enqueue_scripts' );
|
||||||
@@ -188,70 +188,73 @@ $sportspress_sports['football'] = array(
|
|||||||
array(
|
array(
|
||||||
'post_title' => 'Comp',
|
'post_title' => 'Comp',
|
||||||
'post_name' => 'comp',
|
'post_name' => 'comp',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Att',
|
'post_title' => 'Att',
|
||||||
'post_name' => 'att',
|
'post_name' => 'att',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
'runningback',
|
'runningback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Pct',
|
'post_title' => 'Pct',
|
||||||
'post_name' => 'pct',
|
'post_name' => 'pct',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'average',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
'kickoffkicker',
|
'kickoffkicker',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'average',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Att/G',
|
'post_title' => 'Att/G',
|
||||||
'post_name' => 'attg',
|
'post_name' => 'attg',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
'runningback',
|
'runningback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Rec',
|
'post_title' => 'Rec',
|
||||||
'post_name' => 'rec',
|
'post_name' => 'rec',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'widereceiver',
|
'widereceiver',
|
||||||
'tightend',
|
'tightend',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Comb',
|
'post_title' => 'Comb',
|
||||||
'post_name' => 'comb',
|
'post_name' => 'comb',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'defensivelineman',
|
'defensivelineman',
|
||||||
@@ -259,13 +262,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'defensiveback',
|
'defensiveback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Total',
|
'post_title' => 'Total',
|
||||||
'post_name' => 'total',
|
'post_name' => 'total',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'defensivelineman',
|
'defensivelineman',
|
||||||
@@ -273,13 +276,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'defensiveback',
|
'defensiveback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Ast',
|
'post_title' => 'Ast',
|
||||||
'post_name' => 'ast',
|
'post_name' => 'ast',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'defensivelineman',
|
'defensivelineman',
|
||||||
@@ -287,13 +290,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'defensiveback',
|
'defensiveback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Sck',
|
'post_title' => 'Sck',
|
||||||
'post_name' => 'scktackles',
|
'post_name' => 'scktackles',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'defensivelineman',
|
'defensivelineman',
|
||||||
@@ -301,13 +304,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'defensiveback',
|
'defensiveback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'SFTY',
|
'post_title' => 'SFTY',
|
||||||
'post_name' => 'sfty',
|
'post_name' => 'sfty',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'defensivelineman',
|
'defensivelineman',
|
||||||
@@ -315,13 +318,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'defensiveback',
|
'defensiveback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'PDef',
|
'post_title' => 'PDef',
|
||||||
'post_name' => 'pdef',
|
'post_name' => 'pdef',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'defensivelineman',
|
'defensivelineman',
|
||||||
@@ -329,13 +332,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'defensiveback',
|
'defensiveback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'TDs',
|
'post_title' => 'TDs',
|
||||||
'post_name' => 'tds',
|
'post_name' => 'tds',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'defensivelineman',
|
'defensivelineman',
|
||||||
@@ -343,50 +346,50 @@ $sportspress_sports['football'] = array(
|
|||||||
'defensiveback',
|
'defensiveback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'KO',
|
'post_title' => 'KO',
|
||||||
'post_name' => 'ko',
|
'post_name' => 'ko',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickoffkicker',
|
'kickoffkicker',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Ret',
|
'post_title' => 'Ret',
|
||||||
'post_name' => 'ret',
|
'post_name' => 'ret',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickreturner',
|
'kickreturner',
|
||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Punts',
|
'post_title' => 'Punts',
|
||||||
'post_name' => 'punts',
|
'post_name' => 'punts',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'punter',
|
'punter',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Yds',
|
'post_title' => 'Yds',
|
||||||
'post_name' => 'yds',
|
'post_name' => 'yds',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
@@ -402,25 +405,25 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Net Yds',
|
'post_title' => 'Net Yds',
|
||||||
'post_name' => 'netyds',
|
'post_name' => 'netyds',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'punter',
|
'punter',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Avg',
|
'post_title' => 'Avg',
|
||||||
'post_name' => 'avg',
|
'post_name' => 'avg',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'average',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
@@ -433,86 +436,86 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'average',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Net Avg',
|
'post_title' => 'Net Avg',
|
||||||
'post_name' => 'netavg',
|
'post_name' => 'netavg',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'average',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'punter',
|
'punter',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'average',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Blk',
|
'post_title' => 'Blk',
|
||||||
'post_name' => 'blk',
|
'post_name' => 'blk',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'punter',
|
'punter',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'OOB',
|
'post_title' => 'OOB',
|
||||||
'post_name' => 'oob',
|
'post_name' => 'oob',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickoffkicker',
|
'kickoffkicker',
|
||||||
'punter',
|
'punter',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Dn',
|
'post_title' => 'Dn',
|
||||||
'post_name' => 'dn',
|
'post_name' => 'dn',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'punter',
|
'punter',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'IN 20',
|
'post_title' => 'IN 20',
|
||||||
'post_name' => 'in20',
|
'post_name' => 'in20',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'punter',
|
'punter',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'TB',
|
'post_title' => 'TB',
|
||||||
'post_name' => 'tb',
|
'post_name' => 'tb',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'punter',
|
'punter',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'FC',
|
'post_title' => 'FC',
|
||||||
'post_name' => 'fc',
|
'post_name' => 'fc',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickreturner',
|
'kickreturner',
|
||||||
@@ -520,13 +523,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Ret',
|
'post_title' => 'Ret',
|
||||||
'post_name' => 'retpunt',
|
'post_name' => 'retpunt',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickoffkicker',
|
'kickoffkicker',
|
||||||
@@ -535,13 +538,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'RetY',
|
'post_title' => 'RetY',
|
||||||
'post_name' => 'rety',
|
'post_name' => 'rety',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickreturner',
|
'kickreturner',
|
||||||
@@ -549,13 +552,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Yds/G',
|
'post_title' => 'Yds/G',
|
||||||
'post_name' => 'ydsg',
|
'post_name' => 'ydsg',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
@@ -564,13 +567,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'tightend',
|
'tightend',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'TD',
|
'post_title' => 'TD',
|
||||||
'post_name' => 'TD',
|
'post_name' => 'TD',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
@@ -584,13 +587,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Int',
|
'post_title' => 'Int',
|
||||||
'post_name' => 'int',
|
'post_name' => 'int',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
@@ -599,13 +602,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'defensiveback',
|
'defensiveback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => '1st',
|
'post_title' => '1st',
|
||||||
'post_name' => 'first',
|
'post_name' => 'first',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
@@ -614,13 +617,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'tightend',
|
'tightend',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => '1st%',
|
'post_title' => '1st%',
|
||||||
'post_name' => 'firstpct',
|
'post_name' => 'firstpct',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'average',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
@@ -629,13 +632,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'tightend',
|
'tightend',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'average',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Lng',
|
'post_title' => 'Lng',
|
||||||
'post_name' => 'lng',
|
'post_name' => 'lng',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
@@ -650,13 +653,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => '20+',
|
'post_title' => '20+',
|
||||||
'post_name' => 'twentyplus',
|
'post_name' => 'twentyplus',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
@@ -667,13 +670,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => '40+',
|
'post_title' => '40+',
|
||||||
'post_name' => 'fourtyplus',
|
'post_name' => 'fourtyplus',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
@@ -684,37 +687,37 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Sck',
|
'post_title' => 'Sck',
|
||||||
'post_name' => 'sck',
|
'post_name' => 'sck',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Rate',
|
'post_title' => 'Rate',
|
||||||
'post_name' => 'rate',
|
'post_name' => 'rate',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'quarterback',
|
'quarterback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'FUM',
|
'post_title' => 'FUM',
|
||||||
'post_name' => 'fum',
|
'post_name' => 'fum',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'runningback',
|
'runningback',
|
||||||
@@ -724,13 +727,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'FF',
|
'post_title' => 'FF',
|
||||||
'post_name' => 'ff',
|
'post_name' => 'ff',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'defensivelineman',
|
'defensivelineman',
|
||||||
@@ -738,13 +741,13 @@ $sportspress_sports['football'] = array(
|
|||||||
'defensiveback',
|
'defensiveback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Rec',
|
'post_title' => 'Rec',
|
||||||
'post_name' => 'recfum',
|
'post_name' => 'recfum',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'defensivelineman',
|
'defensivelineman',
|
||||||
@@ -752,25 +755,25 @@ $sportspress_sports['football'] = array(
|
|||||||
'defensiveback',
|
'defensiveback',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'TD',
|
'post_title' => 'TD',
|
||||||
'post_name' => 'tdfum',
|
'post_name' => 'tdfum',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickoffkicker',
|
'kickoffkicker',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Avg',
|
'post_title' => 'Avg',
|
||||||
'post_name' => 'avgpunt',
|
'post_name' => 'avgpunt',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'average',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickoffkicker',
|
'kickoffkicker',
|
||||||
@@ -778,26 +781,26 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'average',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'Lng',
|
'post_title' => 'Lng',
|
||||||
'post_name' => 'lngpunt',
|
'post_name' => 'lngpunt',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickreturner',
|
'kickreturner',
|
||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'TD',
|
'post_title' => 'TD',
|
||||||
'post_name' => 'tdpunt',
|
'post_name' => 'tdpunt',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickoffkicker',
|
'kickoffkicker',
|
||||||
@@ -806,85 +809,82 @@ $sportspress_sports['football'] = array(
|
|||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => '20+',
|
'post_title' => '20+',
|
||||||
'post_name' => 'twentypluspunt',
|
'post_name' => 'twentypluspunt',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickreturner',
|
'kickreturner',
|
||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => '40+',
|
'post_title' => '40+',
|
||||||
'post_name' => 'fourtypluspunt',
|
'post_name' => 'fourtypluspunt',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickreturner',
|
'kickreturner',
|
||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'FC',
|
'post_title' => 'FC',
|
||||||
'post_name' => 'fcpunt',
|
'post_name' => 'fcpunt',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickreturner',
|
'kickreturner',
|
||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'FUM',
|
'post_title' => 'FUM',
|
||||||
'post_name' => 'fumpunt',
|
'post_name' => 'fumpunt',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickreturner',
|
'kickreturner',
|
||||||
'puntreturner',
|
'puntreturner',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'OSK',
|
'post_title' => 'OSK',
|
||||||
'post_name' => 'osk',
|
'post_name' => 'osk',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickoffkicker',
|
'kickoffkicker',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'post_title' => 'OSKR',
|
'post_title' => 'OSKR',
|
||||||
'post_name' => 'oskr',
|
'post_name' => 'oskr',
|
||||||
|
'meta' => array(
|
||||||
|
'sp_calculate' => 'sum',
|
||||||
|
),
|
||||||
'tax_input' => array(
|
'tax_input' => array(
|
||||||
'sp_position' => array(
|
'sp_position' => array(
|
||||||
'kickoffkicker',
|
'kickoffkicker',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'meta' => array(
|
|
||||||
'sp_calculate' => 'sum',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ if ( !function_exists( 'sportspress_countdown' ) ) {
|
|||||||
|
|
||||||
$output .= '<h3 class="countdown sp-countdown"><time datetime="' . $post->post_date . '" data-countdown="' . str_replace( '-', '/', $post->post_date ) . '">' .
|
$output .= '<h3 class="countdown sp-countdown"><time datetime="' . $post->post_date . '" data-countdown="' . str_replace( '-', '/', $post->post_date ) . '">' .
|
||||||
'<span>' . sprintf( '%02s', ( $interval->invert ? 0 : $interval->d ) ) . ' <small>' . __( 'days', 'sportspress' ) . '</small></span> ' .
|
'<span>' . sprintf( '%02s', ( $interval->invert ? 0 : $interval->d ) ) . ' <small>' . __( 'days', 'sportspress' ) . '</small></span> ' .
|
||||||
'<span>' . sprintf( '%02s', ( $interval->invert ? 0 : $interval->h ) ) . ' <small>' . __( 'hours', 'sportspress' ) . '</small></span> ' .
|
'<span>' . sprintf( '%02s', ( $interval->invert ? 0 : $interval->h ) ) . ' <small>' . __( 'hrs', 'sportspress' ) . '</small></span> ' .
|
||||||
'<span>' . sprintf( '%02s', ( $interval->invert ? 0 : $interval->i ) ) . ' <small>' . __( 'mins', 'sportspress' ) . '</small></span> ' .
|
'<span>' . sprintf( '%02s', ( $interval->invert ? 0 : $interval->i ) ) . ' <small>' . __( 'mins', 'sportspress' ) . '</small></span> ' .
|
||||||
'<span>' . sprintf( '%02s', ( $interval->invert ? 0 : $interval->s ) ) . ' <small>' . __( 'secs', 'sportspress' ) . '</small></span>' .
|
'<span>' . sprintf( '%02s', ( $interval->invert ? 0 : $interval->s ) ) . ' <small>' . __( 'secs', 'sportspress' ) . '</small></span>' .
|
||||||
'</time></h3>';
|
'</time></h3>';
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ function viewport() {
|
|||||||
var $this = $(this), finalDate = $(this).data('countdown');
|
var $this = $(this), finalDate = $(this).data('countdown');
|
||||||
$this.countdown(finalDate, function(event) {
|
$this.countdown(finalDate, function(event) {
|
||||||
$this.html(event.strftime("<span>%D <small>" + localized_strings.days + "</small></span> "
|
$this.html(event.strftime("<span>%D <small>" + localized_strings.days + "</small></span> "
|
||||||
+ "<span>%H <small>" + localized_strings.hours + "</small></span> "
|
+ "<span>%H <small>" + localized_strings.hrs + "</small></span> "
|
||||||
+ "<span>%M <small>" + localized_strings.mins + "</small></span> "
|
+ "<span>%M <small>" + localized_strings.mins + "</small></span> "
|
||||||
+ "<span>%S <small>" + localized_strings.secs + "</small></span>" ));
|
+ "<span>%S <small>" + localized_strings.secs + "</small></span>" ));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user