sommerregen / grav-plugin-shortcodes Goto Github PK
View Code? Open in Web Editor NEWThis plugin introduces shortcodes to be used as simple snippets inside a document to be rendered by Grav.
License: Other
This plugin introduces shortcodes to be used as simple snippets inside a document to be rendered by Grav.
License: Other
I installed the Shortcuts plugin manually. Got:
FilesystemIterator::__construct(/path-to-my-grav-installation/user/plugins/shortcodes/classes/shortcodes): failed to open dir: No such file or directory
And there isn't such a directory. It is named Shortcodes with capital S.
Just changing the shortcodes
to Shortcodes
in ln. 144 of user/plugin/shortcodes/classes/Shortcodes.php
makes it work (or at least to not throw an error)
Twig \ Error \ SyntaxError
An exception has been thrown during the compilation of a template ("preg_match_all(): Compilation failed: missing ) at offset 53") in "@shortcodes:C:/xampp/htdocs/????/user/pages/home".
Previous exceptions
preg_match_all(): Compilation failed: missing ) at offset 53 (2)
I've the following issue :
Server Error
Sorry, something went terribly wrong!
0 - Unexpected token "operator" of value "=" ("end of statement block" expected) in "@Shortcodes:/home/www/mobile/get-the-sdk" at line 1.
For further details please review your logs/ folder, or enable displaying of errors in your system configuration.
The page content look like this:
[Download the latest SDK](https://github.com/test/test/releases/download/v{{% embed page="/var-ios-sdkversion" %}}/sdk-V{{% embed page="/var-ios-sdkversion" %}}.zip) and unzip it.
Hello.
I have two versions of PHP, 7.3 and 8 installed. With the same web page in Grav, the one loaded with PHP8, it shows this error:
C:\xampp\htdocs\grav\user\plugins\shortcodes\classes\Autoloader.php
// Load class
if (stream_resolve_include_path($file)) {
return include_once($file);
}
return false;
}
}
return false;
}
/**
* Registers this instance as an autoloader
*
* @param bool $prepend Whether to prepend the autoloader or not
*/
public function register($prepend = false)
{
spl_autoload_register([$this, 'autoload'], false, $prepend);
}
/**
* Unregisters this instance as an autoloader
*/
public function unregister()
{
spl_autoload_unregister([$this, 'autoload']);
}
}
Arguments
"spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw"
Is this plugin compatible with PHP 8?
The plugin Shortcodes can't be configured using the new Grav's Admin Panel. For example, if we go to the settings page of the plugin (url /admin/plugins/shortcodes
) and click on Save, there's the following error:
Validation failed: options is not defined in blueprints
According to a Grav developer: "These plugins just need to get updated with appropriate blueprint files so they will work in the admin plugin."
My config: Grav v0.9.39, Admin Panel v0.4.2, Shortcodes v1.1.0
Hello,
Is there the possibility to add the option to justify text? Now, we have left, right and center alignment.
Regards,
Camps
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.