@@ -9,8 +9,8 @@ |
||
| 9 | 9 | $context = Timber::get_context(); |
| 10 | 10 | $post = new Post(); |
| 11 | 11 | $context['form'] = [ |
| 12 | - 'url' => site_url('/wp-login.php?action=postpass', 'login_post'), |
|
| 13 | - 'inputId' => empty($post->id) ? mt_rand() : $post->id |
|
| 12 | + 'url' => site_url('/wp-login.php?action=postpass', 'login_post'), |
|
| 13 | + 'inputId' => empty($post->id) ? mt_rand() : $post->id |
|
| 14 | 14 | ]; |
| 15 | 15 | |
| 16 | 16 | return Timber::fetch('index.twig', $context); |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * clone |
| 29 | 29 | * |
| 30 | 30 | * Prevent cloning with 'protected' keyword |
| 31 | - **/ |
|
| 31 | + **/ |
|
| 32 | 32 | protected function __clone() |
| 33 | 33 | { |
| 34 | 34 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * constructor |
| 38 | 38 | * |
| 39 | 39 | * Prevent instantiation with 'protected' keyword |
| 40 | - **/ |
|
| 40 | + **/ |
|
| 41 | 41 | protected function __construct() |
| 42 | 42 | { |
| 43 | 43 | } |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\TinyMce; |
| 4 | 4 | |
| 5 | -use Flynt\Utils\Feature; |
|
| 6 | 5 | use Flynt\Utils\Asset; |
| 7 | 6 | |
| 8 | 7 | // Load TinyMCE Settings from config file |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\BaseStyle; |
| 4 | 4 | |
| 5 | -use Timber\Timber; |
|
| 6 | -use Flynt\ComponentManager; |
|
| 7 | - |
|
| 8 | 5 | if (current_user_can('editor') || (WP_ENV !== 'production')) { |
| 9 | 6 | add_filter('init', 'Flynt\Features\BaseStyle\registerRewriteRule'); |
| 10 | 7 | add_filter('template_include', 'Flynt\Features\BaseStyle\templateInclude'); |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\YoutubeNoCookieEmbed; |
| 4 | 4 | |
| 5 | -use Flynt\Utils\Oembed; |
|
| 6 | - |
|
| 7 | 5 | add_action('oembed_result', 'Flynt\Features\YoutubeNoCookieEmbed\setNoCookieDomain', 10, 2); |
| 8 | 6 | add_filter('embed_oembed_html', 'Flynt\Features\YoutubeNoCookieEmbed\setNoCookieDomain', 10, 2); |
| 9 | 7 | |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Flynt\Features\AdminNotices\AdminNoticeManager; |
| 14 | 14 | // use Flynt\Features\CustomPostTypes\CustomPostTypeRegister; |
| 15 | 15 | use Flynt\Utils\Feature; |
| 16 | -use Flynt\Utils\FileLoader; |
|
| 17 | 16 | use Flynt\Utils\StringHelpers; |
| 18 | 17 | |
| 19 | 18 | class OptionPages |
@@ -9,16 +9,16 @@ |
||
| 9 | 9 | |
| 10 | 10 | class TwigExtensionFlynt extends Twig_Extension { |
| 11 | 11 | |
| 12 | - public function getName() { |
|
| 13 | - return 'twig_extension_flynt'; |
|
| 14 | - } |
|
| 12 | + public function getName() { |
|
| 13 | + return 'twig_extension_flynt'; |
|
| 14 | + } |
|
| 15 | 15 | |
| 16 | - public function getFunctions() { |
|
| 17 | - return array( |
|
| 16 | + public function getFunctions() { |
|
| 17 | + return array( |
|
| 18 | 18 | new Twig_SimpleFunction('renderComponent', [$this, 'renderComponent'], array('needs_environment' => true, 'needs_context' => true, 'is_safe' => array('all'))), |
| 19 | 19 | new Twig_SimpleFunction('renderFlexibleContent', [$this, 'renderFlexibleContent'], array('needs_environment' => true, 'needs_context' => true, 'is_safe' => array('all'))), |
| 20 | - ); |
|
| 21 | - } |
|
| 20 | + ); |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | 23 | public function renderFlexibleContent(Twig_Environment $env, $context, $fields, $withContext = true, $ignoreMissing = false, $sandboxed = false) |
| 24 | 24 | { |