esc_html__( 'General Settings', '0-day-analytics' ),
'id' => 'general-settings-tab',
'type' => 'tab-title',
)
);
// Markup used.
Settings::build_option(
array(
'title' => esc_html__( 'Markup', '0-day-analytics' ),
'id' => 'markup-format-settings',
'type' => 'header',
)
);
Settings::build_option(
array(
'title' => esc_html__( 'Markup', '0-day-analytics' ),
'id' => 'markup-format-settings',
'type' => 'hint',
'hint' => esc_html__( 'How the markup should be represented in the documents', '0-day-analytics' ) . '
' . esc_html__( 'Changing the following settings will change functionality in a way which may stop footnotes from displaying correctly. For footnotes to work as expected after updating these settings, you will need to manually update all existing posts with footnotes.', '0-day-analytics' ) . '
',
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Open footnote tag', '0-day-analytics' ),
'id' => 'footnotes_open',
'type' => 'text',
'default' => Settings::get_current_options()['footnotes_open'],
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Close footnote tag', '0-day-analytics' ),
'id' => 'footnotes_close',
'type' => 'text',
'default' => Settings::get_current_options()['footnotes_close'],
)
);
Settings::build_option(
array(
'type' => 'hint',
'hint' => '' . esc_html__( 'Example:', '0-day-analytics' ) . '' . esc_html__( '"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', '0-day-analytics' ) . Settings::get_current_options()['footnotes_open'] . '' . esc_html__( 'Text of your footnote goes between these tags.', '0-day-analytics' ) . Settings::get_current_options()['footnotes_close']
. '"
',
)
);
// Identifier settings begin.
Settings::build_option(
array(
'title' => esc_html__( 'Identifier', '0-day-analytics' ),
'id' => 'identifier-format-settings',
'type' => 'header',
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Type', '0-day-analytics' ),
'id' => 'list_style_type',
'type' => 'radio',
'hint' => esc_html__( 'How the footnotes will be represented', '0-day-analytics' ),
'toggle' => array(
'' => '',
'symbol' => '#list_style_symbol-item',
),
'options' => Footnotes_Formatter::get_styles(),
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Symbol', '0-day-analytics' ),
'id' => 'list_style_symbol',
'class' => 'list_style_type',
'type' => 'text',
'default' => Settings::get_default_options()['list_style_symbol'],
'hint' => esc_html__( 'Preview: ', '0-day-analytics' ) .
'' . html_entity_decode( Settings::get_current_options()['list_style_symbol'] ) . '',
)
);
Footnotes_Formatter::insert_styles();
?>
' . Settings::get_current_options()['backlink'] . '' . Settings::get_current_options()['post_backlink'] . '';
ob_start();
?>
'hint',
'hint' => '' . esc_html__( 'Example:', '0-day-analytics' ) . '' .
$footnote_example
. '
',
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Show identifier as superscript', '0-day-analytics' ),
'id' => 'superscript',
'type' => 'checkbox',
)
);
$id_replace = '';
if ( Settings::get_current_options()['superscript'] ) {
$id_replace = '' . $id_replace . '';
}
Settings::build_option(
array(
'type' => 'hint',
'hint' => '' . esc_html__( 'Example:', '0-day-analytics' ) . '' . esc_html__( '"Lorem ipsum dolor sit amet', '0-day-analytics' ) . '' . $id_replace . '' . esc_html__( ', consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', '0-day-analytics' ) . '"
',
)
);
// Before identifiers.
$id_replace = '' . Settings::get_current_options()['pre_identifier'] . '' . Settings::get_current_options()['post_identifier'] . '';
if ( Settings::get_current_options()['superscript'] ) {
$id_replace = '' . $id_replace . '';
}
Settings::build_option(
array(
'title' => esc_html__( 'Before identifiers', '0-day-analytics' ),
'id' => 'before-identifier-format-settings',
'type' => 'header',
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Pre identifier', '0-day-analytics' ),
'id' => 'pre_identifier',
'type' => 'text',
'default' => Settings::get_current_options()['pre_identifier'],
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Inner pre identifier', '0-day-analytics' ),
'id' => 'inner_pre_identifier',
'type' => 'text',
'default' => Settings::get_current_options()['inner_pre_identifier'],
)
);
Settings::build_option(
array(
'type' => 'hint',
'hint' => '' . esc_html__( 'Example:', '0-day-analytics' ) . '"' . esc_html__( 'Lorem ipsum dolor sit amet', '0-day-analytics' ) . '' . $id_replace . '' . esc_html__( ', consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', '0-day-analytics' ) . '"
',
)
);
// After identifiers.
Settings::build_option(
array(
'title' => esc_html__( 'Post identifiers', '0-day-analytics' ),
'id' => 'post-identifier-format-settings',
'type' => 'header',
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Post identifier', '0-day-analytics' ),
'id' => 'post_identifier',
'type' => 'text',
'default' => Settings::get_current_options()['post_identifier'],
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Inner post identifier', '0-day-analytics' ),
'id' => 'inner_post_identifier',
'type' => 'text',
'default' => Settings::get_current_options()['inner_post_identifier'],
)
);
Settings::build_option(
array(
'type' => 'hint',
'hint' => '' . esc_html__( 'Example:', '0-day-analytics' ) . '"' . esc_html__( 'Lorem ipsum dolor sit amet', '0-day-analytics' ) . '' . $id_replace . '' . esc_html__( ', consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', '0-day-analytics' ) . '"
',
)
);
// Back link.
Settings::build_option(
array(
'title' => esc_html__( 'Back link', '0-day-analytics' ),
'id' => 'before-identifier-format-settings',
'type' => 'header',
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Open back link tag', '0-day-analytics' ),
'id' => 'pre_backlink',
'type' => 'text',
'default' => Settings::get_current_options()['pre_backlink'],
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Close back link tag', '0-day-analytics' ),
'id' => 'post_backlink',
'type' => 'text',
'default' => Settings::get_current_options()['post_backlink'],
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Back link symbol', '0-day-analytics' ),
'id' => 'backlink',
'type' => 'text',
'default' => Settings::get_current_options()['backlink'],
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Show backlink in the beginning of the footnote', '0-day-analytics' ),
'id' => 'position_before_footnote',
'type' => 'checkbox',
)
);
Settings::build_option(
array(
'type' => 'hint',
'hint' => '' . esc_html__( 'Example:', '0-day-analytics' ) . '' .
$footnote_example
. '
',
)
);
// Back link title.
Settings::build_option(
array(
'title' => esc_html__( 'Back link title', '0-day-analytics' ),
'id' => 'backlink-general-settings',
'type' => 'header',
)
);
Settings::build_option(
array(
'name' => esc_html__( 'Title to show on the backlinks', '0-day-analytics' ),
'id' => 'back_link_title',
'type' => 'text',
'default' => Settings::get_current_options()['back_link_title'],
'hint' => '' . esc_html__( 'Options:', '0-day-analytics' ) . '' . esc_html__( 'Add "###" (without the quotes) to include the footnote number.', '0-day-analytics' ) . '
',
)
);