Displays the AMP compatibility mode option.
@@ -781,8 +784,7 @@ class. public amp_compat() : void - - +diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..4235972
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1,3 @@
+# These are supported funding model platforms
+
+custom: ['https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6Z6CZDW8PPBBJ']
diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml
deleted file mode 100644
index 1eb8882..0000000
--- a/.github/workflows/pre-release.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-name: Pre-release Handler
-
-on:
- release:
- types: [published]
-
-jobs:
- build:
- name: Build the Plugin for pre-release
- if: "github.event.release.prerelease"
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v2
-
- - name: Install dependencies
- run: |
- composer install --no-dev --optimize-autoloader --no-progress
-
- - name: Build Plugin
- run: |
- composer run build
-
- - name: Rename dist/ folder
- run: |
- mv dist/ footnotes/
-
- - name: Create release archive
- uses: montudor/action-zip@v0.1.0
- with:
- args: zip -X -r footnotes-${{ github.event.release.tag_name }}.zip footnotes
-
- - name: Upload archive as artifact
- uses: actions/upload-artifact@v2
- with:
- name: footnotes-${{ github.event.release.tag_name }}
- path: footnotes-${{ github.event.release.tag_name }}.zip
-
- - name: Upload archive to release
- uses: JasonEtco/upload-to-release@master
- with:
- args: footnotes-${{ github.event.release.tag_name }}.zip application/zip
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
- #- name: Deploy release to Wordpress.org
- # uses: 10up/action-wordpress-plugin-deploy@stable
- # with:
- # generate-zip: true
- # env:
- # SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
- # SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
diff --git a/.github/workflows/release-handler.yml b/.github/workflows/release-handler.yml
new file mode 100644
index 0000000..eeb93f5
--- /dev/null
+++ b/.github/workflows/release-handler.yml
@@ -0,0 +1,87 @@
+# This workflow handles GitHub releases and pre-releases.
+# It builds the Plugin, zips up an archive to add to the
+# release entry on GitHub and (in the case of a full release)
+# pushes the release to the WP Plugin Directory SVN repo.
+
+name: Release Handler
+
+on:
+ release:
+ types: [published]
+
+jobs:
+ build_plugin:
+ name: Build the Plugin for pre-release
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Install dependencies
+ run: |
+ composer install --no-dev --optimize-autoloader --no-progress
+
+ - name: Build Plugin
+ run: |
+ composer run build
+
+ - name: Rename Plugin folder
+ run: |
+ mv dist/ footnotes/
+
+ - name: Upload Plugin artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: footnotes-${{ github.event.release.tag_name }}
+ path: footnotes
+
+ create_archive:
+ name: Create an archive for the release and add it to GitHub
+ runs-on: ubuntu-latest
+ needs: build_plugin
+
+ steps:
+ - name: Download Plugin artifact
+ uses: actions/download-artifact@v2
+ with:
+ name: footnotes-${{ github.event.release.tag_name }}
+
+ - name: Create release archive
+ uses: montudor/action-zip@v0.1.0
+ with:
+ args: zip -X -r footnotes-${{ github.event.release.tag_name }}.zip footnotes
+
+ #- name: Upload archive as artifact
+ # uses: actions/upload-artifact@v2
+ # with:
+ # name: footnotes-${{ github.event.release.tag_name }}
+ # path: footnotes-${{ github.event.release.tag_name }}.zip
+
+ - name: Upload archive to release
+ uses: JasonEtco/upload-to-release@master
+ with:
+ args: footnotes-${{ github.event.release.tag_name }}.zip application/zip
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ release_to_svn:
+ name: Push the release to the WordPress Plugin Directory repo.
+ if: "!github.event.release.prerelease"
+ runs-on: ubuntu-latest
+ needs: create_archive
+
+ steps:
+ - name: Download Plugin artifact
+ uses: actions/download-artifact@v2
+ with:
+ name: footnotes-${{ github.event.release.tag_name }}
+
+ - name: Deploy release to Wordpress.org
+ id: deploy
+ uses: 10up/action-wordpress-plugin-deploy@stable
+ env:
+ SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
+ SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
+ SLUG: footnotes/branches/svn-test
+ ASSETS_DIR: assets
diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml
index 4487527..c8d179c 100644
--- a/.github/workflows/snyk.yml
+++ b/.github/workflows/snyk.yml
@@ -1,6 +1,6 @@
name: Snyk
-on: push
+on: pull_request
jobs:
security:
@@ -13,7 +13,12 @@ jobs:
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/php@master
+ continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
- args: --all-projects
+ args: --all-projects --sarif-file-output=snyk.sarif
+ - name: Upload result to GitHub Code Scanning
+ uses: github/codeql-action/upload-sarif@v1
+ with:
+ sarif_file: snyk.sarif
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index 8c05b85..81a3340 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -1,40 +1,23 @@
-# Contributor Covenant Code of Conduct
+# Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
-community a harassment-free experience for everyone, regardless of age, body
-size, visible or invisible disability, ethnicity, sex characteristics, gender
-identity and expression, level of experience, education, socio-economic status,
-nationality, personal appearance, race, religion, or sexual identity
-and orientation.
+community a safe and enjoyable experience for *everyone*.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
-Examples of behavior that contributes to a positive environment for our
-community include:
+All participants in this community must abide by the following policy:
-* Demonstrating empathy and kindness toward other people
-* Being respectful of differing opinions, viewpoints, and experiences
-* Giving and gracefully accepting constructive feedback
-* Accepting responsibility and apologizing to those affected by our mistakes,
- and learning from the experience
-* Focusing on what is best not just for us as individuals, but for the
- overall community
+> Be excellent to each other
-Examples of unacceptable behavior include:
-
-* The use of sexualized language or imagery, and sexual attention or
- advances of any kind
-* Trolling, insulting or derogatory comments, and personal or political attacks
-* Public or private harassment
-* Publishing others' private information, such as a physical or email
- address, without their explicit permission
-* Other conduct which could reasonably be considered inappropriate in a
- professional setting
+Treat everyone with respect. Participate while acknowledging that everyone
+deserves to be here — and each of us has the right to enjoy our experience
+without fear. Consider what you are saying and how it would feel if it were
+said to or about you.
## Enforcement Responsibilities
@@ -52,6 +35,7 @@ decisions when appropriate.
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
+
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
@@ -59,8 +43,8 @@ representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
-reported to the community leaders responsible for enforcement at
-mark@cheret.de.
+reported to the project leader, [Mark Cheret][mailto:mark@cheret.de].
+
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
@@ -114,15 +98,10 @@ the community.
## Attribution
-This Code of Conduct is adapted from the [Contributor Covenant][homepage],
-version 2.0, available at
- Class to initialise all defined page layouts. The ID of this plugin. The ID of this plugin. Stores all Sections for the child sub-page. Stores the Hook connection string for the child sub-page. Initialize the class and set its properties. Displays the AMP compatibility mode option. Displays the Custom CSS box. Displays transitional legacy Custom CSS box. Displays the new Custom CSS box. Output the description of a section. May be overwritten in any section. Displays the content of specific sub-page. Displays all Donate button to support the developers. Displays the footnotes in excerpt setting. Returns a priority index. Displays all options for the fragment identifier configuration. Displays a short introduction to the plugin. Displays all settings for the backlink symbol. Displays the setting for the input label issue solution. Displays available Hooks to look for Footnote short codes.
@@ -128,8 +132,7 @@
@@ -573,8 +578,7 @@ class.
Tags
@@ -629,8 +634,7 @@ class.
Tags
@@ -685,8 +690,7 @@ class.
Parameters
Return values
mixed
—
-
-
+
@@ -805,8 +807,7 @@ class.
Return values
void
—
-
-
+
@@ -846,16 +847,14 @@ class.
Return values
mixed
—
-
-
+
@@ -895,24 +894,21 @@ class.
Return values
void
—
-
-
+
@@ -952,16 +948,14 @@ class.
Return values
void
—
-
-
+
@@ -1001,8 +995,7 @@ class.
Return values
void
—
-
-
+
@@ -1059,8 +1051,7 @@ class.
Return values
void
—
-
-
+
@@ -1117,16 +1107,14 @@ class.
Return values
void
—
-
-
+
@@ -1166,16 +1154,14 @@ class.
Return values
void
—
-
-
+
Return values
int
—
-
-
+
@@ -1265,16 +1250,14 @@ class.
Return values
void
—
-
-
+
@@ -1314,8 +1297,7 @@ class.
Return values
void
—
-
-
+
@@ -1372,16 +1353,14 @@ class.
Return values
void
—
-
-
+
@@ -1421,16 +1400,14 @@ class.
Return values
void
—
-
-
+
PHP_INT_MAX
instead
Displays all settings for ‘I love Footnotes’ note.
@@ -1509,8 +1486,7 @@ define -1 asPHP_INT_MAX
instead
public
love() : void
-
-
+
PHP_INT_MAX
instead
Displays enabled status for the footnotes mouse-over box.
@@ -1558,8 +1533,7 @@ define -1 asPHP_INT_MAX
instead
public
mouseover_box() : void
-
-
+
PHP_INT_MAX
instead
Displays style settings for the footnotes mouse-over box.
@@ -1607,8 +1580,7 @@ define -1 asPHP_INT_MAX
instead
public
mouseover_box_appearance() : void
-
-
+
PHP_INT_MAX
instead
Displays dimensions setting for the footnotes mouse-over box.
@@ -1656,8 +1627,7 @@ define -1 asPHP_INT_MAX
instead
public
mouseover_box_dimensions() : void
-
-
+
PHP_INT_MAX
instead
Displays position settings for the footnotes mouse-over box.
@@ -1705,8 +1674,7 @@ define -1 asPHP_INT_MAX
instead
public
mouseover_box_position() : void
-
-
+
PHP_INT_MAX
instead
Displays dedicated tooltip text settings for the footnotes mouse-over box.
@@ -1754,8 +1721,7 @@ define -1 asPHP_INT_MAX
instead
public
mouseover_box_text() : void
-
-
+
PHP_INT_MAX
instead
Displays timing settings for the footnotes mouse-over box.
@@ -1803,8 +1768,7 @@ define -1 asPHP_INT_MAX
instead
public
mouseover_box_timing() : void
-
-
+
PHP_INT_MAX
instead
Displays truncation settings for the footnotes mouse-over box.
@@ -1852,8 +1815,7 @@ define -1 asPHP_INT_MAX
instead
public
mouseover_box_truncation() : void
-
-
+
PHP_INT_MAX
instead
Displays all options for the footnotes numbering.
@@ -1901,8 +1862,7 @@ define -1 asPHP_INT_MAX
instead
public
numbering() : void
-
-
+
PHP_INT_MAX
instead
Displays all settings for the reference container.
@@ -1950,8 +1909,7 @@ define -1 asPHP_INT_MAX
instead
public
reference_container() : void
-
-
+
PHP_INT_MAX
instead
Registers all sections for a sub-page.
@@ -1999,8 +1956,7 @@ define -1 asPHP_INT_MAX
instead
public
register_sections() : void
-
-
+
PHP_INT_MAX
instead
Registers a sub-page.
@@ -2048,8 +2003,7 @@ define -1 asPHP_INT_MAX
instead
public
register_sub_page() : void
-
-
+
PHP_INT_MAX
instead
Displays all options for the scrolling behavior.
@@ -2097,8 +2050,7 @@ define -1 asPHP_INT_MAX
instead
public
scrolling() : void
-
-
+
PHP_INT_MAX
instead
Displays all options for the footnotes start and end tag short codes.
@@ -2146,8 +2097,7 @@ define -1 asPHP_INT_MAX
instead
public
start_end() : void
-
-
+
PHP_INT_MAX
instead
Displays all settings for the footnote referrers.
@@ -2195,8 +2144,7 @@ define -1 asPHP_INT_MAX
instead
public
superscript() : void
-
-
+
PHP_INT_MAX
instead
Constructs the HTML for a checkbox 'input' element.
@@ -2244,8 +2191,7 @@ define -1 asPHP_INT_MAX
instead
protected
add_checkbox(string $setting_name) : string
-
-
+
PHP_INT_MAX
instead
Constructs the HTML for a text 'input' element with the colour selection class.
@@ -2324,8 +2269,7 @@ class. protected add_color_selection(string $setting_name) : string - - +Returns the HTML tag for a 'label' element.
@@ -2412,8 +2355,7 @@ class. protected add_label(string $setting_name, string $caption) : string - - +Returns an array describing a meta box.
@@ -2500,8 +2441,7 @@ class. protected add_meta_box(string $section_id, string $id, string $title, string $callback_function_name) : array<string|int, mixed> - - +Returns an array describing a sub-page section.
@@ -2729,8 +2667,7 @@ A dashboard meta box. protected add_section(string $id, string $title, int $settings_container_index[, bool $has_submit_button = true ]) : array<string|int, mixed> - - +true
.
1.5.0
-
-
+
Returns a simple text inside a 'span' element.
@@ -2932,8 +2867,7 @@ A dashboard section. protected add_text(string $text) : string - - +Constructs the HTML for a text 'input' element.
@@ -3011,8 +2944,7 @@ A dashboard section. protected add_text_box(string $setting_name[, int $max_length = 999 ][, bool $readonly = false ][, bool $hidden = false ]) : string - - +Constructs the HTML for a 'textarea' element.
@@ -3117,8 +3048,7 @@ A dashboard section. protected add_textarea(string $setting_name) : string - - +Returns an array of all registered meta boxes for each section of the sub-page.
@@ -3196,8 +3125,7 @@ A dashboard section. protected get_meta_boxes() : array<string|int, array<string|int, mixed>> - - +Returns an array of all registered sections for the sub-page.
@@ -3267,8 +3195,7 @@ meta box array format. protected get_sections() : array<string|int, array<string|int, mixed>> - - +Returns the unique slug of the sub-page.
@@ -3337,8 +3264,7 @@ meta box array format. protected get_sub_page_slug() : string - - +Returns the title of the sub-page.
@@ -3386,8 +3311,7 @@ meta box array format. protected get_sub_page_title() : string - - +Loads a specified setting.
@@ -3435,8 +3358,7 @@ meta box array format. protected load_setting(string $setting_key_name) : array<string|int, mixed> - - +Registers all Meta boxes for a sub-page.
@@ -3599,8 +3519,7 @@ A configurable setting. private register_meta_boxes(string $parent_id) : void - - +Save all plugin settings.
@@ -3669,8 +3587,7 @@ A configurable setting. private save_settings() : bool - - +