Register base plugin for smarty views
482360
final protected function registerBasePlugins():int
    {

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'webassets',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "webassets")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'jquery',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "jquery")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'fawesome_css',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "fontawesomecss")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'fawesome_less',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "fontawesomeless")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'fawesome_scss',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "fontawesomescss")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'fawesome_fonts',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "fontawesomefonts")
        );


        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'framework_info',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "finfo")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'system_info',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "sinfo")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'bootstrap_js',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "btspjs")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'bootstrap_css',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "btspcss")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'animate_css',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "animatecss")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'css',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "css")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'js',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "js")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'css_libs',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "csslibs")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'js_libs',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "jslibs")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'css_manager',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "cssmanager")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'js_manager',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "jsmanager")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'img_manager',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "imgmanager")
        );


        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'css_iumio',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "cssiumio")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'js_iumio',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "jsiumio")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'img_iumio',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "imgiumio")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'skel',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "skel")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'util',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "util")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'route',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "route")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'taskbar',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "taskbar")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'mercure',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "mercurefile")
        );

        return (1);
    }
522442
def register_plugin(self):
        """"""
        self.main.add_dockwidget(self)
        self.findinfiles.result_browser.sig_edit_goto.connect(
                                                         self.main.editor.load)
        self.findinfiles.find_options.redirect_stdio.connect(
                                        self.main.redirect_internalshell_stdio)
        self.main.workingdirectory.refresh_findinfiles.connect(self.refreshdir)
        self.main.projects.sig_project_loaded.connect(self.set_project_path)
        self.main.projects.sig_project_closed.connect(self.unset_project_path)
        self.main.editor.open_file_update.connect(self.set_current_opened_file)

        findinfiles_action = create_action(
                                   self, _("&Find in files"),
                                   icon=ima.icon('findf'),
                                   triggered=self.switch_to_plugin,
                                   shortcut=QKeySequence(self.shortcut),
                                   context=Qt.WidgetShortcut,
                                   tip=_("Search text in multiple files"))

        self.main.search_menu_actions += [MENU_SEPARATOR, findinfiles_action]
        self.main.search_toolbar_actions += [MENU_SEPARATOR,
                                             findinfiles_action]
        self.refreshdir()
1072139
function activateWidgetExtension(app, registry) {
  registry.registerWidget({
    name: MODULE_NAME,
    version: MODULE_VERSION,
    exports: {
      DeckGLModel,
      DeckGLView
    }
  });
}
516848
protected function registerViews()
    {
        // register views within the application with the set namespace
        $this->loadViewsFrom($this->packagePath('resources/views'), 'votee');
        // allow views to be published to the storage directory
        $this->publishes([
            $this->packagePath('resources/views') => base_path('resources/views/vendor/votee'),
        ], 'views');
    }
136628
protected function registerPlugin() {
		$js = [];

		$view = $this->getView();

		CKEditorWidgetAsset::register($view);

		$id = $this->options['id'];

		$options = $this->clientOptions !== false && !empty($this->clientOptions)
			? Json::encode($this->clientOptions)
			: '{}';

		$js[] = "CKEDITOR.replace('$id', $options);";
		$js[] = "mranger.ckeditorWidget.registerOnChangeHandler('$id');";

		if (isset($this->clientOptions['filebrowserUploadUrl'])) {
			$js[] = "mranger.ckeditorWidget.registerCsrfImageUploadHandler();";
		}

		if (!empty($this->externalPlugins)) {
			$baseUrl = Yii::$app->urlManager->baseUrl;

			foreach ($this->externalPlugins as $item) {
				$pluginName = $item['name'];
				$pluginUrl = $item['url'];
				$pluginFileName = $item['fileName'];

				$js[] = "CKEDITOR.plugins.addExternal('$pluginName', '$baseUrl$pluginUrl', '$pluginFileName');";
			}
		}

		$view->registerJs(implode("\n", $js));
	}
662299
protected function registerAssets()
    {
        $view = $this->getView();
        BxSliderAsset::register($view);
        $js = '$("#' . $this->containerOptions['id'] . '").bxSlider(' . $this->getPluginOptions() . ');';
        $view->registerJs($js, $view::POS_END);

    }
322505
public function register(Container $app): void
    {
        $app[self::TEMPLATE_FOLDER] = __DIR__ . '/data/templates/';
        $app[self::CONVERTERS] = [
            '\phpDocumentor\Plugin\Scrybe\Converter\RestructuredText\ToHtml' => [Format::RST, Format::HTML],
        ];

        $app[self::FORMATS] = function () {
            return new Converter\Format\Collection();
        };

        $app[self::CONVERTER_DEFINITION_FACTORY] = function ($container) {
            return new Factory($container[self::FORMATS]);
        };

        $app[self::CONVERTER_FACTORY] = function ($container) {
            return new Converter\Factory(
                $container['converters'],
                $container['converter_definition_factory'],
                $container['monolog']
            );
        };

        $app[self::TEMPLATE_FACTORY] = function ($app) {
            return new Template\Factory(
                ['twig' => new Template\Twig($app[self::TEMPLATE_FOLDER])]
            );
        };

        $this->addCommands($app);
    }
1126085
protected function registerViews()
    {
        $location = __DIR__ . '/../resources/views';

        $this->loadViewsFrom($location, $this->shortName);

        $this->publishes([
            $location => base_path('resources/views/vendor/' . $this->shortName),
        ], 'views');
    }
1302412
public function registerViewComposerData()
    {
        View::composer(
            'avored-framework::*',
            GlobalComposer::class
        );
        View::composer(
            'avored-framework::layouts.left-nav',
            AdminNavComposer::class
        );
        View::composer(
            'avored-framework::layouts.left-nav',
            AdminNavComposer::class
        );
        View::composer(
            'avored-framework::user.user._fields',
            UserFieldsComposer::class
        );
        View::composer(
            'avored-framework::system.site-currency._fields',
            SiteCurrencyFieldsComposer::class
        );
        View::composer(
            ['avored-framework::product.category.create', 'avored-framework::product.category.edit'],
            CategoryFieldsComposer::class
        );
        View::composer(
            'avored-framework::system.admin-user._fields',
            AdminUserFieldsComposer::class
        );
        View::composer(
            'avored-framework::cms.page._fields',
            PageFieldsComposer::class
        );
        View::composer(
            'avored-framework::cms.menu.index', 
            MenuComposer::class
        );
        View::composer(
            ['avored-framework::product.create', 'avored-framework::product.edit'], 
            ProductFieldsComposer::class
        );
    }
564161
public function registerPlugin(Plugin $plugin)
    {
        try {
            $this->smarty->registerPlugin($plugin->getType(), $plugin->getName(), $plugin->getCallbackFunction(),
                $plugin->getAttribute('Cachable', true), $plugin->getAttribute('CacheAttr', null));
        } catch (\SmartyException $e) {
            throw new SmartyException($e);
        }
    }
310464
def register_plugin(self):
        """"""
        ipyconsole = self.main.ipyconsole
        treewidget = self.explorer.treewidget
        lspmgr = self.main.lspmanager

        self.main.add_dockwidget(self)
        self.explorer.sig_open_file.connect(self.main.open_file)
        self.register_widget_shortcuts(treewidget)

        treewidget.sig_delete_project.connect(self.delete_project)
        treewidget.sig_edit.connect(self.main.editor.load)
        treewidget.sig_removed.connect(self.main.editor.removed)
        treewidget.sig_removed_tree.connect(self.main.editor.removed_tree)
        treewidget.sig_renamed.connect(self.main.editor.renamed)
        treewidget.sig_renamed_tree.connect(self.main.editor.renamed_tree)
        treewidget.sig_create_module.connect(self.main.editor.new)
        treewidget.sig_new_file.connect(
            lambda t: self.main.editor.new(text=t))
        treewidget.sig_open_interpreter.connect(
            ipyconsole.create_client_from_path)
        treewidget.redirect_stdio.connect(
            self.main.redirect_internalshell_stdio)
        treewidget.sig_run.connect(
            lambda fname:
            ipyconsole.run_script(fname, osp.dirname(fname), '', False, False,
                                  False, True))

        # New project connections. Order matters!
        self.sig_project_loaded.connect(
            lambda v: self.main.workingdirectory.chdir(v))
        self.sig_project_loaded.connect(
            lambda v: self.main.set_window_title())
        self.sig_project_loaded.connect(lspmgr.reinitialize_all_clients)
        self.sig_project_loaded.connect(
            lambda v: self.main.editor.setup_open_files())
        self.sig_project_loaded.connect(self.update_explorer)
        self.sig_project_closed[object].connect(
            lambda v: self.main.workingdirectory.chdir(
                self.get_last_working_dir()))
        self.sig_project_closed.connect(
            lambda v: self.main.set_window_title())
        self.sig_project_closed.connect(lspmgr.reinitialize_all_clients)
        self.sig_project_closed.connect(
            lambda v: self.main.editor.setup_open_files())
        self.recent_project_menu.aboutToShow.connect(self.setup_menu_actions)

        self.main.pythonpath_changed()
        self.main.restore_scrollbar_position.connect(
                                               self.restore_scrollbar_position)
        self.sig_pythonpath_changed.connect(self.main.pythonpath_changed)
        self.main.editor.set_projects(self)
190996
public function registerViews()
	{
		$viewPath = base_path('resources/views/modules/course');

		$sourcePath = __DIR__.'/../Resources/views';

		$this->publishes([
			$sourcePath => $viewPath
		]);

		$this->loadViewsFrom([$viewPath, $sourcePath], 'course');
	}
1349487
public function registerAssetFiles($view)
    {
        if ($this->language !== null) {
            $this->js[] = 'langs/' . $this->language . '.min.js';
        }

        if (!empty($this->plugins)) {
            foreach ($this->plugins as $plugin => $properties) {
                if (is_string($properties)) {
                    $plugin = $properties;
                }

                if ($plugin === 'colors') {
                    $this->css[] = 'plugins/' . $plugin . '/ui/trumbowyg.' . $plugin . '.css';
                }

                $this->js[] = 'plugins/' . $plugin . '/trumbowyg.' . $plugin . '.js';
            }
        }

        parent::registerAssetFiles($view);
    }
1205461
protected function registerView()
    {
        $this->app['generate.view'] = $this->app->share(function($app)
        {
            $generator = $this->app->make('Way\Generators\Generator');

            return new ViewGeneratorCommand($generator);
        });

        $this->commands('generate.view');
    }
320041
public function registerViewFinder() {
        $this->app->bind('view.finder', function ($app) {
            $paths = $app['config']['view.paths'];

            return new FileViewFinder($app['files'], $paths);
        });
    }
872646
protected function registerScripts(\yii\web\View $view){
        if ($this->clientOptions !== false) {
            $options = empty($this->clientOptions) ? '' : Json::encode($this->clientOptions);
            $js = "jQuery('#{$this->id}').fancybox($options);";
            $view->registerJs($js , View::POS_READY);
        }
    }
1066235
public function registerViewFinder()
    {
        $this->app->bindIf('view.finder', function ($app) {
            $config = $this->app['config'];
            $paths = $config['view.paths'];
            $namespaces = $config['view.namespaces'];
            $finder = new FileViewFinder($app['files'], $paths);
            array_map([$finder, 'addNamespace'], array_keys($namespaces), $namespaces);
            return $finder;
        }, true);
        return $this;
    }