diff --git a/class/convert.php b/class/convert.php
index 0332df9..9caad99 100644
--- a/class/convert.php
+++ b/class/convert.php
@@ -33,7 +33,7 @@ class MCI_Footnotes_Convert {
* Edited:
* @since 2.2.0 lowercase Roman numerals supported
*/
- public static function Index( $p_int_index, $p_str_convert_style = 'arabic_plain' ) {
+ public static function index( $p_int_index, $p_str_convert_style = 'arabic_plain' ) {
switch ( $p_str_convert_style ) {
case 'romanic':
return self::to_romanic( $p_int_index, true );
diff --git a/class/hooks.php b/class/hooks.php
index e0b44ad..4ef87cd 100644
--- a/class/hooks.php
+++ b/class/hooks.php
@@ -81,7 +81,7 @@ class MCI_Footnotes_Hooks {
* @param string $p_str_plugin_file_name Plugins init file name.
* @return array
*/
- public static function Plugin_links( $p_arr_links, $p_str_plugin_file_name ) {
+ public static function plugin_links( $p_arr_links, $p_str_plugin_file_name ) {
// Append link to the WordPress Plugin page.
$p_arr_links[] = sprintf( '%s', __( 'Support', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) );
// Append link to the Settings page.
diff --git a/class/layout/diagnostics.php b/class/layout/diagnostics.php
index 041c473..ab71d89 100644
--- a/class/layout/diagnostics.php
+++ b/class/layout/diagnostics.php
@@ -82,30 +82,30 @@ class MCI_Footnotes_Layout_Diagnostics extends MCI_Footnotes_Layout_Engine {
*/
public function Diagnostics() {
global $wp_version;
- $l_str_PhpExtensions = '';
+ $l_str_php_extensions = '';
// iterate through each PHP extension
- foreach ( get_loaded_extensions() as $l_int_Index => $l_str_Extension ) {
- if ( $l_int_Index > 0 ) {
- $l_str_PhpExtensions .= ' | ';
+ foreach ( get_loaded_extensions() as $l_int_index => $l_str_extension ) {
+ if ( $l_int_index > 0 ) {
+ $l_str_php_extensions .= ' | ';
}
- $l_str_PhpExtensions .= $l_str_Extension . ' ' . phpversion( $l_str_Extension );
+ $l_str_php_extensions .= $l_str_extension . ' ' . phpversion( $l_str_extension );
}
- /** @var WP_Theme $l_obj_CurrentTheme */
- $l_obj_CurrentTheme = wp_get_theme();
+ /** @var WP_Theme $l_obj_current_theme */
+ $l_obj_current_theme = wp_get_theme();
- $l_str_WordPressPlugins = '';
+ $l_str_wordpress_plugins = '';
// iterate through each installed WordPress Plugin
- foreach ( get_plugins() as $l_arr_Plugin ) {
- $l_str_WordPressPlugins .= '
';
- $l_str_WordPressPlugins .= '' . $l_arr_Plugin['Name'] . ' | ';
- $l_str_WordPressPlugins .= '' . $l_arr_Plugin['Version'] . ' [' . $l_arr_Plugin['PluginURI'] . ']' . ' | ';
- $l_str_WordPressPlugins .= '
';
+ foreach ( get_plugins() as $l_arr_plugin ) {
+ $l_str_wordpress_plugins .= '';
+ $l_str_wordpress_plugins .= '' . $l_arr_plugin['Name'] . ' | ';
+ $l_str_wordpress_plugins .= '' . $l_arr_plugin['Version'] . ' [' . $l_arr_plugin['PluginURI'] . ']' . ' | ';
+ $l_str_wordpress_plugins .= '
';
}
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'diagnostics' );
+ $l_obj_template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'diagnostics' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
'label-server' => __( 'Server name', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'server' => $_SERVER['SERVER_NAME'],
@@ -123,18 +123,18 @@ class MCI_Footnotes_Layout_Diagnostics extends MCI_Footnotes_Layout_Engine {
'memory-limit' => ini_get( 'memory_limit' ),
'label-php-extensions' => __( 'PHP extensions', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'php-extensions' => $l_str_PhpExtensions,
+ 'php-extensions' => $l_str_php_extensions,
'label-wordpress' => __( 'WordPress version', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'wordpress' => $wp_version,
'label-theme' => __( 'Active Theme', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'theme' => $l_obj_CurrentTheme->get( 'Name' ) . ' ' . $l_obj_CurrentTheme->get( 'Version' ) . ', ' . $l_obj_CurrentTheme->get( 'Author' ) . ' [' . $l_obj_CurrentTheme->get( 'AuthorURI' ) . ']',
+ 'theme' => $l_obj_current_theme->get( 'Name' ) . ' ' . $l_obj_current_theme->get( 'Version' ) . ', ' . $l_obj_current_theme->get( 'Author' ) . ' [' . $l_obj_current_theme->get( 'AuthorURI' ) . ']',
- 'plugins' => $l_str_WordPressPlugins,
+ 'plugins' => $l_str_wordpress_plugins,
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
}
diff --git a/class/layout/engine.php b/class/layout/engine.php
index 147b4e0..d65ef01 100644
--- a/class/layout/engine.php
+++ b/class/layout/engine.php
@@ -184,19 +184,19 @@ abstract class MCI_Footnotes_Layout_Engine {
*
* @author Stefan Herndler
* @since 1.5.0
- * @param string $p_str_parent_iD Parent section unique id.
+ * @param string $p_str_parent_id Parent section unique id.
*/
- private function register_meta_boxes( $p_str_parent_iD ) {
+ private function register_meta_boxes( $p_str_parent_id ) {
// iterate through each meta box
foreach ( $this->get_meta_boxes() as $l_arr_meta_box ) {
- if ( $l_arr_meta_box['parent'] != $p_str_parent_iD ) {
+ if ( $l_arr_meta_box['parent'] != $p_str_parent_id ) {
continue;
}
add_meta_box(
- $p_str_parent_iD . '-' . $l_arr_meta_box['id'], // unique id
+ $p_str_parent_id . '-' . $l_arr_meta_box['id'], // unique id
$l_arr_meta_box['title'], // meta box title
array( $this, $l_arr_meta_box['callback'] ), // callback function to display (echo) the content
- $p_str_parent_iD, // post type = parent section id
+ $p_str_parent_id, // post type = parent section id
'main' // context
);
}
@@ -258,8 +258,8 @@ abstract class MCI_Footnotes_Layout_Engine {
$this->append_scripts();
// get current section
reset( $this->a_arr_sections );
- $l_str_active_section_iD = isset( $_GET['t'] ) ? $_GET['t'] : key( $this->a_arr_sections );
- $l_arr_active_section = $this->a_arr_sections[ $l_str_active_section_iD ];
+ $l_str_active_section_id = isset( $_GET['t'] ) ? $_GET['t'] : key( $this->a_arr_sections );
+ $l_arr_active_section = $this->a_arr_sections[ $l_str_active_section_id ];
// store settings
$l_bool_settings_updated = false;
if ( array_key_exists( 'save-settings', $_POST ) ) {
@@ -326,11 +326,11 @@ abstract class MCI_Footnotes_Layout_Engine {
$l_arr_new_settings = array();
// get current section
reset( $this->a_arr_sections );
- $l_str_active_section_iD = isset( $_GET['t'] ) ? $_GET['t'] : key( $this->a_arr_sections );
- $l_arr_active_section = $this->a_arr_sections[ $l_str_active_section_iD ];
+ $l_str_active_section_id = isset( $_GET['t'] ) ? $_GET['t'] : key( $this->a_arr_sections );
+ $l_arr_active_section = $this->a_arr_sections[ $l_str_active_section_id ];
// iterate through each value that has to be in the specific container
- foreach ( MCI_Footnotes_Settings::instance()->get_defaults( $l_arr_active_section['container'] ) as $l_str_key => $l_mixed_Value ) {
+ foreach ( MCI_Footnotes_Settings::instance()->get_defaults( $l_arr_active_section['container'] ) as $l_str_key => $l_mixed_value ) {
// setting is available in the POST array, use it
if ( array_key_exists( $l_str_key, $_POST ) ) {
$l_arr_new_settings[ $l_str_key ] = $_POST[ $l_str_key ];
@@ -349,7 +349,7 @@ abstract class MCI_Footnotes_Layout_Engine {
* @author Stefan Herndler
* @since 1.5.0
*/
- public function Description() {
+ public function description() {
// default no description will be displayed
}
@@ -361,7 +361,7 @@ abstract class MCI_Footnotes_Layout_Engine {
* @param string $p_str_setting_key_name Settings Array key name.
* @return array Contains Settings ID, Settings Name and Settings Value.
*/
- protected function Load_setting( $p_str_setting_key_name ) {
+ protected function load_setting( $p_str_setting_key_name ) {
// get current section
reset( $this->a_arr_sections );
$p_arr_return = array();
@@ -440,15 +440,15 @@ abstract class MCI_Footnotes_Layout_Engine {
* @author Stefan Herndler
* @since 1.5.0
* @param string $p_str_setting_name Name of the Settings key to pre load the input field.
- * @param int $p_str_maxLength Maximum length of the input, default 999 characters.
+ * @param int $p_str_max_length Maximum length of the input, default 999 characters.
* @param bool $p_bool_readonly Set the input to be read only, default false.
* @param bool $p_bool_hidden Set the input to be hidden, default false.
* @return string
*/
- protected function add_text_box( $p_str_setting_name, $p_str_maxLength = 999, $p_bool_readonly = false, $p_bool_hidden = false ) {
+ protected function add_text_box( $p_str_setting_name, $p_str_max_length = 999, $p_bool_readonly = false, $p_bool_hidden = false ) {
$l_str_style = '';
// collect data for given settings field
- $l_arr_data = $this->Load_setting( $p_str_setting_name );
+ $l_arr_data = $this->load_setting( $p_str_setting_name );
if ( $p_bool_hidden ) {
$l_str_style .= 'display:none;';
}
@@ -456,7 +456,7 @@ abstract class MCI_Footnotes_Layout_Engine {
'',
$l_arr_data['name'],
$l_arr_data['id'],
- $p_str_maxLength,
+ $p_str_max_length,
$l_str_style,
$l_arr_data['value'],
$p_bool_readonly ? 'readonly="readonly"' : ''
@@ -473,7 +473,7 @@ abstract class MCI_Footnotes_Layout_Engine {
*/
protected function add_checkbox( $p_str_setting_name ) {
// collect data for given settings field
- $l_arr_data = $this->Load_setting( $p_str_setting_name );
+ $l_arr_data = $this->load_setting( $p_str_setting_name );
return sprintf(
'',
$l_arr_data['name'],
@@ -493,7 +493,7 @@ abstract class MCI_Footnotes_Layout_Engine {
*/
protected function add_select_box( $p_str_setting_name, $p_arr_options ) {
// collect data for given settings field
- $l_arr_data = $this->Load_setting( $p_str_setting_name );
+ $l_arr_data = $this->load_setting( $p_str_setting_name );
$l_str_options = '';
/* loop through all array keys */
@@ -523,7 +523,7 @@ abstract class MCI_Footnotes_Layout_Engine {
*/
protected function add_text_area( $p_str_setting_name ) {
// collect data for given settings field
- $l_arr_data = $this->Load_setting( $p_str_setting_name );
+ $l_arr_data = $this->load_setting( $p_str_setting_name );
return sprintf(
'',
$l_arr_data['name'],
@@ -542,7 +542,7 @@ abstract class MCI_Footnotes_Layout_Engine {
*/
protected function add_color_selection( $p_str_setting_name ) {
// collect data for given settings field
- $l_arr_data = $this->Load_setting( $p_str_setting_name );
+ $l_arr_data = $this->load_setting( $p_str_setting_name );
return sprintf(
'',
$l_arr_data['name'],
@@ -557,7 +557,7 @@ abstract class MCI_Footnotes_Layout_Engine {
* @author Stefan Herndler
* @since 1.5.0
* @param string $p_str_setting_name Name of the Settings key to pre load the input field.
- * @param int $p_in_Min Minimum value.
+ * @param int $p_in_min Minimum value.
* @param int $p_int_max Maximum value.
* @param bool $p_bool_deci true if 0.1 steps and floating to string, false if integer (default)
* @return string
@@ -565,9 +565,9 @@ abstract class MCI_Footnotes_Layout_Engine {
* Edited:
* @since 2.1.4 step argument and number_format() to allow decimals 2020-12-03T0631+0100..2020-12-12T1110+0100
*/
- protected function add_num_box( $p_str_setting_name, $p_in_Min, $p_int_max, $p_bool_deci = false ) {
+ protected function add_num_box( $p_str_setting_name, $p_in_min, $p_int_max, $p_bool_deci = false ) {
// collect data for given settings field
- $l_arr_data = $this->Load_setting( $p_str_setting_name );
+ $l_arr_data = $this->load_setting( $p_str_setting_name );
if ( $p_bool_deci ) {
$l_str_value = number_format( floatval( $l_arr_data['value'] ), 1 );
@@ -576,7 +576,7 @@ abstract class MCI_Footnotes_Layout_Engine {
$l_arr_data['name'],
$l_arr_data['id'],
$l_str_value,
- $p_in_Min,
+ $p_in_min,
$p_int_max
);
} else {
@@ -585,7 +585,7 @@ abstract class MCI_Footnotes_Layout_Engine {
$l_arr_data['name'],
$l_arr_data['id'],
$l_arr_data['value'],
- $p_in_Min,
+ $p_in_min,
$p_int_max
);
}
diff --git a/class/layout/settings.php b/class/layout/settings.php
index e992b37..0c7b457 100644
--- a/class/layout/settings.php
+++ b/class/layout/settings.php
@@ -49,7 +49,7 @@
* @author Stefan Herndler
* @since 1.5.0
*/
-class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
+class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
/**
* Returns a Priority index. Lower numbers have a higher Priority.
@@ -98,19 +98,19 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
* @since 2.1.6 removed if statement around expert tab
*/
protected function getSections() {
- $l_arr_Tabs = array();
+ $l_arr_tabs = array();
// sync tab name with mirror in task.php:
- $l_arr_Tabs[] = $this->addSection( 'settings', __( 'General settings', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 0, true );
+ $l_arr_tabs[] = $this->addSection( 'settings', __( 'General settings', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 0, true );
// sync tab name with mirror in public function CustomCSSMigration():
- $l_arr_Tabs[] = $this->addSection( 'customize', __( 'Referrers and tooltips', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 1, true );
+ $l_arr_tabs[] = $this->addSection( 'customize', __( 'Referrers and tooltips', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 1, true );
- $l_arr_Tabs[] = $this->addSection( 'expert', __( 'Scope and priority', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 2, true );
- $l_arr_Tabs[] = $this->addSection( 'customcss', __( 'Custom CSS', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 3, true );
- $l_arr_Tabs[] = $this->addSection( 'how-to', __( 'Quick start guide', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), null, false );
+ $l_arr_tabs[] = $this->addSection( 'expert', __( 'Scope and priority', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 2, true );
+ $l_arr_tabs[] = $this->addSection( 'customcss', __( 'Custom CSS', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 3, true );
+ $l_arr_tabs[] = $this->addSection( 'how-to', __( 'Quick start guide', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), null, false );
- return $l_arr_Tabs;
+ return $l_arr_tabs;
}
/**
@@ -135,41 +135,41 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
*
* @since 2.1.6 / 2.2.0 tabs reordered and renamed
*/
- protected function getMetaBoxes() {
- $l_arr_MetaBoxes = array();
+ protected function get_meta_boxes() {
+ $l_arr_meta_boxes = array();
// sync box name with mirror in task.php:
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'settings', 'start-end', __( 'Footnote start and end short codes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'StartEnd' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'settings', 'numbering', __( 'Footnotes numbering', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Numbering' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'settings', 'scrolling', __( 'Scrolling behavior', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Scrolling' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'settings', 'reference-container', __( 'Reference container', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'ReferenceContainer' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'settings', 'excerpts', __( 'Footnotes in excerpts', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Excerpts' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'settings', 'love', MCI_Footnotes_Config::C_STR_PLUGIN_HEADING_NAME . ' ' . MCI_Footnotes_Config::C_STR_LOVE_SYMBOL_HEADING, 'Love' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'start-end', __( 'Footnote start and end short codes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'StartEnd' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'numbering', __( 'Footnotes numbering', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Numbering' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'scrolling', __( 'Scrolling behavior', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Scrolling' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'reference-container', __( 'Reference container', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'ReferenceContainer' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'excerpts', __( 'Footnotes in excerpts', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Excerpts' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'love', MCI_Footnotes_Config::C_STR_PLUGIN_HEADING_NAME . ' ' . MCI_Footnotes_Config::C_STR_LOVE_SYMBOL_HEADING, 'Love' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customize', 'hyperlink-arrow', __( 'Backlink symbol', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'HyperlinkArrow' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customize', 'superscript', __( 'Referrer typesetting and formatting', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Superscript' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customize', 'mouse-over-box', __( 'Tooltips', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBox' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customize', 'mouse-over-box-position', __( 'Tooltip position', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxPosition' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customize', 'mouse-over-box-dimensions', __( 'Tooltip dimensions', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxDimensions' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customize', 'mouse-over-box-timing', __( 'Tooltip timing', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxTiming' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customize', 'mouse-over-box-truncation', __( 'Tooltip truncation', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxTruncation' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customize', 'mouse-over-box-text', __( 'Tooltip text', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxText' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customize', 'mouse-over-box-appearance', __( 'Tooltip appearance', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxAppearance' );
- if ( MCI_Footnotes_Convert::toBool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE ) ) ) {
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customize', 'custom-css', __( 'Your existing Custom CSS code', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'CustomCSS' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'hyperlink-arrow', __( 'Backlink symbol', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'HyperlinkArrow' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'superscript', __( 'Referrer typesetting and formatting', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Superscript' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box', __( 'Tooltips', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBox' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-position', __( 'Tooltip position', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxPosition' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-dimensions', __( 'Tooltip dimensions', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxDimensions' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-timing', __( 'Tooltip timing', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxTiming' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-truncation', __( 'Tooltip truncation', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxTruncation' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-text', __( 'Tooltip text', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxText' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-appearance', __( 'Tooltip appearance', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'MouseOverBoxAppearance' );
+ if ( MCI_Footnotes_convert::toBool( MCI_Footnotes_settings::instance()->get( MCI_Footnotes_settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE ) ) ) {
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'custom-css', __( 'Your existing Custom CSS code', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'CustomCSS' );
}
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'expert', 'lookup', __( 'WordPress hooks with priority level', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'LookupHooks' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'expert', 'lookup', __( 'WordPress hooks with priority level', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'LookupHooks' );
- if ( MCI_Footnotes_Convert::toBool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE ) ) ) {
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customcss', 'custom-css-migration', __( 'Your existing Custom CSS code', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'CustomCSSMigration' );
+ if ( MCI_Footnotes_convert::toBool( MCI_Footnotes_settings::instance()->get( MCI_Footnotes_settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE ) ) ) {
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customcss', 'custom-css-migration', __( 'Your existing Custom CSS code', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'CustomCSSMigration' );
}
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'customcss', 'custom-css-new', __( 'Custom CSS', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'CustomCSSNew' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'customcss', 'custom-css-new', __( 'Custom CSS', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'CustomCSSNew' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'how-to', 'help', __( 'Brief introduction in how to use the plugin', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Help' );
- $l_arr_MetaBoxes[] = $this->addMetaBox( 'how-to', 'donate', __( 'Help us to improve our Plugin', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Donate' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'how-to', 'help', __( 'Brief introduction in how to use the plugin', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Help' );
+ $l_arr_meta_boxes[] = $this->add_meta_box( 'how-to', 'donate', __( 'Help us to improve our Plugin', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Donate' );
- return $l_arr_MetaBoxes;
+ return $l_arr_meta_boxes;
}
/**
@@ -186,7 +186,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
public function ReferenceContainer() {
// options for the label element:
- $l_arr_LabelElement = array(
+ $l_arr_label_element = array(
'p' => __( 'paragraph', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'h2' => __( 'heading 2', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'h3' => __( 'heading 3', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
@@ -195,20 +195,20 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
'h6' => __( 'heading 6', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// options for the positioning of the reference container
- $l_arr_Positions = array(
+ $l_arr_positions = array(
'post_end' => __( 'at the end of the post', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'widget' => __( 'in the widget area', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'footer' => __( 'in the footer', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// basic responsive page layout options:
- $l_arr_PageLayoutOptions = array(
+ $l_arr_page_layout_options = array(
'none' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'reference-container' => __( 'to the reference container exclusively', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'entry-content' => __( 'to the div element starting below the post title', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'main-content' => __( 'to the main element including the post title', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// options for the separating punctuation between backlinks:
- $l_arr_Separators = array(
+ $l_arr_separators = array(
// Unicode character names are conventionally uppercase.
'comma' => __( 'COMMA', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'semicolon' => __( 'SEMICOLON', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
@@ -218,14 +218,14 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
// The Unicode name of RIGHT PARENTHESIS was originally more accurate because
// this character is bidi-mirrored. Let’s use the Unicode 1.0 name.
// The wrong names were enforced in spite of Unicode, that subsequently scrambled to correct.
- $l_arr_Terminators = array(
+ $l_arr_terminators = array(
'period' => __( 'FULL STOP', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
// Unicode 1.0 name of RIGHT PARENTHESIS (represented as a left parenthesis in right-to-left scripts):
'parenthesis' => __( 'CLOSING PARENTHESIS', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'colon' => __( 'COLON', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// options for the first column width (per cent is a ratio, not a unit):
- $l_arr_WidthUnits = array(
+ $l_arr_width_units = array(
'%' => __( 'per cent', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'px' => __( 'pixels', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'rem' => __( 'root em', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
@@ -233,114 +233,114 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
'vw' => __( 'viewport width', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// options for reference container script mode:
- $l_arr_ScriptMode = array(
+ $l_arr_script_mode = array(
'jquery' => __( 'jQuery', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'js' => __( 'plain JavaScript', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// options for Yes/No select box:
- $l_arr_Enabled = array(
+ $l_arr_enabled = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'settings-reference-container' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'settings-reference-container' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-name' => $this->addLabel( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_NAME, __( 'Heading:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'name' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_NAME ),
+ 'label-name' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_NAME, __( 'Heading:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'name' => $this->addTextBox( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_NAME ),
- 'label-element' => $this->addLabel( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_LABEL_ELEMENT, __( 'Heading’s HTML element:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'element' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_LABEL_ELEMENT, $l_arr_LabelElement ),
+ 'label-element' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_LABEL_ELEMENT, __( 'Heading’s HTML element:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'element' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_LABEL_ELEMENT, $l_arr_label_element ),
- 'label-border' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER, __( 'Border under the heading:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'border' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER, $l_arr_Enabled ),
+ 'label-border' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER, __( 'Border under the heading:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'border' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER, $l_arr_enabled ),
- 'label-collapse' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, __( 'Collapse by default:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'collapse' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, $l_arr_Enabled ),
+ 'label-collapse' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, __( 'Collapse by default:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'collapse' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, $l_arr_enabled ),
- 'label-script' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE, __( 'Script mode:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'script' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE, $l_arr_ScriptMode ),
+ 'label-script' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE, __( 'Script mode:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'script' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE, $l_arr_script_mode ),
'notice-script' => __( 'The plain JavaScript mode does not support scroll animation and will enable hard links with scroll offset.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-position' => $this->addLabel( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION, __( 'Default position:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'position' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION, $l_arr_Positions ),
+ 'label-position' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_POSITION, __( 'Default position:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'position' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_POSITION, $l_arr_positions ),
'notice-position' => sprintf( __( 'To use the position shortcode, please set the position to: %s', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), '' . __( 'at the end of the post', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . '' ),
- 'label-shortcode' => $this->addLabel( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE, __( 'Position shortcode:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'shortcode' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE ),
+ 'label-shortcode' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE, __( 'Position shortcode:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'shortcode' => $this->addTextBox( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE ),
'notice-shortcode' => __( 'If present in the content, any shortcode in this text box will be replaced with the reference container.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-startpage' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_START_PAGE_ENABLE, __( 'Display on start page too:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'startpage' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_START_PAGE_ENABLE, $l_arr_Enabled ),
+ 'label-startpage' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_START_PAGE_ENABLE, __( 'Display on start page too:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'startpage' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_START_PAGE_ENABLE, $l_arr_enabled ),
- 'label-margin-top' => $this->addLabel( MCI_Footnotes_Settings::C_INT_REFERENCE_CONTAINER_TOP_MARGIN, __( 'Top margin:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'margin-top' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_REFERENCE_CONTAINER_TOP_MARGIN, -500, 500 ),
+ 'label-margin-top' => $this->addLabel( MCI_Footnotes_settings::C_INT_REFERENCE_CONTAINER_TOP_MARGIN, __( 'Top margin:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'margin-top' => $this->addNumBox( MCI_Footnotes_settings::C_INT_REFERENCE_CONTAINER_TOP_MARGIN, -500, 500 ),
'notice-margin-top' => __( 'pixels; may be negative', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-margin-bottom' => $this->addLabel( MCI_Footnotes_Settings::C_INT_REFERENCE_CONTAINER_BOTTOM_MARGIN, __( 'Bottom margin:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'margin-bottom' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_REFERENCE_CONTAINER_BOTTOM_MARGIN, -500, 500 ),
+ 'label-margin-bottom' => $this->addLabel( MCI_Footnotes_settings::C_INT_REFERENCE_CONTAINER_BOTTOM_MARGIN, __( 'Bottom margin:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'margin-bottom' => $this->addNumBox( MCI_Footnotes_settings::C_INT_REFERENCE_CONTAINER_BOTTOM_MARGIN, -500, 500 ),
'notice-margin-bottom' => __( 'pixels; may be negative', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-page-layout' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT, __( 'Apply basic responsive page layout:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'page-layout' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT, $l_arr_PageLayoutOptions ),
+ 'label-page-layout' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT, __( 'Apply basic responsive page layout:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'page-layout' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT, $l_arr_page_layout_options ),
'notice-page-layout' => __( 'Most themes don’t need this fix.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-url-wrap' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_FOOTNOTE_URL_WRAP_ENABLED, __( 'Allow URLs to line-wrap anywhere:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'url-wrap' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_FOOTNOTE_URL_WRAP_ENABLED, $l_arr_Enabled ),
+ 'label-url-wrap' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTE_URL_WRAP_ENABLED, __( 'Allow URLs to line-wrap anywhere:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'url-wrap' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_FOOTNOTE_URL_WRAP_ENABLED, $l_arr_enabled ),
'notice-url-wrap' => __( 'Unicode-conformant browsers don’t need this fix.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-symbol' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE, __( 'Display a backlink symbol:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'symbol-enable' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE, $l_arr_Enabled ),
+ 'label-symbol' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE, __( 'Display a backlink symbol:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'symbol-enable' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE, $l_arr_enabled ),
'notice-symbol' => __( 'Please choose or input the symbol at the top of the next dashboard tab.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-switch' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH, __( 'Symbol appended, not prepended:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'switch' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH, $l_arr_Enabled ),
+ 'label-switch' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH, __( 'Symbol appended, not prepended:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'switch' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH, $l_arr_enabled ),
- 'label-3column' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE, __( 'Backlink symbol in an extra column:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- '3column' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE, $l_arr_Enabled ),
+ 'label-3column' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE, __( 'Backlink symbol in an extra column:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ '3column' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE, $l_arr_enabled ),
'notice-3column' => __( 'This legacy layout is available if identical footnotes are not combined.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-row-borders' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_ROW_BORDERS_ENABLE, __( 'Borders around the table rows:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'row-borders' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_ROW_BORDERS_ENABLE, $l_arr_Enabled ),
+ 'label-row-borders' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_ROW_BORDERS_ENABLE, __( 'Borders around the table rows:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'row-borders' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_ROW_BORDERS_ENABLE, $l_arr_enabled ),
- 'label-separator' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_SEPARATOR_ENABLED, __( 'Add a separator when enumerating backlinks:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'separator-enable' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_SEPARATOR_ENABLED, $l_arr_Enabled ),
- 'separator-options' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_BACKLINKS_SEPARATOR_OPTION, $l_arr_Separators ),
- 'separator-custom' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_BACKLINKS_SEPARATOR_CUSTOM ),
+ 'label-separator' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_SEPARATOR_ENABLED, __( 'Add a separator when enumerating backlinks:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'separator-enable' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_BACKLINKS_SEPARATOR_ENABLED, $l_arr_enabled ),
+ 'separator-options' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_BACKLINKS_SEPARATOR_OPTION, $l_arr_separators ),
+ 'separator-custom' => $this->addTextBox( MCI_Footnotes_settings::C_STR_BACKLINKS_SEPARATOR_CUSTOM ),
'notice-separator' => __( 'Your input overrides the selection.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-terminator' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_TERMINATOR_ENABLED, __( 'Add a terminal punctuation to backlinks:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'terminator-enable' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_TERMINATOR_ENABLED, $l_arr_Enabled ),
- 'terminator-options' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_BACKLINKS_TERMINATOR_OPTION, $l_arr_Terminators ),
- 'terminator-custom' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_BACKLINKS_TERMINATOR_CUSTOM ),
+ 'label-terminator' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_TERMINATOR_ENABLED, __( 'Add a terminal punctuation to backlinks:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'terminator-enable' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_BACKLINKS_TERMINATOR_ENABLED, $l_arr_enabled ),
+ 'terminator-options' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_BACKLINKS_TERMINATOR_OPTION, $l_arr_terminators ),
+ 'terminator-custom' => $this->addTextBox( MCI_Footnotes_settings::C_STR_BACKLINKS_TERMINATOR_CUSTOM ),
'notice-terminator' => __( 'Your input overrides the selection.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-width' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_COLUMN_WIDTH_ENABLED, __( 'Set backlinks column width:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'width-enable' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_COLUMN_WIDTH_ENABLED, $l_arr_Enabled ),
- 'width-scalar' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_BACKLINKS_COLUMN_WIDTH_SCALAR, 0, 500, true ),
- 'width-unit' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_BACKLINKS_COLUMN_WIDTH_UNIT, $l_arr_WidthUnits ),
+ 'label-width' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_COLUMN_WIDTH_ENABLED, __( 'Set backlinks column width:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'width-enable' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_BACKLINKS_COLUMN_WIDTH_ENABLED, $l_arr_enabled ),
+ 'width-scalar' => $this->addNumBox( MCI_Footnotes_settings::C_INT_BACKLINKS_COLUMN_WIDTH_SCALAR, 0, 500, true ),
+ 'width-unit' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_BACKLINKS_COLUMN_WIDTH_UNIT, $l_arr_width_units ),
'notice-width' => __( 'Absolute width in pixels doesn’t need to be accurate to the tenth, but relative width in rem or em may.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-max-width' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_COLUMN_MAX_WIDTH_ENABLED, __( 'Set backlinks column maximum width:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'max-width-enable' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_COLUMN_MAX_WIDTH_ENABLED, $l_arr_Enabled ),
- 'max-width-scalar' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_BACKLINKS_COLUMN_MAX_WIDTH_SCALAR, 0, 500, true ),
- 'max-width-unit' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_BACKLINKS_COLUMN_MAX_WIDTH_UNIT, $l_arr_WidthUnits ),
+ 'label-max-width' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_COLUMN_MAX_WIDTH_ENABLED, __( 'Set backlinks column maximum width:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'max-width-enable' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_BACKLINKS_COLUMN_MAX_WIDTH_ENABLED, $l_arr_enabled ),
+ 'max-width-scalar' => $this->addNumBox( MCI_Footnotes_settings::C_INT_BACKLINKS_COLUMN_MAX_WIDTH_SCALAR, 0, 500, true ),
+ 'max-width-unit' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_BACKLINKS_COLUMN_MAX_WIDTH_UNIT, $l_arr_width_units ),
'notice-max-width' => __( 'Absolute width in pixels doesn’t need to be accurate to the tenth, but relative width in rem or em may.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-line-break' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_LINE_BREAKS_ENABLED, __( 'Stack backlinks when enumerating:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'line-break' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_LINE_BREAKS_ENABLED, $l_arr_Enabled ),
+ 'label-line-break' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_LINE_BREAKS_ENABLED, __( 'Stack backlinks when enumerating:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'line-break' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_BACKLINKS_LINE_BREAKS_ENABLED, $l_arr_enabled ),
'notice-line-break' => __( 'This option adds a line break before each added backlink when identical footnotes are combined.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-link' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_LINK_ELEMENT_ENABLED, __( 'Use the link element for referrers and backlinks:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'link' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_LINK_ELEMENT_ENABLED, $l_arr_Enabled ),
+ 'label-link' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_LINK_ELEMENT_ENABLED, __( 'Use the link element for referrers and backlinks:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'link' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_LINK_ELEMENT_ENABLED, $l_arr_enabled ),
'notice-link' => __( 'The link element is needed to apply the theme’s link color.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'description-link' => __( 'If the link element is not desired for styling, a simple span is used instead when the above is set to No. The link addresses have been removed. Else footnote clicks are logged in the browsing history and make the back button unusable.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
/**
@@ -364,7 +364,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
*/
public function StartEnd() {
// footnotes start tag short code options:
- $l_arr_ShortCodeStart = array(
+ $l_arr_shortcode_start = array(
'((' => '((',
'(((' => '(((',
'{{' => '{{',
@@ -378,7 +378,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
'userdefined' => __( 'custom short code', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// footnotes end tag short code options:
- $l_arr_ShortCodeEnd = array(
+ $l_arr_shortcode_end = array(
'))' => '))',
')))' => ')))',
'}}' => '}}',
@@ -392,137 +392,137 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
'userdefined' => __( 'custom short code', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// options for the syntax validation:
- $l_arr_Enable = array(
+ $l_arr_enable = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'settings-start-end' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'settings-start-end' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
'description-escapement' => __( 'WARNING: Short codes with closing pointy brackets are disabled in the new WordPress Block Editor that disrupts the traditional balanced escapement applied by WordPress Classic Editor.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-short-code-start' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_START, __( 'Footnote start tag short code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'short-code-start' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_START, $l_arr_ShortCodeStart ),
- 'short-code-start-user' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED ),
+ 'label-short-code-start' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_START, __( 'Footnote start tag short code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'short-code-start' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_START, $l_arr_shortcode_start ),
+ 'short-code-start-user' => $this->addTextBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED ),
- 'label-short-code-end' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_END, __( 'Footnote end tag short code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'short-code-end' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_END, $l_arr_ShortCodeEnd ),
- 'short-code-end-user' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED ),
+ 'label-short-code-end' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_END, __( 'Footnote end tag short code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'short-code-end' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_END, $l_arr_shortcode_end ),
+ 'short-code-end-user' => $this->addTextBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED ),
// for script showing/hiding user defined text boxes:
- 'short-code-start-id' => MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_START,
- 'short-code-end-id' => MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_END,
- 'short-code-start-user-id' => MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED,
- 'short-code-end-user-id' => MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED,
+ 'short-code-start-id' => MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_START,
+ 'short-code-end-id' => MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_END,
+ 'short-code-start-user-id' => MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED,
+ 'short-code-end-user-id' => MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED,
'description-parentheses' => __( 'WARNING: Although widespread industry standard, the double parentheses are problematic because they may occur in scripts embedded in the content and be mistaken as a short code.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
// option to enable syntax validation, label mirrored in task.php:
- 'label-syntax' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE, __( 'Check for balanced shortcodes:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'syntax' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE, $l_arr_Enable ),
+ 'label-syntax' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE, __( 'Check for balanced shortcodes:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'syntax' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE, $l_arr_enable ),
'notice-syntax' => __( 'In the presence of a lone start tag shortcode, a warning displays below the post title.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'description-syntax' => __( 'If the start tag short code is ‘((’ or ‘(((’, it will not be reported as unbalanced if the following string contains braces hinting that it is a script.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
public function Numbering() {
// define some space for the output
- $l_str_Space = ' ';
+ $l_str_space = ' ';
// options for the combination of identical footnotes
- $l_arr_Enable = array(
+ $l_arr_enable = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// options for the numbering style of the footnotes:
- $l_arr_CounterStyle = array(
- 'arabic_plain' => __( 'plain Arabic numbers', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_Space . '1, 2, 3, 4, 5, …',
- 'arabic_leading' => __( 'zero-padded Arabic numbers', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_Space . '01, 02, 03, 04, 05, …',
- 'latin_low' => __( 'lowercase Latin letters', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_Space . 'a, b, c, d, e, …',
- 'latin_high' => __( 'uppercase Latin letters', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_Space . 'A, B, C, D, E, …',
- 'romanic' => __( 'uppercase Roman numerals', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_Space . 'I, II, III, IV, V, …',
- 'roman_low' => __( 'lowercase Roman numerals', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_Space . 'i, ii, iii, iv, v, …',
+ $l_arr_counter_style = array(
+ 'arabic_plain' => __( 'plain Arabic numbers', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_space . '1, 2, 3, 4, 5, …',
+ 'arabic_leading' => __( 'zero-padded Arabic numbers', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_space . '01, 02, 03, 04, 05, …',
+ 'latin_low' => __( 'lowercase Latin letters', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_space . 'a, b, c, d, e, …',
+ 'latin_high' => __( 'uppercase Latin letters', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_space . 'A, B, C, D, E, …',
+ 'romanic' => __( 'uppercase Roman numerals', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_space . 'I, II, III, IV, V, …',
+ 'roman_low' => __( 'lowercase Roman numerals', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . $l_str_space . 'i, ii, iii, iv, v, …',
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'settings-numbering' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'settings-numbering' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-counter-style' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE, __( 'Numbering style:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'counter-style' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE, $l_arr_CounterStyle ),
+ 'label-counter-style' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_COUNTER_STYLE, __( 'Numbering style:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'counter-style' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_COUNTER_STYLE, $l_arr_counter_style ),
// algorithmically combine identicals:
- 'label-identical' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_COMBINE_IDENTICAL_FOOTNOTES, __( 'Combine identical footnotes:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'identical' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_COMBINE_IDENTICAL_FOOTNOTES, $l_arr_Enable ),
+ 'label-identical' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_COMBINE_IDENTICAL_FOOTNOTES, __( 'Combine identical footnotes:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'identical' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_COMBINE_IDENTICAL_FOOTNOTES, $l_arr_enable ),
'notice-identical' => __( 'This option may require copy-pasting footnotes in multiple instances.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
// Support for Ibid. notation added thanks to @meglio in .
'description-identical' => __( 'Even when footnotes are combined, footnote numbers keep incrementing. This avoids suboptimal referrer and backlink disambiguation using a secondary numbering system. The Ibid. notation and the op. cit. abbreviation followed by the current page number avoid repeating the footnote content. For changing sources, shortened citations may be used. Repeating full citations is also an opportunity to add details.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
public function Scrolling() {
// options for enabling hard links for AMP compat:
- $l_arr_Enable = array(
+ $l_arr_enable = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'settings-scrolling' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'settings-scrolling' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-scroll-offset' => $this->addLabel( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_OFFSET, __( 'Scroll offset:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'scroll-offset' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_OFFSET, 0, 100 ),
+ 'label-scroll-offset' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_SCROLL_OFFSET, __( 'Scroll offset:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'scroll-offset' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_SCROLL_OFFSET, 0, 100 ),
'notice-scroll-offset' => __( 'per cent from the upper edge of the window', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-scroll-duration' => $this->addLabel( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DURATION, __( 'Scroll duration:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'scroll-duration' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DURATION, 0, 20000 ),
+ 'label-scroll-duration' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_SCROLL_DURATION, __( 'Scroll duration:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'scroll-duration' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_SCROLL_DURATION, 0, 20000 ),
'notice-scroll-duration' => __( 'milliseconds; instantly if hard links are enabled and JavaScript is disabled', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
// enable hard links for AMP compat:
- 'label-hard-links' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_HARD_LINKS_ENABLE, __( 'Enable hard links:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'hard-links' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_HARD_LINKS_ENABLE, $l_arr_Enable ),
+ 'label-hard-links' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_HARD_LINKS_ENABLE, __( 'Enable hard links:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'hard-links' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_HARD_LINKS_ENABLE, $l_arr_enable ),
'notice-hard-links' => __( 'Hard links are indispensable for AMP compatibility and allow to link to footnotes.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-footnote' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTE_FRAGMENT_ID_SLUG, __( 'Fragment identifier slug for footnotes:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'footnote' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_FOOTNOTE_FRAGMENT_ID_SLUG ),
+ 'label-footnote' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTE_FRAGMENT_ID_SLUG, __( 'Fragment identifier slug for footnotes:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'footnote' => $this->addTextBox( MCI_Footnotes_settings::C_STR_FOOTNOTE_FRAGMENT_ID_SLUG ),
'notice-footnote' => __( 'This will show up in the address bar after clicking on a hard-linked footnote referrer.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-referrer' => $this->addLabel( MCI_Footnotes_Settings::C_STR_REFERRER_FRAGMENT_ID_SLUG, __( 'Fragment identifier slug for footnote referrers:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'referrer' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_REFERRER_FRAGMENT_ID_SLUG ),
+ 'label-referrer' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERRER_FRAGMENT_ID_SLUG, __( 'Fragment identifier slug for footnote referrers:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'referrer' => $this->addTextBox( MCI_Footnotes_settings::C_STR_REFERRER_FRAGMENT_ID_SLUG ),
'notice-referrer' => __( 'This will show up in the address bar after clicking on a hard-linked backlink.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-separator' => $this->addLabel( MCI_Footnotes_Settings::C_STR_HARD_LINK_IDS_SEPARATOR, __( 'ID separator:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'separator' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_HARD_LINK_IDS_SEPARATOR ),
+ 'label-separator' => $this->addLabel( MCI_Footnotes_settings::C_STR_HARD_LINK_IDS_SEPARATOR, __( 'ID separator:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'separator' => $this->addTextBox( MCI_Footnotes_settings::C_STR_HARD_LINK_IDS_SEPARATOR ),
'notice-separator' => __( 'May be empty or any string, for example _, - or +, to distinguish post number, container number and footnote number.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
// enable backlink tooltips:
- 'label-backlink-tooltips' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_BACKLINK_TOOLTIP_ENABLE, __( 'Enable backlink tooltips:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'backlink-tooltips' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_BACKLINK_TOOLTIP_ENABLE, $l_arr_Enable ),
+ 'label-backlink-tooltips' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_BACKLINK_TOOLTIP_ENABLE, __( 'Enable backlink tooltips:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'backlink-tooltips' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_BACKLINK_TOOLTIP_ENABLE, $l_arr_enable ),
'notice-backlink-tooltips' => __( 'Hard backlinks get ordinary tooltips hinting to use the backbutton instead.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-backlink-tooltip-text' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_BACKLINK_TOOLTIP_TEXT, __( 'Backlink tooltip text:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'backlink-tooltip-text' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_BACKLINK_TOOLTIP_TEXT ),
+ 'label-backlink-tooltip-text' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_BACKLINK_TOOLTIP_TEXT, __( 'Backlink tooltip text:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'backlink-tooltip-text' => $this->addTextBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_BACKLINK_TOOLTIP_TEXT ),
'notice-backlink-tooltip-text' => __( 'Default text is the keyboard shortcut, but you may wish to input a descriptive hint in your language.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
/**
@@ -537,7 +537,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
*/
public function Love() {
// options for the acknowledgment display in the footer:
- $l_arr_Love = array(
+ $l_arr_love = array(
// logo only:
'text-3' => sprintf( '%s', MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ),
// logo followed by heart symbol:
@@ -558,19 +558,19 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'settings-love' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'settings-love' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-love' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_LOVE, sprintf( __( 'Tell the world you’re using %s:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ) ),
- 'love' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_LOVE, $l_arr_Love ),
+ 'label-love' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_LOVE, sprintf( __( 'Tell the world you’re using %s:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ) ),
+ 'love' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_LOVE, $l_arr_love ),
'label-no-love' => $this->addText( sprintf( __( 'Shortcode to inhibit the display of the %s mention on specific pages:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ) ),
'no-love' => $this->addText( MCI_Footnotes_Config::C_STR_NO_LOVE_SLUG ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
/**
@@ -587,25 +587,25 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
*/
public function Excerpts() {
// options for Yes/No select box:
- $l_arr_Enabled = array(
+ $l_arr_enabled = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'settings-excerpts' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'settings-excerpts' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-excerpts' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_IN_EXCERPT, __( 'Display footnotes in excerpts:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'excerpts' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_IN_EXCERPT, $l_arr_Enabled ),
+ 'label-excerpts' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_IN_EXCERPT, __( 'Display footnotes in excerpts:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'excerpts' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_IN_EXCERPT, $l_arr_enabled ),
'notice-excerpts' => __( 'The recommended value is No.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
// In some themes, the Advanced Excerpt plugin is indispensable to display footnotes in excerpts.
'description-excerpts' => sprintf( __( 'In some themes, the %s plugin is indispensable to display footnotes in excerpts. Footnotes cannot be disabled in excerpts. A workaround is to avoid footnotes in the first 55 words.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Advanced Excerpt' ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
/**
@@ -620,40 +620,40 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
*/
public function Superscript() {
// options for Yes/No select box:
- $l_arr_Enabled = array(
+ $l_arr_enabled = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// options for superscript normalize scope:
- $l_arr_NormalizeSuperscript = array(
+ $l_arr_normalize_superscript = array(
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'referrers' => __( 'Footnote referrers', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'all' => __( 'All superscript elements', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'customize-superscript' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'customize-superscript' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-superscript' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS, __( 'Display footnote referrers in superscript:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'superscript' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS, $l_arr_Enabled ),
+ 'label-superscript' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS, __( 'Display footnote referrers in superscript:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'superscript' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS, $l_arr_enabled ),
- 'label-before' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_STYLING_BEFORE, __( 'At the start of the footnote referrers:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'before' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_STYLING_BEFORE ),
+ 'label-before' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_STYLING_BEFORE, __( 'At the start of the footnote referrers:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'before' => $this->addTextBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_STYLING_BEFORE ),
- 'label-after' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_STYLING_AFTER, __( 'At the end of the footnote referrers:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'after' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_STYLING_AFTER ),
+ 'label-after' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_STYLING_AFTER, __( 'At the end of the footnote referrers:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'after' => $this->addTextBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_STYLING_AFTER ),
- 'label-link' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_LINK_ELEMENT_ENABLED, __( 'Use the link element for referrers and backlinks:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'label-link' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_LINK_ELEMENT_ENABLED, __( 'Use the link element for referrers and backlinks:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
'notice-link' => __( 'Please find this setting at the end of the reference container settings. The link element is needed to apply the theme’s link color.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-normalize' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT, __( 'Normalize vertical alignment and font size:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'normalize' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT, $l_arr_NormalizeSuperscript ),
+ 'label-normalize' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT, __( 'Normalize vertical alignment and font size:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'normalize' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT, $l_arr_normalize_superscript ),
'notice-normalize' => __( 'Most themes don’t need this fix.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
/**
@@ -668,23 +668,23 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
*/
public function MouseOverBox() {
// options for Yes/No select box:
- $l_arr_Enabled = array(
+ $l_arr_enabled = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'mouse-over-box-display' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'mouse-over-box-display' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-enable' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED, __( 'Display tooltips:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'enable' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED, $l_arr_Enabled ),
+ 'label-enable' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED, __( 'Display tooltips:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'enable' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED, $l_arr_enabled ),
'notice-enable' => __( 'Formatted text boxes allowing hyperlinks, displayed on mouse-over or tap and hold.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-alternative' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE, __( 'Display alternative tooltips:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'alternative' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE, $l_arr_Enabled ),
+ 'label-alternative' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE, __( 'Display alternative tooltips:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'alternative' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE, $l_arr_enabled ),
'notice-alternative' => __( 'Intended to work around a configuration-related tooltip outage.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
// The placeholder is the name of the plugin as logogram “footnotes”.
'description-alternative' => sprintf( __( 'These alternative tooltips work around a website related jQuery UI outage. They are low-script but use the AMP incompatible onmouseover and onmouseout arguments, along with CSS transitions for fade-in/out. The very small script is inserted after Footnotes’ internal stylesheet. When this option is enabled, %s does not load jQuery UI nor jQuery Tools.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), '' . MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME . '' ),
@@ -692,13 +692,13 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
public function MouseOverBoxPosition() {
// options for the Mouse-over box position
- $l_arr_Position = array(
+ $l_arr_position = array(
'top left' => __( 'top left', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'top center' => __( 'top center', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'top right' => __( 'top right', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
@@ -709,7 +709,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
'center left' => __( 'center left', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// options for the alternative Mouse-over box position
- $l_arr_AlternativePosition = array(
+ $l_arr_alternative_position = array(
'top left' => __( 'top left', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'top right' => __( 'top right', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'bottom right' => __( 'bottom right', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
@@ -717,136 +717,136 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'mouse-over-box-position' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'mouse-over-box-position' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-position' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_POSITION, __( 'Position:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'position' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_POSITION, $l_arr_Position ),
- 'position-alternative' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_POSITION, $l_arr_AlternativePosition ),
+ 'label-position' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_POSITION, __( 'Position:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'position' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_POSITION, $l_arr_position ),
+ 'position-alternative' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_POSITION, $l_arr_alternative_position ),
'notice-position' => __( 'The second column of settings boxes is for the alternative tooltips.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-offset-x' => $this->addLabel( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X, __( 'Horizontal offset:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'offset-x' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X, -500, 500 ),
- 'offset-x-alternative' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_X, -500, 500 ),
+ 'label-offset-x' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X, __( 'Horizontal offset:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'offset-x' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X, -500, 500 ),
+ 'offset-x-alternative' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_X, -500, 500 ),
'notice-offset-x' => __( 'pixels; negative value for a leftwards offset; alternative tooltips: direction depends on position', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-offset-y' => $this->addLabel( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y, __( 'Vertical offset:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'offset-y' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y, -500, 500 ),
- 'offset-y-alternative' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_Y, -500, 500 ),
+ 'label-offset-y' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y, __( 'Vertical offset:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'offset-y' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y, -500, 500 ),
+ 'offset-y-alternative' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_Y, -500, 500 ),
'notice-offset-y' => __( 'pixels; negative value for an upwards offset; alternative tooltips: direction depends on position', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
public function MouseOverBoxDimensions() {
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'mouse-over-box-dimensions' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'mouse-over-box-dimensions' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-max-width' => $this->addLabel( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH, __( 'Maximum width:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'max-width' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH, 0, 1280 ),
- 'width' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_WIDTH, 0, 1280 ),
+ 'label-max-width' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH, __( 'Maximum width:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'max-width' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH, 0, 1280 ),
+ 'width' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_WIDTH, 0, 1280 ),
'notice-max-width' => __( 'pixels; set to 0 for jQuery tooltips without max width; alternative tooltips are given the value in the second box as fixed width.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
public function MouseOverBoxTiming() {
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'mouse-over-box-timing' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'mouse-over-box-timing' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-fade-in-delay' => $this->addLabel( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DELAY, __( 'Fade-in delay:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'fade-in-delay' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DELAY, 0, 20000 ),
+ 'label-fade-in-delay' => $this->addLabel( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DELAY, __( 'Fade-in delay:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'fade-in-delay' => $this->addNumBox( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DELAY, 0, 20000 ),
'notice-fade-in-delay' => __( 'milliseconds', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-fade-in-duration' => $this->addLabel( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DURATION, __( 'Fade-in duration:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'fade-in-duration' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DURATION, 0, 20000 ),
+ 'label-fade-in-duration' => $this->addLabel( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DURATION, __( 'Fade-in duration:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'fade-in-duration' => $this->addNumBox( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DURATION, 0, 20000 ),
'notice-fade-in-duration' => __( 'milliseconds', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-fade-out-delay' => $this->addLabel( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DELAY, __( 'Fade-out delay:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'fade-out-delay' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DELAY, 0, 20000 ),
+ 'label-fade-out-delay' => $this->addLabel( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DELAY, __( 'Fade-out delay:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'fade-out-delay' => $this->addNumBox( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DELAY, 0, 20000 ),
'notice-fade-out-delay' => __( 'milliseconds', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-fade-out-duration' => $this->addLabel( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DURATION, __( 'Fade-out duration:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'fade-out-duration' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DURATION, 0, 20000 ),
+ 'label-fade-out-duration' => $this->addLabel( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DURATION, __( 'Fade-out duration:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'fade-out-duration' => $this->addNumBox( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DURATION, 0, 20000 ),
'notice-fade-out-duration' => __( 'milliseconds', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
public function MouseOverBoxTruncation() {
// options for Yes/No select box:
- $l_arr_Enabled = array(
+ $l_arr_enabled = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'mouse-over-box-truncation' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'mouse-over-box-truncation' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-truncation' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED, __( 'Truncate the note in the tooltip:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'truncation' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED, $l_arr_Enabled ),
+ 'label-truncation' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED, __( 'Truncate the note in the tooltip:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'truncation' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED, $l_arr_enabled ),
- 'label-max-length' => $this->addLabel( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH, __( 'Maximum number of characters in the tooltip:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'max-length' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH, 3, 10000 ),
+ 'label-max-length' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH, __( 'Maximum number of characters in the tooltip:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'max-length' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH, 3, 10000 ),
// The feature trims back until the last full word.
'notice-max-length' => __( 'No weird cuts.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-readon' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_TOOLTIP_READON_LABEL, __( '‘Read on’ button label:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'readon' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_TOOLTIP_READON_LABEL ),
+ 'label-readon' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_READON_LABEL, __( '‘Read on’ button label:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'readon' => $this->addTextBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_READON_LABEL ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
public function MouseOverBoxText() {
// options for Yes/No select box:
- $l_arr_Enabled = array(
+ $l_arr_enabled = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'mouse-over-box-text' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'mouse-over-box-text' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
'description-delimiter' => __( 'Tooltips can display another content than the footnote entry in the reference container. The trigger is a shortcode in the footnote text separating the tooltip text from the note. That is consistent with what WordPress does for excerpts.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-delimiter' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER, __( 'Delimiter for dedicated tooltip text:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'delimiter' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER ),
+ 'label-delimiter' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER, __( 'Delimiter for dedicated tooltip text:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'delimiter' => $this->addTextBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER ),
'notice-delimiter' => __( 'If the delimiter shortcode is present, the tooltip text will be the part before it.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-mirror' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_ENABLE, __( 'Mirror the tooltip in the reference container:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'mirror' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_ENABLE, $l_arr_Enabled ),
+ 'label-mirror' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_ENABLE, __( 'Mirror the tooltip in the reference container:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'mirror' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_ENABLE, $l_arr_enabled ),
'notice-mirror' => __( 'Tooltips may be harder to use on mobiles. This option allows to read it in the reference container.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-separator' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_SEPARATOR, __( 'Separator between tooltip text and footnote text:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'separator' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_SEPARATOR ),
+ 'label-separator' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_SEPARATOR, __( 'Separator between tooltip text and footnote text:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'separator' => $this->addTextBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_SEPARATOR ),
'notice-separator' => __( 'May be a simple space, or a line break <br />, or any string in your language.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'description-mirror' => __( 'Tooltips, even jQuery-driven, may be hard to consult on mobiles. This option allows to read the tooltip content in the reference container too.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
@@ -854,17 +854,17 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
public function MouseOverBoxAppearance() {
// options for Yes/No select box:
- $l_arr_Enabled = array(
+ $l_arr_enabled = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// options for the font size unit:
- $l_arr_FontSizeUnits = array(
+ $l_arr_font_size_units = array(
'em' => __( 'em', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'rem' => __( 'rem', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'px' => __( 'pixels', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
@@ -875,49 +875,49 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'mouse-over-box-appearance' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'mouse-over-box-appearance' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-font-size' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_MOUSE_OVER_BOX_FONT_SIZE_ENABLED, __( 'Set font size:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'font-size-enable' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_MOUSE_OVER_BOX_FONT_SIZE_ENABLED, $l_arr_Enabled ),
- 'font-size-scalar' => $this->addNumBox( MCI_Footnotes_Settings::C_FLO_MOUSE_OVER_BOX_FONT_SIZE_SCALAR, 0, 50, true ),
- 'font-size-unit' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_MOUSE_OVER_BOX_FONT_SIZE_UNIT, $l_arr_FontSizeUnits ),
+ 'label-font-size' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_MOUSE_OVER_BOX_FONT_SIZE_ENABLED, __( 'Set font size:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'font-size-enable' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_MOUSE_OVER_BOX_FONT_SIZE_ENABLED, $l_arr_enabled ),
+ 'font-size-scalar' => $this->addNumBox( MCI_Footnotes_settings::C_FLO_MOUSE_OVER_BOX_FONT_SIZE_SCALAR, 0, 50, true ),
+ 'font-size-unit' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_MOUSE_OVER_BOX_FONT_SIZE_UNIT, $l_arr_font_size_units ),
'notice-font-size' => __( 'By default, the font size is set to equal the surrounding text.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-color' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR, __( 'Text color:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'color' => $this->addColorSelection( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR ),
+ 'label-color' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR, __( 'Text color:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'color' => $this->addColorSelection( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR ),
// To use default: Clear or leave empty.
'notice-color' => sprintf( __( 'To use the current theme’s default text color: %s', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), __( 'Clear or leave empty.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'label-background' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND, __( 'Background color:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'background' => $this->addColorSelection( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND ),
+ 'label-background' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND, __( 'Background color:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'background' => $this->addColorSelection( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND ),
// To use default: Clear or leave empty.
'notice-background' => sprintf( __( 'To use the current theme’s default background color: %s', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), __( 'Clear or leave empty.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'label-border-width' => $this->addLabel( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH, __( 'Border width:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'border-width' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH, 0, 4, true ),
+ 'label-border-width' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH, __( 'Border width:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'border-width' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH, 0, 4, true ),
'notice-border-width' => __( 'pixels; 0 for borderless', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-border-color' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR, __( 'Border color:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'border-color' => $this->addColorSelection( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR ),
+ 'label-border-color' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR, __( 'Border color:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'border-color' => $this->addColorSelection( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR ),
// To use default: Clear or leave empty.
'notice-border-color' => sprintf( __( 'To use the current theme’s default border color: %s', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), __( 'Clear or leave empty.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'label-border-radius' => $this->addLabel( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS, __( 'Rounded corner radius:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'border-radius' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS, 0, 500 ),
+ 'label-border-radius' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS, __( 'Rounded corner radius:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'border-radius' => $this->addNumBox( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS, 0, 500 ),
'notice-border-radius' => __( 'pixels; 0 for sharp corners', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-box-shadow-color' => $this->addLabel( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR, __( 'Box shadow color:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'box-shadow-color' => $this->addColorSelection( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR ),
+ 'label-box-shadow-color' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR, __( 'Box shadow color:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'box-shadow-color' => $this->addColorSelection( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR ),
// To use default: Clear or leave empty.
'notice-box-shadow-color' => sprintf( __( 'To use the current theme’s default box shadow color: %s', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), __( 'Clear or leave empty.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
/**
@@ -937,19 +937,19 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
*/
public function HyperlinkArrow() {
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'customize-hyperlink-arrow' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'customize-hyperlink-arrow' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-symbol' => $this->addLabel( MCI_Footnotes_Settings::C_STR_HYPERLINK_ARROW, __( 'Select or input the backlink symbol:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'symbol-options' => $this->addSelectBox( MCI_Footnotes_Settings::C_STR_HYPERLINK_ARROW, MCI_Footnotes_Convert::getArrow() ),
- 'symbol-custom' => $this->addTextBox( MCI_Footnotes_Settings::C_STR_HYPERLINK_ARROW_USER_DEFINED ),
+ 'label-symbol' => $this->addLabel( MCI_Footnotes_settings::C_STR_HYPERLINK_ARROW, __( 'Select or input the backlink symbol:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'symbol-options' => $this->addSelectBox( MCI_Footnotes_settings::C_STR_HYPERLINK_ARROW, MCI_Footnotes_convert::getArrow() ),
+ 'symbol-custom' => $this->addTextBox( MCI_Footnotes_settings::C_STR_HYPERLINK_ARROW_USER_DEFINED ),
'notice-symbol' => __( 'Your input overrides the selection.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'description-symbol' => __( 'This symbol is used in the reference container. But this setting pre-existed under this tab and cannot be moved to another one.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
/**
@@ -970,12 +970,12 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
*/
public function CustomCSS() {
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'customize-css' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'customize-css' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-css' => $this->addLabel( MCI_Footnotes_Settings::C_STR_CUSTOM_CSS, __( 'Your existing Custom CSS code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'css' => $this->addTextArea( MCI_Footnotes_Settings::C_STR_CUSTOM_CSS ),
+ 'label-css' => $this->addLabel( MCI_Footnotes_settings::C_STR_CUSTOM_CSS, __( 'Your existing Custom CSS code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'css' => $this->addTextArea( MCI_Footnotes_settings::C_STR_CUSTOM_CSS ),
'description-css' => __( 'Custom CSS migrates to a dedicated tab. This text area is intended to keep your data safe, and the code remains valid while visible. Please copy-paste the content into the new text area under the new tab.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
// CSS classes are listed in the template.
@@ -995,28 +995,28 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
public function CustomCSSMigration() {
// options for Yes/No select box:
- $l_arr_Enabled = array(
+ $l_arr_enabled = array(
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
);
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'customize-css-migration' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'customize-css-migration' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'label-css' => $this->addLabel( MCI_Footnotes_Settings::C_STR_CUSTOM_CSS, __( 'Your existing Custom CSS code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
- 'css' => $this->addTextArea( MCI_Footnotes_Settings::C_STR_CUSTOM_CSS ),
+ 'label-css' => $this->addLabel( MCI_Footnotes_settings::C_STR_CUSTOM_CSS, __( 'Your existing Custom CSS code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
+ 'css' => $this->addTextArea( MCI_Footnotes_settings::C_STR_CUSTOM_CSS ),
'description-css' => __( 'Custom CSS migrates to a dedicated tab. This text area is intended to keep your data safe, and the code remains valid while visible. Please copy-paste the content into the new text area below. Set Show legacy to No. Save twice.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-show-legacy' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE, 'Show legacy Custom CSS settings containers:' ),
- 'show-legacy' => $this->addSelectBox( MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE, $l_arr_Enabled ),
+ 'label-show-legacy' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE, 'Show legacy Custom CSS settings containers:' ),
+ 'show-legacy' => $this->addSelectBox( MCI_Footnotes_settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE, $l_arr_enabled ),
'notice-show-legacy' => __( 'Please set to No when you are done migrating, for the legacy Custom CSS containers to disappear.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
// The placeholder is the “Referrers and tooltips” settings tab name.
'description-show-legacy' => sprintf( __( 'The legacy Custom CSS under the %s tab and its mirror here are emptied, and the select box saved as No, when the settings tab is saved while the settings container is not displayed.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), __( 'Referrers and tooltips', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
@@ -1024,23 +1024,23 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
public function CustomCSSNew() {
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'customize-css-new' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'customize-css-new' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
- 'css' => $this->addTextArea( MCI_Footnotes_Settings::C_STR_CUSTOM_CSS_NEW ),
+ 'css' => $this->addTextArea( MCI_Footnotes_settings::C_STR_CUSTOM_CSS_NEW ),
'headline' => $this->addText( __( 'Recommended CSS classes:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
/**
@@ -1064,10 +1064,10 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
*/
public function LookupHooks() {
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'expert-lookup' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'expert-lookup' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
'description-1' => __( 'The priority level determines whether Footnotes is executed timely before other plugins, and how the reference container is positioned relative to other features.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
@@ -1080,34 +1080,34 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
'head-numbox' => __( 'Priority level', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
'head-url' => __( 'WordPress documentation', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'label-the-title' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_TITLE, 'the_title' ),
- 'the-title' => $this->addCheckbox( MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_TITLE ),
- 'priority-the-title' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_EXPERT_LOOKUP_THE_TITLE_PRIORITY_LEVEL, -1, PHP_INT_MAX ),
+ 'label-the-title' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_EXPERT_LOOKUP_THE_TITLE, 'the_title' ),
+ 'the-title' => $this->addCheckbox( MCI_Footnotes_settings::C_BOOL_EXPERT_LOOKUP_THE_TITLE ),
+ 'priority-the-title' => $this->addNumBox( MCI_Footnotes_settings::C_INT_EXPERT_LOOKUP_THE_TITLE_PRIORITY_LEVEL, -1, PHP_INT_MAX ),
'url-the-title' => 'https://developer.wordpress.org/reference/hooks/the_title/',
- 'label-the-content' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_CONTENT, 'the_content' ),
- 'the-content' => $this->addCheckbox( MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_CONTENT ),
- 'priority-the-content' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_EXPERT_LOOKUP_THE_CONTENT_PRIORITY_LEVEL, -1, PHP_INT_MAX ),
+ 'label-the-content' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_EXPERT_LOOKUP_THE_CONTENT, 'the_content' ),
+ 'the-content' => $this->addCheckbox( MCI_Footnotes_settings::C_BOOL_EXPERT_LOOKUP_THE_CONTENT ),
+ 'priority-the-content' => $this->addNumBox( MCI_Footnotes_settings::C_INT_EXPERT_LOOKUP_THE_CONTENT_PRIORITY_LEVEL, -1, PHP_INT_MAX ),
'url-the-content' => 'https://developer.wordpress.org/reference/hooks/the_content/',
- 'label-the-excerpt' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_EXCERPT, 'the_excerpt' ),
- 'the-excerpt' => $this->addCheckbox( MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_EXCERPT ),
- 'priority-the-excerpt' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_EXPERT_LOOKUP_THE_EXCERPT_PRIORITY_LEVEL, -1, PHP_INT_MAX ),
+ 'label-the-excerpt' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_EXPERT_LOOKUP_THE_EXCERPT, 'the_excerpt' ),
+ 'the-excerpt' => $this->addCheckbox( MCI_Footnotes_settings::C_BOOL_EXPERT_LOOKUP_THE_EXCERPT ),
+ 'priority-the-excerpt' => $this->addNumBox( MCI_Footnotes_settings::C_INT_EXPERT_LOOKUP_THE_EXCERPT_PRIORITY_LEVEL, -1, PHP_INT_MAX ),
'url-the-excerpt' => 'https://developer.wordpress.org/reference/functions/the_excerpt/',
- 'label-widget-title' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TITLE, 'widget_title' ),
- 'widget-title' => $this->addCheckbox( MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TITLE ),
- 'priority-widget-title' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_EXPERT_LOOKUP_WIDGET_TITLE_PRIORITY_LEVEL, -1, PHP_INT_MAX ),
- 'url-widget-title' => 'https://codex.wordpress.org/Plugin_API/Filter_Reference/widget_title',
+ 'label-widget-title' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TITLE, 'widget_title' ),
+ 'widget-title' => $this->addCheckbox( MCI_Footnotes_settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TITLE ),
+ 'priority-widget-title' => $this->addNumBox( MCI_Footnotes_settings::C_INT_EXPERT_LOOKUP_WIDGET_TITLE_PRIORITY_LEVEL, -1, PHP_INT_MAX ),
+ 'url-widget-title' => 'https://codex.wordpress.org/Plugin_aPI/Filter_reference/widget_title',
- 'label-widget-text' => $this->addLabel( MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TEXT, 'widget_text' ),
- 'widget-text' => $this->addCheckbox( MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TEXT ),
- 'priority-widget-text' => $this->addNumBox( MCI_Footnotes_Settings::C_INT_EXPERT_LOOKUP_WIDGET_TEXT_PRIORITY_LEVEL, -1, PHP_INT_MAX ),
- 'url-widget-text' => 'https://codex.wordpress.org/Plugin_API/Filter_Reference/widget_text',
+ 'label-widget-text' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TEXT, 'widget_text' ),
+ 'widget-text' => $this->addCheckbox( MCI_Footnotes_settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TEXT ),
+ 'priority-widget-text' => $this->addNumBox( MCI_Footnotes_settings::C_INT_EXPERT_LOOKUP_WIDGET_TEXT_PRIORITY_LEVEL, -1, PHP_INT_MAX ),
+ 'url-widget-text' => 'https://codex.wordpress.org/Plugin_aPI/Filter_reference/widget_text',
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
/**
@@ -1117,46 +1117,46 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
* @since 1.5.0
*/
public function Help() {
- global $g_obj_MCI_Footnotes;
+ global $g_obj_mci_footnotes;
// load footnotes starting and end tag
- $l_arr_Footnote_StartingTag = $this->LoadSetting( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_START );
- $l_arr_Footnote_EndingTag = $this->LoadSetting( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_END );
+ $l_arr_footnote_starting_tag = $this->LoadSetting( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_START );
+ $l_arr_footnote_ending_tag = $this->LoadSetting( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_END );
- if ( $l_arr_Footnote_StartingTag['value'] == 'userdefined' || $l_arr_Footnote_EndingTag['value'] == 'userdefined' ) {
+ if ( $l_arr_footnote_starting_tag['value'] == 'userdefined' || $l_arr_footnote_ending_tag['value'] == 'userdefined' ) {
// load user defined starting and end tag
- $l_arr_Footnote_StartingTag = $this->LoadSetting( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED );
- $l_arr_Footnote_EndingTag = $this->LoadSetting( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED );
+ $l_arr_footnote_starting_tag = $this->LoadSetting( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED );
+ $l_arr_footnote_ending_tag = $this->LoadSetting( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED );
}
- $l_str_Example = 'Hello' . $l_arr_Footnote_StartingTag['value'] .
+ $l_str_example = 'Hello' . $l_arr_footnote_starting_tag['value'] .
'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,' .
' sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.' .
' Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,' .
' consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.' .
' At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.'
- . $l_arr_Footnote_EndingTag['value'] . ' World!';
+ . $l_arr_footnote_ending_tag['value'] . ' World!';
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'how-to-help' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'how-to-help' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
'label-start' => __( 'Start your footnote with the following short code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'start' => $l_arr_Footnote_StartingTag['value'],
+ 'start' => $l_arr_footnote_starting_tag['value'],
'label-end' => __( '…and end your footnote with this short code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'end' => $l_arr_Footnote_EndingTag['value'],
+ 'end' => $l_arr_footnote_ending_tag['value'],
- 'example-code' => $l_str_Example,
+ 'example-code' => $l_str_example,
'example-string' => '
' . __( 'will be displayed as:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
- 'example' => $g_obj_MCI_Footnotes->a_obj_Task->exec( $l_str_Example, true ),
+ 'example' => $g_obj_mci_footnotes->a_obj_task->exec( $l_str_example, true ),
'information' => sprintf( __( 'For further information please check out our %1$ssupport forum%2$s on WordPress.org.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), '' ),
)
);
// call wp_head function to get the Styling of the mouse-over box
- $g_obj_MCI_Footnotes->a_obj_Task->wp_head();
+ $g_obj_mci_footnotes->a_obj_task->wp_head();
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
/**
@@ -1167,14 +1167,14 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
*/
public function Donate() {
// load template file
- $l_obj_Template = new MCI_Footnotes_Template( MCI_Footnotes_Template::C_STR_DASHBOARD, 'how-to-donate' );
+ $l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'how-to-donate' );
// replace all placeholders
- $l_obj_Template->replace(
+ $l_obj_template->replace(
array(
'caption' => __( 'Donate now', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
)
);
// display template with replaced placeholders
- echo $l_obj_Template->getContent();
+ echo $l_obj_template->getContent();
}
}
diff --git a/class/settings.php b/class/settings.php
index 27fc542..4a947c4 100644
--- a/class/settings.php
+++ b/class/settings.php
@@ -1141,7 +1141,7 @@ class MCI_Footnotes_Settings {
$this->a_arr_settings = array();
for ( $i = 0; $i < count( $this->a_arr_container ); $i++ ) {
// Load settings.
- $this->a_arr_settings = array_merge( $this->a_arr_settings, $this->Load( $i ) );
+ $this->a_arr_settings = array_merge( $this->a_arr_settings, $this->load( $i ) );
}
}
@@ -1156,7 +1156,7 @@ class MCI_Footnotes_Settings {
* @since ditched trimming whitespace from text box content in response to user request.
* @link https://wordpress.org/support/topic/leading-space-in-footnotes-tag/#post-5347966
*/
- private function Load( $p_int_index ) {
+ private function load( $p_int_index ) {
// Load all settings from container.
$l_arr_options = get_option( $this->get_container( $p_int_index ) );
// Load all default settings.
@@ -1227,7 +1227,7 @@ class MCI_Footnotes_Settings {
* done by deleting and reinstalling (see the warning about database backup).
* 2020-12-13T1353+0100
*/
- public function Clear_all() {
+ public function clear_all() {
// Iterate through each Settings Container.
for ( $i = 0; $i < count( $this->a_arr_container ); $i++ ) {
// Delete the settings container.
@@ -1244,7 +1244,7 @@ class MCI_Footnotes_Settings {
* @author Stefan Herndler
* @since 1.5.0
*/
- public function Register_settings() {
+ public function register_settings() {
// Register all settings.
for ( $i = 0; $i < count( $this->a_arr_container ); $i++ ) {
register_setting( $this->get_container( $i ), $this->get_container( $i ) );
diff --git a/class/task.php b/class/task.php
index 8fb4b8b..f9c64d7 100644
--- a/class/task.php
+++ b/class/task.php
@@ -674,9 +674,9 @@ class MCI_Footnotes_Task {
// Ref container first column width and max-width:.
$l_bool_column_width_enabled = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_COLUMN_WIDTH_ENABLED ) );
- $l_bool_column_maxWidth_enabled = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_COLUMN_MAX_WIDTH_ENABLED ) );
+ $l_bool_column_max_width_enabled = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_BOOL_BACKLINKS_COLUMN_MAX_WIDTH_ENABLED ) );
- if ( $l_bool_column_width_enabled || $l_bool_column_maxWidth_enabled ) {
+ if ( $l_bool_column_width_enabled || $l_bool_column_max_width_enabled ) {
echo '.footnote-reference-container { table-layout: fixed; }';
echo '.footnote_plugin_index, .footnote_plugin_index_combi {';
@@ -698,22 +698,22 @@ class MCI_Footnotes_Task {
echo " width: $l_int_column_width_scalar$l_str_column_width_unit !important;";
}
- if ( $l_bool_column_maxWidth_enabled ) {
+ if ( $l_bool_column_max_width_enabled ) {
- $l_int_column_maxWidth_scalar = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_BACKLINKS_COLUMN_MAX_WIDTH_SCALAR );
+ $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 );
- if ( ! empty( $l_int_column_maxWidth_scalar ) ) {
+ if ( ! empty( $l_int_column_max_width_scalar ) ) {
if ( $l_str_column_maxWidth_unit == '%' ) {
- if ( $l_int_column_maxWidth_scalar > 100 ) {
- $l_int_column_maxWidth_scalar = 100;
+ if ( $l_int_column_max_width_scalar > 100 ) {
+ $l_int_column_max_width_scalar = 100;
}
}
} else {
- $l_int_column_maxWidth_scalar = 0;
+ $l_int_column_max_width_scalar = 0;
}
- echo " max-width: $l_int_column_maxWidth_scalar$l_str_column_maxWidth_unit !important;";
+ echo " max-width: $l_int_column_max_width_scalar$l_str_column_maxWidth_unit !important;";
}
echo "}\r\n";
@@ -943,7 +943,7 @@ class MCI_Footnotes_Task {
*/
public function wp_footer() {
if ( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION ) == 'footer' ) {
- echo $this->Reference_container();
+ echo $this->reference_container();
}
// Get setting for love and share this plugin.
$l_str_love_me_index = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_LOVE );
@@ -1054,17 +1054,17 @@ class MCI_Footnotes_Task {
*
* @author Stefan Herndler
* @since 1.5.4
- * @param array|WP_Post $p_mixed_Posts
+ * @param array|WP_Post $p_mixed_posts
*/
- public function the_post( &$p_mixed_Posts ) {
+ public function the_post( &$p_mixed_posts ) {
// Single WP_Post object received.
- if ( ! is_array( $p_mixed_Posts ) ) {
- $p_mixed_Posts = $this->replace_post_object( $p_mixed_Posts );
+ if ( ! is_array( $p_mixed_posts ) ) {
+ $p_mixed_posts = $this->replace_post_object( $p_mixed_posts );
return;
}
// Array of WP_Post objects received.
- for ( $l_int_index = 0; $l_int_index < count( $p_mixed_Posts ); $l_int_index++ ) {
- $p_mixed_Posts[ $l_int_index ] = $this->replace_post_object( $p_mixed_Posts[ $l_int_index ] );
+ for ( $l_int_index = 0; $l_int_index < count( $p_mixed_posts ); $l_int_index++ ) {
+ $p_mixed_posts[ $l_int_index ] = $this->replace_post_object( $p_mixed_posts[ $l_int_index ] );
}
}
@@ -1134,11 +1134,11 @@ class MCI_Footnotes_Task {
if ( strpos( $p_str_content, $l_str_reference_container_position_shortcode ) !== false ) {
- $p_str_content = str_replace( $l_str_reference_container_position_shortcode, $this->Reference_container(), $p_str_content );
+ $p_str_content = str_replace( $l_str_reference_container_position_shortcode, $this->reference_container(), $p_str_content );
} else {
- $p_str_content .= $this->Reference_container();
+ $p_str_content .= $this->reference_container();
}
@@ -1514,11 +1514,11 @@ class MCI_Footnotes_Task {
// Display the footnote referrers and the tooltips:.
if ( ! $p_bool_hide_footnotes_text ) {
- $l_int_index = MCI_Footnotes_Convert::Index( $l_int_footnote_index, MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE ) );
+ $l_int_index = MCI_Footnotes_Convert::index( $l_int_footnote_index, MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE ) );
// Display only a truncated footnote text if option enabled:.
$l_bool_enable_excerpt = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED ) );
- $l_int_maxLength = intval( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH ) );
+ $l_int_max_length = intval( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH ) );
// Define excerpt text as footnote text by default:.
$l_str_excerpt_text = $l_str_footnote_text;
@@ -1541,8 +1541,8 @@ class MCI_Footnotes_Task {
*/
if ( self::$a_bool_tooltips_enabled && $l_bool_enable_excerpt ) {
$l_str_dummy_text = strip_tags( $l_str_footnote_text );
- if ( is_int( $l_int_maxLength ) && strlen( $l_str_dummy_text ) > $l_int_maxLength ) {
- $l_str_excerpt_text = substr( $l_str_dummy_text, 0, $l_int_maxLength );
+ if ( is_int( $l_int_max_length ) && strlen( $l_str_dummy_text ) > $l_int_max_length ) {
+ $l_str_excerpt_text = substr( $l_str_dummy_text, 0, $l_int_max_length );
$l_str_excerpt_text = substr( $l_str_excerpt_text, 0, strrpos( $l_str_excerpt_text, ' ' ) );
$l_str_excerpt_text .= ' … <';
$l_str_excerpt_text .= self::$a_bool_hard_links_enable ? 'a' : 'span';
@@ -1794,7 +1794,7 @@ class MCI_Footnotes_Task {
* @since 2.1.1 Bugfix: Referrers, reference container: Combining identical footnotes: fix dead links and ensure referrer-backlink bijectivity, thanks to @happyches bug report.
* @since 2.1.1 Bugfix: Reference container: Backlink symbol: make optional, not suggest configuring it to invisible, thanks to @spaceling feedback.
*/
- public function Reference_container() {
+ public function reference_container() {
// No footnotes have been replaced on this page:.
if ( empty( self::$a_arr_footnotes ) ) {
@@ -2010,7 +2010,7 @@ class MCI_Footnotes_Task {
// Get the footnote index string and.
// Keep supporting legacy index placeholder:.
- $l_str_footnote_id = MCI_Footnotes_Convert::Index( ( $l_int_index + 1 ), MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE ) );
+ $l_str_footnote_id = MCI_Footnotes_Convert::index( ( $l_int_index + 1 ), MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE ) );
/**
* Case of only one backlink per table row
@@ -2164,7 +2164,7 @@ class MCI_Footnotes_Task {
$l_bool_flag_combined = true;
// Update the footnote ID:.
- $l_str_footnote_id = MCI_Footnotes_Convert::Index( ( $l_int_check_index + 1 ), MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE ) );
+ $l_str_footnote_id = MCI_Footnotes_Convert::index( ( $l_int_check_index + 1 ), MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE ) );
// Resume composing the backlinks enumeration:.
$l_str_footnote_backlinks .= "$l_str_separator";
@@ -2246,7 +2246,7 @@ class MCI_Footnotes_Task {
// Used in standard layout W/O COMBINED FOOTNOTES:.
'post_id' => self::$a_int_post_id,
'container_id' => self::$a_int_reference_container_id,
- 'note_id' => MCI_Footnotes_Convert::Index( $l_int_first_footnote_index, MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE ) ),
+ 'note_id' => MCI_Footnotes_Convert::index( $l_int_first_footnote_index, MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE ) ),
'link-start' => self::$a_str_link_open_tag,
'link-end' => self::$a_str_link_close_tag,
'link-span' => self::$a_str_link_span,
diff --git a/class/widgets/base.php b/class/widgets/base.php
index b6c3f56..ce1f05b 100644
--- a/class/widgets/base.php
+++ b/class/widgets/base.php
@@ -75,11 +75,11 @@ abstract class MCI_Footnotes_Widget_Base extends WP_Widget {
* “The called constructor method for WP_Widget in MCI_Footnotes_Widget_ReferenceContainer is deprecated since version 4.3.0! Use __construct() instead.”
*/
public function __construct() {
- $l_arr_WidgetOptions = array(
+ $l_arr_widget_options = array(
'classname' => __CLASS__,
'description' => $this->getDescription(),
);
- $l_arr_ControlOptions = array(
+ $l_arr_control_options = array(
'id_base' => strtolower( $this->getID() ),
'width' => $this->getWidgetWidth(),
);
@@ -87,8 +87,8 @@ abstract class MCI_Footnotes_Widget_Base extends WP_Widget {
parent::__construct(
strtolower( $this->getID() ), // unique ID for the widget, has to be lowercase
$this->getName(), // Plugin name to be displayed
- $l_arr_WidgetOptions, // Optional Widget Options
- $l_arr_ControlOptions // Optional Widget Control Options
+ $l_arr_widget_options, // Optional Widget Options
+ $l_arr_control_options // Optional Widget Control Options
);
}
}
diff --git a/class/widgets/reference-container.php b/class/widgets/reference-container.php
index 96620b6..1257a6f 100644
--- a/class/widgets/reference-container.php
+++ b/class/widgets/reference-container.php
@@ -76,10 +76,10 @@ class MCI_Footnotes_Widget_ReferenceContainer extends MCI_Footnotes_Widget_Base
* @param mixed $instance
*/
public function widget( $args, $instance ) {
- global $g_obj_MCI_Footnotes;
+ global $g_obj_mci_footnotes;
// reference container positioning is set to "widget area"
if ( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION ) == 'widget' ) {
- echo $g_obj_MCI_Footnotes->a_obj_Task->ReferenceContainer();
+ echo $g_obj_mci_footnotes->a_obj_task->ReferenceContainer();
}
}
}