Convert varible cases, remove double-vspacing
This commit is contained in:
parent
09337696e2
commit
7970eddaeb
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.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
/*
|
||||
/**
|
||||
Plugin Name: footnotes
|
||||
Plugin URI: https://wordpress.org/plugins/footnotes/
|
||||
Description: time to bring footnotes to your website! footnotes are known from offline publishing and everybody takes them for granted when reading a magazine.
|
||||
|
@ -9,6 +9,7 @@
|
|||
Text Domain: footnotes
|
||||
Domain Path: /languages
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright 2021 Mark Cheret (email: mark@cheret.de)
|
||||
*/
|
||||
|
@ -48,16 +49,16 @@ define( 'C_STR_FOOTNOTES_VERSION', '2.5.6d4' );
|
|||
* @since 0.0.1
|
||||
*/
|
||||
|
||||
// Get all common classes and functions
|
||||
// Get all common classes and functions.
|
||||
require_once dirname( __FILE__ ) . '/includes.php';
|
||||
|
||||
// add Plugin Links to the "installed plugins" page
|
||||
// Add Plugin Links to the "installed plugins" page.
|
||||
$l_str_plugin_file = 'footnotes/footnotes.php';
|
||||
add_filter( "plugin_action_links_{$l_str_plugin_file}", array( 'MCI_Footnotes_Hooks', 'plugin_links' ), 10, 2 );
|
||||
|
||||
// initialize the Plugin
|
||||
// Initialize the Plugin.
|
||||
$g_obj_mci_footnotes = new MCI_Footnotes();
|
||||
// run the Plugin
|
||||
// Run the Plugin.
|
||||
$g_obj_mci_footnotes->run();
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue