@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Flynt\Components\FeaturePasswordForm; |
| 4 | 4 | |
| 5 | 5 | use Timber\Timber; |
| 6 | -use Timber\Post; |
|
| 7 | 6 | |
| 8 | 7 | add_filter('the_password_form', function ($output) { |
| 9 | 8 | $context = Timber::get_context(); |
@@ -4,8 +4,6 @@ |
||
| 4 | 4 | */ |
| 5 | 5 | namespace Flynt\YoutubeNoCookieEmbed; |
| 6 | 6 | |
| 7 | -use Flynt\Utils\Oembed; |
|
| 8 | - |
|
| 9 | 7 | add_action('oembed_result', 'Flynt\YoutubeNoCookieEmbed\setNoCookieDomain', 10, 2); |
| 10 | 8 | add_filter('embed_oembed_html', 'Flynt\YoutubeNoCookieEmbed\setNoCookieDomain', 10, 2); |
| 11 | 9 | |
@@ -14,12 +14,18 @@ |
||
| 14 | 14 | Defaults::init(); |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string $componentName |
|
| 19 | + */ |
|
| 17 | 20 | public static function registerComponent($componentName, $componentPath = null) |
| 18 | 21 | { |
| 19 | 22 | $componentManager = ComponentManager::getInstance(); |
| 20 | 23 | $componentManager->registerComponent($componentName, $componentPath); |
| 21 | 24 | } |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @param string $componentBasePath |
|
| 28 | + */ |
|
| 23 | 29 | public static function registerComponentsFromPath($componentBasePath) |
| 24 | 30 | { |
| 25 | 31 | foreach (glob("{$componentBasePath}/*", GLOB_ONLYDIR) as $componentPath) { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Flynt\Defaults; |
| 6 | 6 | use Flynt\ComponentManager; |
| 7 | -use Flynt\Utils\Feature; |
|
| 8 | 7 | use Dflydev\DotAccessData\Data; |
| 9 | 8 | |
| 10 | 9 | class Api |