public function __construct($data = array())
 {
     parent::__construct($data);
     if (!class_exists('RevSlider')) {
         $this->setErrors(array(__('Revolution Slider plugin is not installed. The plugin comes with this theme\'s downloaded files. Please install it to use the element', 'gummfw')));
     }
 }
Пример #2
0
    public function contentEditor()
    {
        echo '<div class="gumm-editor-google-maps">' . "\n";
        parent::contentEditor();
        echo '</div>' . "\n";
        $this->scriptBlockStart();
        ?>
        $('#<?php 
        echo $this->mapCanvasId;
        ?>
').gummGoogleMap({
            editor: '.gumm-editor-google-maps',
            width: '100%',
            height: 300,
            useEditorInputsToInit: true,
            controls: {
                pan: false,
                scale: false,
                streetView: false,
                overviewMap: false
            }
        });
<?php 
        $this->scriptBlockEnd();
    }
Пример #3
0
 public function __construct($data = array())
 {
     parent::__construct($data);
     $this->layoutsAvailable['blog-medium-image'] = __('Medium Image Layout', 'gummfw');
 }