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 );
|
||||
|
||||
// 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' );
|
||||
@@ -188,70 +188,73 @@ $sportspress_sports['football'] = array(
|
||||
array(
|
||||
'post_title' => 'Comp',
|
||||
'post_name' => 'comp',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Att',
|
||||
'post_name' => 'att',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
'runningback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Pct',
|
||||
'post_name' => 'pct',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'average',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
'kickoffkicker',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'average',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Att/G',
|
||||
'post_name' => 'attg',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
'runningback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Rec',
|
||||
'post_name' => 'rec',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'widereceiver',
|
||||
'tightend',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Comb',
|
||||
'post_name' => 'comb',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'defensivelineman',
|
||||
@@ -259,13 +262,13 @@ $sportspress_sports['football'] = array(
|
||||
'defensiveback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Total',
|
||||
'post_name' => 'total',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'defensivelineman',
|
||||
@@ -273,13 +276,13 @@ $sportspress_sports['football'] = array(
|
||||
'defensiveback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Ast',
|
||||
'post_name' => 'ast',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'defensivelineman',
|
||||
@@ -287,13 +290,13 @@ $sportspress_sports['football'] = array(
|
||||
'defensiveback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Sck',
|
||||
'post_name' => 'scktackles',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'defensivelineman',
|
||||
@@ -301,13 +304,13 @@ $sportspress_sports['football'] = array(
|
||||
'defensiveback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'SFTY',
|
||||
'post_name' => 'sfty',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'defensivelineman',
|
||||
@@ -315,13 +318,13 @@ $sportspress_sports['football'] = array(
|
||||
'defensiveback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'PDef',
|
||||
'post_name' => 'pdef',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'defensivelineman',
|
||||
@@ -329,13 +332,13 @@ $sportspress_sports['football'] = array(
|
||||
'defensiveback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'TDs',
|
||||
'post_name' => 'tds',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'defensivelineman',
|
||||
@@ -343,50 +346,50 @@ $sportspress_sports['football'] = array(
|
||||
'defensiveback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'KO',
|
||||
'post_name' => 'ko',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickoffkicker',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Ret',
|
||||
'post_name' => 'ret',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickreturner',
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Punts',
|
||||
'post_name' => 'punts',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'punter',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Yds',
|
||||
'post_name' => 'yds',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
@@ -402,25 +405,25 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Net Yds',
|
||||
'post_name' => 'netyds',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'punter',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Avg',
|
||||
'post_name' => 'avg',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'average',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
@@ -433,86 +436,86 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'average',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Net Avg',
|
||||
'post_name' => 'netavg',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'average',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'punter',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'average',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Blk',
|
||||
'post_name' => 'blk',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'punter',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'OOB',
|
||||
'post_name' => 'oob',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickoffkicker',
|
||||
'punter',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Dn',
|
||||
'post_name' => 'dn',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'punter',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'IN 20',
|
||||
'post_name' => 'in20',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'punter',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'TB',
|
||||
'post_name' => 'tb',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'punter',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'FC',
|
||||
'post_name' => 'fc',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickreturner',
|
||||
@@ -520,13 +523,13 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Ret',
|
||||
'post_name' => 'retpunt',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickoffkicker',
|
||||
@@ -535,13 +538,13 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'RetY',
|
||||
'post_name' => 'rety',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickreturner',
|
||||
@@ -549,13 +552,13 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Yds/G',
|
||||
'post_name' => 'ydsg',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
@@ -564,13 +567,13 @@ $sportspress_sports['football'] = array(
|
||||
'tightend',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'TD',
|
||||
'post_name' => 'TD',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
@@ -584,13 +587,13 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Int',
|
||||
'post_name' => 'int',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
@@ -599,13 +602,13 @@ $sportspress_sports['football'] = array(
|
||||
'defensiveback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => '1st',
|
||||
'post_name' => 'first',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
@@ -614,13 +617,13 @@ $sportspress_sports['football'] = array(
|
||||
'tightend',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => '1st%',
|
||||
'post_name' => 'firstpct',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'average',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
@@ -629,13 +632,13 @@ $sportspress_sports['football'] = array(
|
||||
'tightend',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'average',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Lng',
|
||||
'post_name' => 'lng',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
@@ -650,13 +653,13 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => '20+',
|
||||
'post_name' => 'twentyplus',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
@@ -667,13 +670,13 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => '40+',
|
||||
'post_name' => 'fourtyplus',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
@@ -684,37 +687,37 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Sck',
|
||||
'post_name' => 'sck',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Rate',
|
||||
'post_name' => 'rate',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'quarterback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'FUM',
|
||||
'post_name' => 'fum',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'runningback',
|
||||
@@ -724,13 +727,13 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'FF',
|
||||
'post_name' => 'ff',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'defensivelineman',
|
||||
@@ -738,13 +741,13 @@ $sportspress_sports['football'] = array(
|
||||
'defensiveback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Rec',
|
||||
'post_name' => 'recfum',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'defensivelineman',
|
||||
@@ -752,25 +755,25 @@ $sportspress_sports['football'] = array(
|
||||
'defensiveback',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'TD',
|
||||
'post_name' => 'tdfum',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickoffkicker',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Avg',
|
||||
'post_name' => 'avgpunt',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'average',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickoffkicker',
|
||||
@@ -778,26 +781,26 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'average',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'Lng',
|
||||
'post_name' => 'lngpunt',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickreturner',
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'TD',
|
||||
'post_name' => 'tdpunt',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickoffkicker',
|
||||
@@ -806,85 +809,82 @@ $sportspress_sports['football'] = array(
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => '20+',
|
||||
'post_name' => 'twentypluspunt',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickreturner',
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => '40+',
|
||||
'post_name' => 'fourtypluspunt',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickreturner',
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'FC',
|
||||
'post_name' => 'fcpunt',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickreturner',
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'FUM',
|
||||
'post_name' => 'fumpunt',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickreturner',
|
||||
'puntreturner',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'OSK',
|
||||
'post_name' => 'osk',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'kickoffkicker',
|
||||
),
|
||||
),
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'OSKR',
|
||||
'post_name' => 'oskr',
|
||||
'meta' => array(
|
||||
'sp_calculate' => 'sum',
|
||||
),
|
||||
'tax_input' => array(
|
||||
'sp_position' => array(
|
||||
'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 ) . '">' .
|
||||
'<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->s ) ) . ' <small>' . __( 'secs', 'sportspress' ) . '</small></span>' .
|
||||
'</time></h3>';
|
||||
|
||||
@@ -15,7 +15,7 @@ function viewport() {
|
||||
var $this = $(this), finalDate = $(this).data('countdown');
|
||||
$this.countdown(finalDate, function(event) {
|
||||
$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>%S <small>" + localized_strings.secs + "</small></span>" ));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user