Replace args with string literal
This commit is contained in:
parent
1371c19f4d
commit
663ff8e350
4 changed files with 271 additions and 271 deletions
|
@ -45,7 +45,7 @@ class MCI_Footnotes_Layout_Diagnostics extends MCI_Footnotes_Layout_Engine {
|
|||
* @return string
|
||||
*/
|
||||
protected function getSubPageTitle() {
|
||||
return __( 'Diagnostics', MCI_Footnotes_Config::C_STR_PLUGIN_NAME );
|
||||
return __( 'Diagnostics', 'footnotes' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -57,7 +57,7 @@ class MCI_Footnotes_Layout_Diagnostics extends MCI_Footnotes_Layout_Engine {
|
|||
*/
|
||||
protected function getSections() {
|
||||
return array(
|
||||
$this->addSection( 'diagnostics', __( 'Diagnostics', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), null, false ),
|
||||
$this->addSection( 'diagnostics', __( 'Diagnostics', 'footnotes' ), null, false ),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ class MCI_Footnotes_Layout_Diagnostics extends MCI_Footnotes_Layout_Engine {
|
|||
*/
|
||||
protected function getMetaBoxes() {
|
||||
return array(
|
||||
$this->addMetaBox( 'diagnostics', 'diagnostics', __( 'Displays information about the web server, PHP and WordPress', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 'Diagnostics' ),
|
||||
$this->addMetaBox( 'diagnostics', 'diagnostics', __( 'Displays information about the web server, PHP and WordPress', 'footnotes' ), 'Diagnostics' ),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -107,28 +107,28 @@ class MCI_Footnotes_Layout_Diagnostics extends MCI_Footnotes_Layout_Engine {
|
|||
// replace all placeholders
|
||||
$l_obj_template->replace(
|
||||
array(
|
||||
'label-server' => __( 'Server name', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'label-server' => __( 'Server name', 'footnotes' ),
|
||||
'server' => $_SERVER['SERVER_NAME'],
|
||||
|
||||
'label-php' => __( 'PHP version', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'label-php' => __( 'PHP version', 'footnotes' ),
|
||||
'php' => phpversion(),
|
||||
|
||||
'label-user-agent' => __( 'User agent', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'label-user-agent' => __( 'User agent', 'footnotes' ),
|
||||
'user-agent' => $_SERVER['HTTP_USER_AGENT'],
|
||||
|
||||
'label-max-execution-time' => __( 'Max execution time', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'max-execution-time' => ini_get( 'max_execution_time' ) . ' ' . __( 'seconds', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'label-max-execution-time' => __( 'Max execution time', 'footnotes' ),
|
||||
'max-execution-time' => ini_get( 'max_execution_time' ) . ' ' . __( 'seconds', 'footnotes' ),
|
||||
|
||||
'label-memory-limit' => __( 'Memory limit', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'label-memory-limit' => __( 'Memory limit', 'footnotes' ),
|
||||
'memory-limit' => ini_get( 'memory_limit' ),
|
||||
|
||||
'label-php-extensions' => __( 'PHP extensions', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'label-php-extensions' => __( 'PHP extensions', 'footnotes' ),
|
||||
'php-extensions' => $l_str_php_extensions,
|
||||
|
||||
'label-wordpress' => __( 'WordPress version', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'label-wordpress' => __( 'WordPress version', 'footnotes' ),
|
||||
'wordpress' => $wp_version,
|
||||
|
||||
'label-theme' => __( 'Active Theme', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'label-theme' => __( 'Active Theme', 'footnotes' ),
|
||||
'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_wordpress_plugins,
|
||||
|
|
|
@ -286,7 +286,7 @@ abstract class MCI_Footnotes_Layout_Engine {
|
|||
echo '</h2><br/>';
|
||||
|
||||
if ( $l_bool_settings_updated ) {
|
||||
echo sprintf( '<div id="message" class="updated">%s</div>', __( 'Settings saved', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) );
|
||||
echo sprintf( '<div id="message" class="updated">%s</div>', __( 'Settings saved', 'footnotes' ) );
|
||||
}
|
||||
|
||||
// form to submit the active section
|
||||
|
|
|
@ -101,14 +101,14 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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', 'footnotes' ), 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', 'footnotes' ), 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', 'footnotes' ), 2, true );
|
||||
$l_arr_tabs[] = $this->addSection( 'customcss', __( 'Custom CSS', 'footnotes' ), 3, true );
|
||||
$l_arr_tabs[] = $this->addSection( 'how-to', __( 'Quick start guide', 'footnotes' ), null, false );
|
||||
|
||||
return $l_arr_tabs;
|
||||
}
|
||||
|
@ -139,35 +139,35 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$l_arr_meta_boxes = array();
|
||||
|
||||
// sync box name with mirror in task.php:
|
||||
$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', 'start-end', __( 'Footnote start and end short codes', 'footnotes' ), 'StartEnd' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'numbering', __( 'Footnotes numbering', 'footnotes' ), 'Numbering' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'scrolling', __( 'Scrolling behavior', 'footnotes' ), 'Scrolling' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'reference-container', __( 'Reference container', 'footnotes' ), 'ReferenceContainer' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'excerpts', __( 'Footnotes in excerpts', 'footnotes' ), '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_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' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'hyperlink-arrow', __( 'Backlink symbol', 'footnotes' ), 'HyperlinkArrow' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'superscript', __( 'Referrer typesetting and formatting', 'footnotes' ), 'Superscript' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box', __( 'Tooltips', 'footnotes' ), 'MouseOverBox' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-position', __( 'Tooltip position', 'footnotes' ), 'MouseOverBoxPosition' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-dimensions', __( 'Tooltip dimensions', 'footnotes' ), 'MouseOverBoxDimensions' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-timing', __( 'Tooltip timing', 'footnotes' ), 'MouseOverBoxTiming' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-truncation', __( 'Tooltip truncation', 'footnotes' ), 'MouseOverBoxTruncation' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-text', __( 'Tooltip text', 'footnotes' ), 'MouseOverBoxText' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'customize', 'mouse-over-box-appearance', __( 'Tooltip appearance', 'footnotes' ), '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_meta_boxes[] = $this->add_meta_box( 'customize', 'custom-css', __( 'Your existing Custom CSS code', 'footnotes' ), 'CustomCSS' );
|
||||
}
|
||||
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( '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', 'footnotes' ), 'LookupHooks' );
|
||||
|
||||
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_meta_boxes[] = $this->add_meta_box( 'customcss', 'custom-css-migration', __( 'Your existing Custom CSS code', 'footnotes' ), 'CustomCSSMigration' );
|
||||
}
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( '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', 'footnotes' ), 'CustomCSSNew' );
|
||||
|
||||
$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' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'how-to', 'help', __( 'Brief introduction in how to use the plugin', 'footnotes' ), 'Help' );
|
||||
$l_arr_meta_boxes[] = $this->add_meta_box( 'how-to', 'donate', __( 'Help us to improve our Plugin', 'footnotes' ), 'Donate' );
|
||||
|
||||
return $l_arr_meta_boxes;
|
||||
}
|
||||
|
@ -187,60 +187,60 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
|
||||
// options for the label element:
|
||||
$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 ),
|
||||
'h4' => __( 'heading 4', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'h5' => __( 'heading 5', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'h6' => __( 'heading 6', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'p' => __( 'paragraph', 'footnotes' ),
|
||||
'h2' => __( 'heading 2', 'footnotes' ),
|
||||
'h3' => __( 'heading 3', 'footnotes' ),
|
||||
'h4' => __( 'heading 4', 'footnotes' ),
|
||||
'h5' => __( 'heading 5', 'footnotes' ),
|
||||
'h6' => __( 'heading 6', 'footnotes' ),
|
||||
);
|
||||
// options for the positioning of the reference container
|
||||
$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 ),
|
||||
'post_end' => __( 'at the end of the post', 'footnotes' ),
|
||||
'widget' => __( 'in the widget area', 'footnotes' ),
|
||||
'footer' => __( 'in the footer', 'footnotes' ),
|
||||
);
|
||||
// basic responsive page layout options:
|
||||
$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 ),
|
||||
'none' => __( 'No', 'footnotes' ),
|
||||
'reference-container' => __( 'to the reference container exclusively', 'footnotes' ),
|
||||
'entry-content' => __( 'to the div element starting below the post title', 'footnotes' ),
|
||||
'main-content' => __( 'to the main element including the post title', 'footnotes' ),
|
||||
);
|
||||
// options for the separating punctuation between backlinks:
|
||||
$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 ),
|
||||
'en_dash' => __( 'EN DASH', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'comma' => __( 'COMMA', 'footnotes' ),
|
||||
'semicolon' => __( 'SEMICOLON', 'footnotes' ),
|
||||
'en_dash' => __( 'EN DASH', 'footnotes' ),
|
||||
);
|
||||
// options for the terminating punctuation after backlinks:
|
||||
// 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(
|
||||
'period' => __( 'FULL STOP', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'period' => __( 'FULL STOP', 'footnotes' ),
|
||||
// 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 ),
|
||||
'parenthesis' => __( 'CLOSING PARENTHESIS', 'footnotes' ),
|
||||
'colon' => __( 'COLON', 'footnotes' ),
|
||||
);
|
||||
// options for the first column width (per cent is a ratio, not a unit):
|
||||
$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 ),
|
||||
'em' => __( 'em', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'vw' => __( 'viewport width', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'%' => __( 'per cent', 'footnotes' ),
|
||||
'px' => __( 'pixels', 'footnotes' ),
|
||||
'rem' => __( 'root em', 'footnotes' ),
|
||||
'em' => __( 'em', 'footnotes' ),
|
||||
'vw' => __( 'viewport width', 'footnotes' ),
|
||||
);
|
||||
// options for reference container script mode:
|
||||
$l_arr_script_mode = array(
|
||||
'jquery' => __( 'jQuery', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'js' => __( 'plain JavaScript', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'jquery' => __( 'jQuery', 'footnotes' ),
|
||||
'js' => __( 'plain JavaScript', 'footnotes' ),
|
||||
);
|
||||
// options for Yes/No select box:
|
||||
$l_arr_enabled = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -248,95 +248,95 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
// replace all placeholders
|
||||
$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 ) ),
|
||||
'label-name' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_NAME, __( 'Heading:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-element' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_LABEL_ELEMENT, __( 'Heading’s HTML element:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-border' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER, __( 'Border under the heading:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-collapse' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, __( 'Collapse by default:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-script' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE, __( 'Script mode:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-script' => __( 'The plain JavaScript mode does not support scroll animation and will enable hard links with scroll offset.', 'footnotes' ),
|
||||
|
||||
'label-position' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_POSITION, __( 'Default position:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'label-position' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_POSITION, __( 'Default position:', 'footnotes' ) ),
|
||||
'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 ), '<span style="font-style: normal;">' . __( 'at the end of the post', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) . '</span>' ),
|
||||
'notice-position' => sprintf( __( 'To use the position shortcode, please set the position to: %s', 'footnotes' ), '<span style="font-style: normal;">' . __( 'at the end of the post', 'footnotes' ) . '</span>' ),
|
||||
|
||||
'label-shortcode' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE, __( 'Position shortcode:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'label-shortcode' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE, __( 'Position shortcode:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-shortcode' => __( 'If present in the content, any shortcode in this text box will be replaced with the reference container.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-startpage' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_START_PAGE_ENABLE, __( 'Display on start page too:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-margin-top' => $this->addLabel( MCI_Footnotes_settings::C_INT_REFERENCE_CONTAINER_TOP_MARGIN, __( 'Top margin:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-margin-top' => __( 'pixels; may be negative', 'footnotes' ),
|
||||
|
||||
'label-margin-bottom' => $this->addLabel( MCI_Footnotes_settings::C_INT_REFERENCE_CONTAINER_BOTTOM_MARGIN, __( 'Bottom margin:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'label-margin-bottom' => $this->addLabel( MCI_Footnotes_settings::C_INT_REFERENCE_CONTAINER_BOTTOM_MARGIN, __( 'Bottom margin:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-margin-bottom' => __( 'pixels; may be negative', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-page-layout' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT, __( 'Apply basic responsive page layout:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-page-layout' => __( 'Most themes don’t need this fix.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-url-wrap' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTE_URL_WRAP_ENABLED, __( 'Allow URLs to line-wrap anywhere:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-url-wrap' => __( 'Unicode-conformant browsers don’t need this fix.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-symbol' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE, __( 'Display a backlink symbol:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-symbol' => __( 'Please choose or input the symbol at the top of the next dashboard tab.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-switch' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH, __( 'Symbol appended, not prepended:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-3column' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE, __( 'Backlink symbol in an extra column:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-3column' => __( 'This legacy layout is available if identical footnotes are not combined.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-row-borders' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_REFERENCE_CONTAINER_ROW_BORDERS_ENABLE, __( 'Borders around the table rows:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-separator' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_SEPARATOR_ENABLED, __( 'Add a separator when enumerating backlinks:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-separator' => __( 'Your input overrides the selection.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-terminator' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_TERMINATOR_ENABLED, __( 'Add a terminal punctuation to backlinks:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-terminator' => __( 'Your input overrides the selection.', 'footnotes' ),
|
||||
|
||||
'label-width' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_COLUMN_WIDTH_ENABLED, __( 'Set backlinks column width:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'label-width' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_COLUMN_WIDTH_ENABLED, __( 'Set backlinks column width:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-width' => __( 'Absolute width in pixels doesn’t need to be accurate to the tenth, but relative width in rem or em may.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-max-width' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_COLUMN_MAX_WIDTH_ENABLED, __( 'Set backlinks column maximum width:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-max-width' => __( 'Absolute width in pixels doesn’t need to be accurate to the tenth, but relative width in rem or em may.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-line-break' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_BACKLINKS_LINE_BREAKS_ENABLED, __( 'Stack backlinks when enumerating:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-line-break' => __( 'This option adds a line break before each added backlink when identical footnotes are combined.', 'footnotes' ),
|
||||
|
||||
'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:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-link' => __( 'The link element is needed to apply the theme’s link color.', 'footnotes' ),
|
||||
'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.', 'footnotes' ),
|
||||
)
|
||||
);
|
||||
// display template with replaced placeholders
|
||||
|
@ -375,7 +375,7 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
'[ref]' => '[ref]',
|
||||
htmlspecialchars( '<ref>' ) => htmlspecialchars( '<ref>' ),
|
||||
// Custom (user-defined) start and end tags bracketing the footnote text inline:
|
||||
'userdefined' => __( 'custom short code', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'userdefined' => __( 'custom short code', 'footnotes' ),
|
||||
);
|
||||
// footnotes end tag short code options:
|
||||
$l_arr_shortcode_end = array(
|
||||
|
@ -389,12 +389,12 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
'[/ref]' => '[/ref]',
|
||||
htmlspecialchars( '</ref>' ) => htmlspecialchars( '</ref>' ),
|
||||
// Custom (user-defined) start and end tags bracketing the footnote text inline:
|
||||
'userdefined' => __( 'custom short code', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'userdefined' => __( 'custom short code', 'footnotes' ),
|
||||
);
|
||||
// options for the syntax validation:
|
||||
$l_arr_enable = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -403,13 +403,13 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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 ),
|
||||
'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.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-short-code-start' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_START, __( 'Footnote start tag short code:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-short-code-end' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_SHORT_CODE_END, __( 'Footnote end tag short code:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
|
||||
|
@ -419,14 +419,14 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
'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 ),
|
||||
'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.', 'footnotes' ),
|
||||
|
||||
// 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 ) ),
|
||||
'label-syntax' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE, __( 'Check for balanced shortcodes:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-syntax' => __( 'In the presence of a lone start tag shortcode, a warning displays below the post title.', 'footnotes' ),
|
||||
|
||||
'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 ),
|
||||
'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.', 'footnotes' ),
|
||||
)
|
||||
);
|
||||
// display template with replaced placeholders
|
||||
|
@ -438,17 +438,17 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$l_str_space = ' ';
|
||||
// options for the combination of identical footnotes
|
||||
$l_arr_enable = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
// options for the numbering style of the footnotes:
|
||||
$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, …',
|
||||
'arabic_plain' => __( 'plain Arabic numbers', 'footnotes' ) . $l_str_space . '1, 2, 3, 4, 5, …',
|
||||
'arabic_leading' => __( 'zero-padded Arabic numbers', 'footnotes' ) . $l_str_space . '01, 02, 03, 04, 05, …',
|
||||
'latin_low' => __( 'lowercase Latin letters', 'footnotes' ) . $l_str_space . 'a, b, c, d, e, …',
|
||||
'latin_high' => __( 'uppercase Latin letters', 'footnotes' ) . $l_str_space . 'A, B, C, D, E, …',
|
||||
'romanic' => __( 'uppercase Roman numerals', 'footnotes' ) . $l_str_space . 'I, II, III, IV, V, …',
|
||||
'roman_low' => __( 'lowercase Roman numerals', 'footnotes' ) . $l_str_space . 'i, ii, iii, iv, v, …',
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -456,15 +456,15 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
// replace all placeholders
|
||||
$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 ) ),
|
||||
'label-counter-style' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_COUNTER_STYLE, __( 'Numbering style:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-identical' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_COMBINE_IDENTICAL_FOOTNOTES, __( 'Combine identical footnotes:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-identical' => __( 'This option may require copy-pasting footnotes in multiple instances.', 'footnotes' ),
|
||||
// Support for Ibid. notation added thanks to @meglio in <https://wordpress.org/support/topic/add-support-for-ibid-notation/>.
|
||||
'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 ),
|
||||
'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.', 'footnotes' ),
|
||||
)
|
||||
);
|
||||
// display template with replaced placeholders
|
||||
|
@ -475,8 +475,8 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
|
||||
// options for enabling hard links for AMP compat:
|
||||
$l_arr_enable = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -485,39 +485,39 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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 ) ),
|
||||
'label-scroll-offset' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_SCROLL_OFFSET, __( 'Scroll offset:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-scroll-offset' => __( 'per cent from the upper edge of the window', 'footnotes' ),
|
||||
|
||||
'label-scroll-duration' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_SCROLL_DURATION, __( 'Scroll duration:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'label-scroll-duration' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_SCROLL_DURATION, __( 'Scroll duration:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-scroll-duration' => __( 'milliseconds; instantly if hard links are enabled and JavaScript is disabled', 'footnotes' ),
|
||||
|
||||
// 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 ) ),
|
||||
'label-hard-links' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_HARD_LINKS_ENABLE, __( 'Enable hard links:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-hard-links' => __( 'Hard links are indispensable for AMP compatibility and allow to link to footnotes.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-footnote' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTE_FRAGMENT_ID_SLUG, __( 'Fragment identifier slug for footnotes:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-footnote' => __( 'This will show up in the address bar after clicking on a hard-linked footnote referrer.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-referrer' => $this->addLabel( MCI_Footnotes_settings::C_STR_REFERRER_FRAGMENT_ID_SLUG, __( 'Fragment identifier slug for footnote referrers:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-referrer' => __( 'This will show up in the address bar after clicking on a hard-linked backlink.', 'footnotes' ),
|
||||
|
||||
'label-separator' => $this->addLabel( MCI_Footnotes_settings::C_STR_HARD_LINK_IDS_SEPARATOR, __( 'ID separator:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'label-separator' => $this->addLabel( MCI_Footnotes_settings::C_STR_HARD_LINK_IDS_SEPARATOR, __( 'ID separator:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-separator' => __( 'May be empty or any string, for example _, - or +, to distinguish post number, container number and footnote number.', 'footnotes' ),
|
||||
|
||||
// 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 ) ),
|
||||
'label-backlink-tooltips' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_BACKLINK_TOOLTIP_ENABLE, __( 'Enable backlink tooltips:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-backlink-tooltips' => __( 'Hard backlinks get ordinary tooltips hinting to use the backbutton instead.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-backlink-tooltip-text' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_BACKLINK_TOOLTIP_TEXT, __( 'Backlink tooltip text:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-backlink-tooltip-text' => __( 'Default text is the keyboard shortcut, but you may wish to input a descriptive hint in your language.', 'footnotes' ),
|
||||
|
||||
)
|
||||
);
|
||||
|
@ -545,16 +545,16 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
// logo preceded by heart symbol:
|
||||
'text-5' => sprintf( '%s %s', MCI_Footnotes_Config::C_STR_LOVE_SYMBOL, MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ),
|
||||
// "I love Footnotes": placeholder %1$s is the 'footnotes' logogram, placeholder %2$s is a heart symbol.
|
||||
'text-1' => sprintf( __( 'I %2$s %1$s', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME, MCI_Footnotes_Config::C_STR_LOVE_SYMBOL ),
|
||||
'text-1' => sprintf( __( 'I %2$s %1$s', 'footnotes' ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME, MCI_Footnotes_Config::C_STR_LOVE_SYMBOL ),
|
||||
// "This website uses Footnotes."
|
||||
'text-6' => sprintf( __( 'This website uses %s.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ),
|
||||
'text-6' => sprintf( __( 'This website uses %s.', 'footnotes' ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ),
|
||||
// "This website uses the Footnotes plugin."
|
||||
'text-7' => sprintf( __( 'This website uses the %s plugin.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ),
|
||||
'text-7' => sprintf( __( 'This website uses the %s plugin.', 'footnotes' ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ),
|
||||
// "This website uses the awesome Footnotes plugin."
|
||||
'text-2' => sprintf( __( 'This website uses the awesome %s plugin.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ),
|
||||
'random' => __( 'randomly determined display of either mention', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'text-2' => sprintf( __( 'This website uses the awesome %s plugin.', 'footnotes' ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ),
|
||||
'random' => __( 'randomly determined display of either mention', 'footnotes' ),
|
||||
// "No display of any “Footnotes love” mention in the footer"
|
||||
'no' => sprintf( __( 'no display of any “%1$s %2$s” mention in the footer', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME, MCI_Footnotes_Config::C_STR_LOVE_SYMBOL ),
|
||||
'no' => sprintf( __( 'no display of any “%1$s %2$s” mention in the footer', 'footnotes' ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME, MCI_Footnotes_Config::C_STR_LOVE_SYMBOL ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -562,10 +562,10 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
// replace all placeholders
|
||||
$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 ) ),
|
||||
'label-love' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_LOVE, sprintf( __( 'Tell the world you’re using %s:', 'footnotes' ), 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 ) ),
|
||||
'label-no-love' => $this->addText( sprintf( __( 'Shortcode to inhibit the display of the %s mention on specific pages:', 'footnotes' ), MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME ) ),
|
||||
'no-love' => $this->addText( MCI_Footnotes_Config::C_STR_NO_LOVE_SLUG ),
|
||||
)
|
||||
);
|
||||
|
@ -588,8 +588,8 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
public function Excerpts() {
|
||||
// options for Yes/No select box:
|
||||
$l_arr_enabled = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -597,11 +597,11 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
// replace all placeholders
|
||||
$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 ) ),
|
||||
'label-excerpts' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_IN_EXCERPT, __( 'Display footnotes in excerpts:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-excerpts' => __( 'The recommended value is No.', 'footnotes' ),
|
||||
// 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 ), '<a href="https://wordpress.org/plugins/advanced-excerpt/" target="_blank">Advanced Excerpt</a>' ),
|
||||
'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.', 'footnotes' ), '<a href="https://wordpress.org/plugins/advanced-excerpt/" target="_blank">Advanced Excerpt</a>' ),
|
||||
)
|
||||
);
|
||||
// display template with replaced placeholders
|
||||
|
@ -621,35 +621,35 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
public function Superscript() {
|
||||
// options for Yes/No select box:
|
||||
$l_arr_enabled = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
// options for superscript normalize scope:
|
||||
$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 ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
'referrers' => __( 'Footnote referrers', 'footnotes' ),
|
||||
'all' => __( 'All superscript elements', 'footnotes' ),
|
||||
);
|
||||
// load template file
|
||||
$l_obj_template = new MCI_Footnotes_template( MCI_Footnotes_template::C_STR_DASHBOARD, 'customize-superscript' );
|
||||
// replace all placeholders
|
||||
$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 ) ),
|
||||
'label-superscript' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS, __( 'Display footnote referrers in superscript:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-before' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_STYLING_BEFORE, __( 'At the start of the footnote referrers:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-after' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_STYLING_AFTER, __( 'At the end of the footnote referrers:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'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-link' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_LINK_ELEMENT_ENABLED, __( 'Use the link element for referrers and backlinks:', 'footnotes' ) ),
|
||||
'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.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-normalize' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT, __( 'Normalize vertical alignment and font size:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-normalize' => __( 'Most themes don’t need this fix.', 'footnotes' ),
|
||||
)
|
||||
);
|
||||
// display template with replaced placeholders
|
||||
|
@ -669,8 +669,8 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
public function MouseOverBox() {
|
||||
// options for Yes/No select box:
|
||||
$l_arr_enabled = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -679,15 +679,15 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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 ) ),
|
||||
'label-enable' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED, __( 'Display tooltips:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-enable' => __( 'Formatted text boxes allowing hyperlinks, displayed on mouse-over or tap and hold.', 'footnotes' ),
|
||||
|
||||
'label-alternative' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE, __( 'Display alternative tooltips:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'label-alternative' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE, __( 'Display alternative tooltips:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-alternative' => __( 'Intended to work around a configuration-related tooltip outage.', 'footnotes' ),
|
||||
// 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 ), '<span style="font-style: normal;">' . MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME . '</span>' ),
|
||||
'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.', 'footnotes' ), '<span style="font-style: normal;">' . MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME . '</span>' ),
|
||||
|
||||
)
|
||||
);
|
||||
|
@ -699,21 +699,21 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
|
||||
// options for the Mouse-over box position
|
||||
$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 ),
|
||||
'center right' => __( 'center right', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'bottom right' => __( 'bottom right', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'bottom center' => __( 'bottom center', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'bottom left' => __( 'bottom left', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'center left' => __( 'center left', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'top left' => __( 'top left', 'footnotes' ),
|
||||
'top center' => __( 'top center', 'footnotes' ),
|
||||
'top right' => __( 'top right', 'footnotes' ),
|
||||
'center right' => __( 'center right', 'footnotes' ),
|
||||
'bottom right' => __( 'bottom right', 'footnotes' ),
|
||||
'bottom center' => __( 'bottom center', 'footnotes' ),
|
||||
'bottom left' => __( 'bottom left', 'footnotes' ),
|
||||
'center left' => __( 'center left', 'footnotes' ),
|
||||
);
|
||||
// options for the alternative Mouse-over box position
|
||||
$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 ),
|
||||
'bottom left' => __( 'bottom left', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'top left' => __( 'top left', 'footnotes' ),
|
||||
'top right' => __( 'top right', 'footnotes' ),
|
||||
'bottom right' => __( 'bottom right', 'footnotes' ),
|
||||
'bottom left' => __( 'bottom left', 'footnotes' ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -722,20 +722,20 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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 ) ),
|
||||
'label-position' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_POSITION, __( 'Position:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-position' => __( 'The second column of settings boxes is for the alternative tooltips.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-offset-x' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X, __( 'Horizontal offset:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-offset-x' => __( 'pixels; negative value for a leftwards offset; alternative tooltips: direction depends on position', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-offset-y' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y, __( 'Vertical offset:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-offset-y' => __( 'pixels; negative value for an upwards offset; alternative tooltips: direction depends on position', 'footnotes' ),
|
||||
|
||||
)
|
||||
);
|
||||
|
@ -751,10 +751,10 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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 ) ),
|
||||
'label-max-width' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH, __( 'Maximum width:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'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.', 'footnotes' ),
|
||||
|
||||
)
|
||||
);
|
||||
|
@ -770,21 +770,21 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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 ) ),
|
||||
'label-fade-in-delay' => $this->addLabel( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DELAY, __( 'Fade-in delay:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-fade-in-delay' => __( 'milliseconds', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-fade-in-duration' => $this->addLabel( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DURATION, __( 'Fade-in duration:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-fade-in-duration' => __( 'milliseconds', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-fade-out-delay' => $this->addLabel( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DELAY, __( 'Fade-out delay:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-fade-out-delay' => __( 'milliseconds', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-fade-out-duration' => $this->addLabel( MCI_Footnotes_settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DURATION, __( 'Fade-out duration:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-fade-out-duration' => __( 'milliseconds', 'footnotes' ),
|
||||
|
||||
)
|
||||
);
|
||||
|
@ -795,8 +795,8 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
public function MouseOverBoxTruncation() {
|
||||
// options for Yes/No select box:
|
||||
$l_arr_enabled = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -805,15 +805,15 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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 ) ),
|
||||
'label-truncation' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED, __( 'Truncate the note in the tooltip:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'label-max-length' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH, __( 'Maximum number of characters in the tooltip:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-max-length' => __( 'No weird cuts.', 'footnotes' ),
|
||||
|
||||
'label-readon' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_READON_LABEL, __( '‘Read on’ button label:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'label-readon' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_READON_LABEL, __( '‘Read on’ button label:', 'footnotes' ) ),
|
||||
'readon' => $this->addTextBox( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_READON_LABEL ),
|
||||
|
||||
)
|
||||
|
@ -825,8 +825,8 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
public function MouseOverBoxText() {
|
||||
// options for Yes/No select box:
|
||||
$l_arr_enabled = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -835,21 +835,21 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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 ),
|
||||
'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.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-delimiter' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER, __( 'Delimiter for dedicated tooltip text:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-delimiter' => __( 'If the delimiter shortcode is present, the tooltip text will be the part before it.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-mirror' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_ENABLE, __( 'Mirror the tooltip in the reference container:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-mirror' => __( 'Tooltips may be harder to use on mobiles. This option allows to read it in the reference container.', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-separator' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_SEPARATOR, __( 'Separator between tooltip text and footnote text:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-separator' => __( 'May be a simple space, or a line break <br />, or any string in your language.', 'footnotes' ),
|
||||
|
||||
'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 ),
|
||||
'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.', 'footnotes' ),
|
||||
|
||||
)
|
||||
);
|
||||
|
@ -860,18 +860,18 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
public function MouseOverBoxAppearance() {
|
||||
// options for Yes/No select box:
|
||||
$l_arr_enabled = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
// options for the font size unit:
|
||||
$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 ),
|
||||
'pt' => __( 'points', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'pc' => __( 'picas', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'mm' => __( 'millimeters', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'%' => __( 'per cent', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'em' => __( 'em', 'footnotes' ),
|
||||
'rem' => __( 'rem', 'footnotes' ),
|
||||
'px' => __( 'pixels', 'footnotes' ),
|
||||
'pt' => __( 'points', 'footnotes' ),
|
||||
'pc' => __( 'picas', 'footnotes' ),
|
||||
'mm' => __( 'millimeters', 'footnotes' ),
|
||||
'%' => __( 'per cent', 'footnotes' ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -880,39 +880,39 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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 ) ),
|
||||
'label-font-size' => $this->addLabel( MCI_Footnotes_settings::C_BOOL_MOUSE_OVER_BOX_FONT_SIZE_ENABLED, __( 'Set font size:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-font-size' => __( 'By default, the font size is set to equal the surrounding text.', 'footnotes' ),
|
||||
|
||||
'label-color' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR, __( 'Text color:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'label-color' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR, __( 'Text color:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'notice-color' => sprintf( __( 'To use the current theme’s default text color: %s', 'footnotes' ), __( 'Clear or leave empty.', 'footnotes' ) ),
|
||||
|
||||
'label-background' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND, __( 'Background color:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'label-background' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND, __( 'Background color:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'notice-background' => sprintf( __( 'To use the current theme’s default background color: %s', 'footnotes' ), __( 'Clear or leave empty.', 'footnotes' ) ),
|
||||
|
||||
'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 ) ),
|
||||
'label-border-width' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH, __( 'Border width:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-border-width' => __( 'pixels; 0 for borderless', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-border-color' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR, __( 'Border color:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'notice-border-color' => sprintf( __( 'To use the current theme’s default border color: %s', 'footnotes' ), __( 'Clear or leave empty.', 'footnotes' ) ),
|
||||
|
||||
'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 ) ),
|
||||
'label-border-radius' => $this->addLabel( MCI_Footnotes_settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS, __( 'Rounded corner radius:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-border-radius' => __( 'pixels; 0 for sharp corners', 'footnotes' ),
|
||||
|
||||
'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 ) ),
|
||||
'label-box-shadow-color' => $this->addLabel( MCI_Footnotes_settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR, __( 'Box shadow color:', 'footnotes' ) ),
|
||||
'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 ) ),
|
||||
'notice-box-shadow-color' => sprintf( __( 'To use the current theme’s default box shadow color: %s', 'footnotes' ), __( 'Clear or leave empty.', 'footnotes' ) ),
|
||||
|
||||
)
|
||||
);
|
||||
|
@ -941,11 +941,11 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
// replace all placeholders
|
||||
$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 ) ),
|
||||
'label-symbol' => $this->addLabel( MCI_Footnotes_settings::C_STR_HYPERLINK_ARROW, __( 'Select or input the backlink symbol:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'notice-symbol' => __( 'Your input overrides the selection.', 'footnotes' ),
|
||||
'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.', 'footnotes' ),
|
||||
)
|
||||
);
|
||||
// display template with replaced placeholders
|
||||
|
@ -974,9 +974,9 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
// replace all placeholders
|
||||
$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 ) ),
|
||||
'label-css' => $this->addLabel( MCI_Footnotes_settings::C_STR_CUSTOM_CSS, __( 'Your existing Custom CSS code:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'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.', 'footnotes' ),
|
||||
|
||||
// CSS classes are listed in the template.
|
||||
// Localized notices are dropped to ease translators’ task.
|
||||
|
@ -1002,8 +1002,8 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
|
||||
// options for Yes/No select box:
|
||||
$l_arr_enabled = array(
|
||||
'yes' => __( 'Yes', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'no' => __( 'No', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'yes' => __( 'Yes', 'footnotes' ),
|
||||
'no' => __( 'No', 'footnotes' ),
|
||||
);
|
||||
|
||||
// load template file
|
||||
|
@ -1011,15 +1011,15 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
// replace all placeholders
|
||||
$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 ) ),
|
||||
'label-css' => $this->addLabel( MCI_Footnotes_settings::C_STR_CUSTOM_CSS, __( 'Your existing Custom CSS code:', 'footnotes' ) ),
|
||||
'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 ),
|
||||
'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.', 'footnotes' ),
|
||||
|
||||
'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 ),
|
||||
'notice-show-legacy' => __( 'Please set to No when you are done migrating, for the legacy Custom CSS containers to disappear.', 'footnotes' ),
|
||||
// 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 ) ),
|
||||
'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.', 'footnotes' ), __( 'Referrers and tooltips', 'footnotes' ) ),
|
||||
|
||||
)
|
||||
);
|
||||
|
@ -1035,7 +1035,7 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
array(
|
||||
'css' => $this->addTextArea( MCI_Footnotes_settings::C_STR_CUSTOM_CSS_NEW ),
|
||||
|
||||
'headline' => $this->addText( __( 'Recommended CSS classes:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ) ),
|
||||
'headline' => $this->addText( __( 'Recommended CSS classes:', 'footnotes' ) ),
|
||||
|
||||
)
|
||||
);
|
||||
|
@ -1070,15 +1070,15 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
$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 ),
|
||||
'description-2' => sprintf( __( 'For the_content, this figure must be lower than %1$d so that certain strings added by a plugin running at %1$d may not be mistaken as a footnote. This makes also sure that the reference container displays above a feature inserted by a plugin running at %2$d.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), 99, 1200 ),
|
||||
'description-3' => sprintf( __( '%1$d is lowest priority, %2$d is highest. To set priority level to lowest, set it to %3$d, interpreted as %1$d, the constant %4$s.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ), PHP_INT_MAX, 0, -1, 'PHP_INT_MAX' ),
|
||||
'description-4' => __( 'The widget_text hook must be enabled either when footnotes are present in theme text widgets, or when Elementor accordions or toggles shall have a reference container per section. If they should not, this hook must be disabled.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'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.', 'footnotes' ),
|
||||
'description-2' => sprintf( __( 'For the_content, this figure must be lower than %1$d so that certain strings added by a plugin running at %1$d may not be mistaken as a footnote. This makes also sure that the reference container displays above a feature inserted by a plugin running at %2$d.', 'footnotes' ), 99, 1200 ),
|
||||
'description-3' => sprintf( __( '%1$d is lowest priority, %2$d is highest. To set priority level to lowest, set it to %3$d, interpreted as %1$d, the constant %4$s.', 'footnotes' ), PHP_INT_MAX, 0, -1, 'PHP_INT_MAX' ),
|
||||
'description-4' => __( 'The widget_text hook must be enabled either when footnotes are present in theme text widgets, or when Elementor accordions or toggles shall have a reference container per section. If they should not, this hook must be disabled.', 'footnotes' ),
|
||||
|
||||
'head-hook' => __( 'WordPress hook function name', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'head-checkbox' => __( 'Activate', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'head-numbox' => __( 'Priority level', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'head-url' => __( 'WordPress documentation', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'head-hook' => __( 'WordPress hook function name', 'footnotes' ),
|
||||
'head-checkbox' => __( 'Activate', 'footnotes' ),
|
||||
'head-numbox' => __( 'Priority level', 'footnotes' ),
|
||||
'head-url' => __( 'WordPress documentation', 'footnotes' ),
|
||||
|
||||
'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 ),
|
||||
|
@ -1140,17 +1140,17 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
// replace all placeholders
|
||||
$l_obj_template->replace(
|
||||
array(
|
||||
'label-start' => __( 'Start your footnote with the following short code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'label-start' => __( 'Start your footnote with the following short code:', 'footnotes' ),
|
||||
'start' => $l_arr_footnote_starting_tag['value'],
|
||||
|
||||
'label-end' => __( '…and end your footnote with this short code:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'label-end' => __( '…and end your footnote with this short code:', 'footnotes' ),
|
||||
'end' => $l_arr_footnote_ending_tag['value'],
|
||||
|
||||
'example-code' => $l_str_example,
|
||||
'example-string' => '<br/>' . __( 'will be displayed as:', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'example-string' => '<br/>' . __( 'will be displayed as:', 'footnotes' ),
|
||||
'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 ), '<a href="http://wordpress.org/support/plugin/footnotes" target="_blank" class="footnote_plugin">', '</a>' ),
|
||||
'information' => sprintf( __( 'For further information please check out our %1$ssupport forum%2$s on WordPress.org.', 'footnotes' ), '<a href="http://wordpress.org/support/plugin/footnotes" target="_blank" class="footnote_plugin">', '</a>' ),
|
||||
)
|
||||
);
|
||||
// call wp_head function to get the Styling of the mouse-over box
|
||||
|
@ -1171,7 +1171,7 @@ class MCI_Footnotes_layout_settings extends MCI_Footnotes_layout_engine {
|
|||
// replace all placeholders
|
||||
$l_obj_template->replace(
|
||||
array(
|
||||
'caption' => __( 'Donate now', MCI_Footnotes_Config::C_STR_PLUGIN_NAME ),
|
||||
'caption' => __( 'Donate now', 'footnotes' ),
|
||||
)
|
||||
);
|
||||
// display template with replaced placeholders
|
||||
|
|
|
@ -50,7 +50,7 @@ class MCI_Footnotes_Widget_ReferenceContainer extends MCI_Footnotes_Widget_Base
|
|||
* Edit: curly quotes 2.2.0 2020-12-12T2130+0100
|
||||
*/
|
||||
protected function getDescription() {
|
||||
return __( 'The widget defines the position of the reference container if set to “widget area”.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME );
|
||||
return __( 'The widget defines the position of the reference container if set to “widget area”.', 'footnotes' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -64,7 +64,7 @@ class MCI_Footnotes_Widget_ReferenceContainer extends MCI_Footnotes_Widget_Base
|
|||
* Edit: curly quotes 2.2.0 2020-12-12T2130+0100
|
||||
*/
|
||||
public function form( $instance ) {
|
||||
echo __( 'The widget defines the position of the reference container if set to “widget area”.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME );
|
||||
echo __( 'The widget defines the position of the reference container if set to “widget area”.', 'footnotes' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue