11<?php
22/**
33 * Venustheme
4- *
4+ *
55 * NOTICE OF LICENSE
6- *
6+ *
77 * This source file is subject to the Venustheme.com license that is
88 * available through the world-wide-web at this URL:
99 * http://www.venustheme.com/license-agreement.html
10- *
10+ *
1111 * DISCLAIMER
12- *
12+ *
1313 * Do not edit or add to this file if you wish to upgrade this extension to newer
1414 * version in the future.
15- *
15+ *
1616 * @category Venustheme
1717 * @package Ves_Blog
1818 * @copyright Copyright (c) 2016 Venustheme (http://www.venustheme.com/)
@@ -94,10 +94,6 @@ public function __construct(
9494 */
9595 protected function _prepareForm ()
9696 {
97- $ this ->_eventManager ->dispatch (
98- 'ves_check_license ' ,
99- ['obj ' => $ this ,'ex ' =>'Ves_Blog ' ]
100- );
10197 /* @var $model \Magento\Cms\Model\Page */
10298 $ model = $ this ->_coreRegistry ->registry ('current_comment ' );
10399
@@ -110,11 +106,6 @@ protected function _prepareForm()
110106 $ isElementDisabled = true ;
111107 }
112108 $ wysiwygConfig = $ this ->_wysiwygConfig ->getConfig (['tab_id ' => $ this ->getTabId ().time ()]);
113- if (!$ this ->getData ('is_valid ' ) && !$ this ->getData ('local_valid ' )) {
114- $ isElementDisabled = true ;
115- $ wysiwygConfig ['enabled ' ] = $ wysiwygConfig ['add_variables ' ] = $ wysiwygConfig ['add_widgets ' ] = $ wysiwygConfig ['add_images ' ] = 0 ;
116- $ wysiwygConfig ['plugins ' ] = [];
117- }
118109
119110 /** @var \Magento\Framework\Data\Form $form */
120111 $ form = $ this ->_formFactory ->create ();
@@ -184,9 +175,9 @@ protected function _prepareForm()
184175 );
185176
186177 $ dateFormat = $ this ->_localeDate ->getDateFormat (\IntlDateFormatter::SHORT );
187- $ fieldset ->addField ( 'creation_time ' ,
178+ $ fieldset ->addField ( 'creation_time ' ,
188179 'date ' ,
189- [
180+ [
190181 'label ' => __ ('Created On ' ),
191182 'title ' => __ ('Created on ' ),
192183 'name ' => 'creation_time ' ,
@@ -195,7 +186,7 @@ protected function _prepareForm()
195186 'disabled ' => $ isElementDisabled
196187 ]
197188 );
198-
189+
199190
200191 $ contentField = $ fieldset ->addField (
201192 'content ' ,
0 commit comments