Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49785e611c | ||
|
|
c733ae69b9 | ||
|
|
48f44ab13a | ||
|
|
387483f31f | ||
|
|
85dfc1ce8c |
@@ -0,0 +1,38 @@
|
||||
name: Create Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
username: ${{ secrets.CI_USER }}
|
||||
password: ${{ secrets.CI_TOKEN }}
|
||||
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: |
|
||||
if [ "${{ github.ref_type }}" = "tag" ]; then
|
||||
echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "version=$(date +'%Y.%m.%d-%H%M')" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Create ZIP archive
|
||||
run: |
|
||||
zip -r fourthwall-store-embed.zip . -x ".git/*" ".gitea/*"
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
token: "${{ secrets.REPO_TOKEN }}"
|
||||
title: Fourthwall-store-embed Release ${{ steps.get_version.outputs.version }}
|
||||
tag_name: ${{ steps.get_version.outputs.version }}
|
||||
files: |
|
||||
fourthwall-store-embed.zip
|
||||
@@ -1,12 +1,3 @@
|
||||
# fourth-wall-embed-wp
|
||||
|
||||
A WordPress Plugin to embed a fourth wall embed.
|
||||
|
||||
### How to use the plugin
|
||||
|
||||
* Download the latest release from [releases](https://repo.anhonesthost.net/CyberCoveLLC/fourth-wall-embed-wp/releases)
|
||||
* Upload the Plugin to WordPress
|
||||
* In the WordPress Dashboard, Navigate to the Fourthwall settings page, and paste your store url.
|
||||
* On the page you want have your store displayed, add the shortcode ```[fourthwall]```
|
||||
|
||||
This is an early release of the plugin, and if you can think of things that could be improved or find any bugs, please open an issue on the repository.
|
||||
A WordPress Plugin to embed a fourth wall embed
|
||||
@@ -64,7 +64,6 @@ class fourthwall_settings {
|
||||
submit_button();
|
||||
|
||||
echo ' </form>' . "\n";
|
||||
echo ' <div><p>To use the fourthwall Embed, use the shortcode [fourthwall]</p></div>';
|
||||
echo '</div>' . "\n";
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ function fwembed_parse_html($url = null) {
|
||||
|
||||
function fwembed_shortcode( $atts ) {
|
||||
$options = get_option( 'fourthwall_settings_name' );
|
||||
$value = isset( $options['fourth_url'] ) ? $options['fourth_url'] : 'https://fourthwall.com';
|
||||
$value = isset( $options['fourth_url'] ) ? $options['fourth_url'] : 'https://latinosagainstspookyshit-shop.fourthwall.com';
|
||||
$store_html = fwembed_parse_html($value);
|
||||
$store_render = '<div class="fw-store-parent">' . PHP_EOL . $store_html . PHP_EOL . '</div>';
|
||||
return $store_render;
|
||||
|
||||
Reference in New Issue
Block a user