Convert varible cases, remove double-vspacing
This commit is contained in:
parent
2a085a7f4c
commit
1b084bb52c
5 changed files with 22 additions and 24 deletions
|
@ -12,7 +12,6 @@
|
|||
* Last modified: 2021-02-18T2027+0100
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Contains all Plugin Constants. Contains no Method or Property.
|
||||
*
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
* Last modified: 2020-12-12T1541+0100
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Converts data types and Footnotes specific values.
|
||||
*
|
||||
|
@ -191,30 +190,30 @@ class MCI_Footnotes_Convert {
|
|||
* Displays a Variable.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @param mixed $p_mixed_Value
|
||||
* @param mixed $p_mixed_value
|
||||
*/
|
||||
public static function debug( $p_mixed_Value ) {
|
||||
if ( empty( $p_mixed_Value ) ) {
|
||||
var_dump( $p_mixed_Value );
|
||||
public static function debug( $p_mixed_value ) {
|
||||
if ( empty( $p_mixed_value ) ) {
|
||||
var_dump( $p_mixed_value );
|
||||
|
||||
} elseif ( is_array( $p_mixed_Value ) ) {
|
||||
} elseif ( is_array( $p_mixed_value ) ) {
|
||||
printf( '<pre>' );
|
||||
print_r( $p_mixed_Value );
|
||||
print_r( $p_mixed_value );
|
||||
printf( '</pre>' );
|
||||
|
||||
} elseif ( is_object( $p_mixed_Value ) ) {
|
||||
} elseif ( is_object( $p_mixed_value ) ) {
|
||||
printf( '<pre>' );
|
||||
print_r( $p_mixed_Value );
|
||||
print_r( $p_mixed_value );
|
||||
printf( '</pre>' );
|
||||
|
||||
} elseif ( is_numeric( $p_mixed_Value ) || is_int( $p_mixed_Value ) ) {
|
||||
var_dump( $p_mixed_Value );
|
||||
} elseif ( is_numeric( $p_mixed_value ) || is_int( $p_mixed_value ) ) {
|
||||
var_dump( $p_mixed_value );
|
||||
|
||||
} elseif ( is_date( $p_mixed_Value ) ) {
|
||||
var_dump( $p_mixed_Value );
|
||||
} elseif ( is_date( $p_mixed_value ) ) {
|
||||
var_dump( $p_mixed_value );
|
||||
|
||||
} else {
|
||||
var_dump( $p_mixed_Value );
|
||||
var_dump( $p_mixed_value );
|
||||
}
|
||||
echo '<br/>';
|
||||
}
|
||||
|
|
|
@ -693,10 +693,10 @@ class MCI_Footnotes_Task {
|
|||
if ( $l_bool_column_max_width_enabled ) {
|
||||
|
||||
$l_int_column_max_width_scalar = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_BACKLINKS_COLUMN_MAX_WIDTH_SCALAR );
|
||||
$l_str_column_maxWidth_unit = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_BACKLINKS_COLUMN_MAX_WIDTH_UNIT );
|
||||
$l_str_column_max_width_unit = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_BACKLINKS_COLUMN_MAX_WIDTH_UNIT );
|
||||
|
||||
if ( ! empty( $l_int_column_max_width_scalar ) ) {
|
||||
if ( $l_str_column_maxWidth_unit == '%' ) {
|
||||
if ( $l_str_column_max_width_unit == '%' ) {
|
||||
if ( $l_int_column_max_width_scalar > 100 ) {
|
||||
$l_int_column_max_width_scalar = 100;
|
||||
}
|
||||
|
@ -705,7 +705,7 @@ class MCI_Footnotes_Task {
|
|||
$l_int_column_max_width_scalar = 0;
|
||||
}
|
||||
|
||||
echo " max-width: $l_int_column_max_width_scalar$l_str_column_maxWidth_unit !important;";
|
||||
echo " max-width: $l_int_column_max_width_scalar$l_str_column_max_width_unit !important;";
|
||||
|
||||
}
|
||||
echo "}\r\n";
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
* @since 2.5.4 collapse HTML comments and PHP/JS docblocks (only)
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Handles each Template file for the Plugin Frontend (e.g. Settings Dashboard, Public pages, ...).
|
||||
* Loads a template file, replaces all Placeholders and returns the replaced file content.
|
||||
|
|
Reference in a new issue