Пример #1
0
 public function routeStartup(Zend_Controller_Request_Abstract $request)
 {
     $conf = Pimcore_Config::getSystemConfig();
     if (!$conf->outputfilters) {
         return $this->disable();
     }
     if (!$conf->outputfilters->imagedatauri) {
         return $this->disable();
     }
     //detect browser
     $browser = new Pimcore_Browser();
     $browserVersion = (int) $browser->getVersion();
     if ($browser->getBrowser() == "Firefox" && $browserVersion >= 3) {
         $this->supported = true;
     } else {
         if ($browser->getBrowser() == "Internet Explorer" && $browserVersion >= 8) {
             $this->supported = true;
         } else {
             if ($browser->getBrowser() == "Chrome" && $browserVersion >= 5) {
                 $this->supported = true;
             } else {
                 if ($browser->getBrowser() == "Safari" && $browserVersion >= 4) {
                     $this->supported = true;
                 } else {
                     return $this->disable();
                 }
             }
         }
     }
     // set cache key suffix for outputcache
     if ($this->supported) {
         $this->enabled = true;
         if (!($tags = $request->getParam("pimcore_cache_tag_suffix"))) {
             $tags = array();
         }
         $tags[] = "datauri";
         $request->setParam("pimcore_cache_tag_suffix", $tags);
     }
 }
Пример #2
0
        }
    }
} catch (Exception $e) {
}
?>

</head>
<body>

<?php 
//detect browser
$supported = false;
$browser = new Pimcore_Browser();
$browserVersion = (int) $browser->getVersion();
$platform = $browser->getPlatform();
if ($browser->getBrowser() == Pimcore_Browser::BROWSER_FIREFOX && $browserVersion >= 3) {
    $supported = true;
}
if ($browser->getBrowser() == Pimcore_Browser::BROWSER_IE && $browserVersion >= 8) {
    $supported = true;
}
if ($browser->getBrowser() == Pimcore_Browser::BROWSER_CHROME && $browserVersion >= 5) {
    $supported = true;
}
if ($browser->getBrowser() == Pimcore_Browser::BROWSER_SAFARI && $browserVersion >= 4 && $platform == Pimcore_Browser::PLATFORM_WINDOWS) {
    $supported = true;
}
$config = Pimcore_Config::getSystemConfig();
?>

<?php 
Пример #3
0
?>
    <?php 
// SCRIPT LIBRARIES
$scriptExtAdapter = "lib/ext/adapter/jquery/ext-jquery-adapter.js";
$scriptExt = "lib/ext/ext-all.js";
if (PIMCORE_DEVMODE) {
    $scriptExtAdapter = "lib/ext/adapter/jquery/ext-jquery-adapter-debug.js";
    $scriptExt = "lib/ext/ext-all-debug.js";
}
$scriptLibs = array("lib/prototype-light.js", "lib/jquery-1.7.1.min.js", "lib/jquery.color.js", $scriptExtAdapter, $scriptExt, "lib/ext-plugins/Notification/Ext.ux.Notification.js", "lib/ext-plugins/PagingTreeLoader/PagingTreeLoader.js", "lib/ext-plugins/GridRowOrder/roworder.js", "lib/ext-plugins/PimcoreFormLayout/panel.js", "lib/ext-plugins/ux/Reorderer.js", "lib/ext-plugins/ux/ColumnHeaderGroup.js", "lib/ext-plugins/ux/ToolbarReorderer.js", "lib/ext-plugins/ux/DataViewTransition.js", "lib/ext-plugins/ux/treegrid/TreeGridSorter.js", "lib/ext-plugins/ux/treegrid/TreeGridColumnResizer.js", "lib/ext-plugins/ux/treegrid/TreeGridNodeUI.js", "lib/ext-plugins/ux/treegrid/TreeGridLoader.js", "lib/ext-plugins/ux/treegrid/TreeGridColumns.js", "lib/ext-plugins/ux/treegrid/TreeGrid.js", "lib/ext-plugins/SuperBoxSelect/SuperBoxSelect.js", "lib/ext-plugins/ux/RowEditor.js", "lib/ext-plugins/ux/Spinner.js", "lib/ext-plugins/ux/SpinnerField.js", "lib/ext-plugins/ux/MultiSelect.js", "lib/ext-plugins/ux/CheckColumn.js", "lib/ext-plugins/ux/statusbar/StatusBar.js", "lib/ext-plugins/ux/Portal.js", "lib/ext-plugins/ux/PortalColumn.js", "lib/ext-plugins/ux/Portlet.js", "lib/ext-plugins/ux/gridfilters/menu/RangeMenu.js", "lib/ext-plugins/ux/gridfilters/menu/ListMenu.js", "lib/ext-plugins/ux/gridfilters/GridFilters.js", "lib/ext-plugins/ux/gridfilters/filter/Filter.js", "lib/ext-plugins/ux/gridfilters/filter/StringFilter.js", "lib/ext-plugins/ux/gridfilters/filter/DateFilter.js", "lib/ext-plugins/ux/gridfilters/filter/ListFilter.js", "lib/ext-plugins/ux/gridfilters/filter/NumericFilter.js", "lib/ext-plugins/ux/gridfilters/filter/BooleanFilter.js", "lib/ext-plugins/ux/fileuploadfield/FileUploadField.js", "lib/ckeditor/ckeditor.js", "lib/ckeditor-plugins/pimcore-image.js", "lib/ckeditor-plugins/pimcore-link.js", "lib/ext/locale/ext-lang-" . $this->language . ".js");
// browser specific lib includes
$browser = new Pimcore_Browser();
$browserVersion = (int) $browser->getVersion();
$platform = $browser->getPlatform();
// ace editor (code editor in server file explorer) is only for => IE9, FF, Chrome
if ($browser->getBrowser() == Pimcore_Browser::BROWSER_IE && $browserVersion >= 9 || $browser->getBrowser() != Pimcore_Browser::BROWSER_IE) {
    $scriptLibs[] = "lib/ace/ace-noconflict.js";
}
// PIMCORE SCRIPTS
$scripts = array("pimcore/browserfixes.js", "pimcore/libfixes.js", "lib/array_merge.js", "lib/array_merge_recursive.js", "pimcore/namespace.js", "pimcore/functions.js", "pimcore/globalmanager.js", "pimcore/helpers.js", "pimcore/user.js", "pimcore/tool/paralleljobs.js", "pimcore/tool/genericiframewindow.js", "pimcore/settings/user/panels/abstract.js", "pimcore/settings/user/panel.js", "pimcore/settings/user/usertab.js", "pimcore/settings/user/role/panel.js", "pimcore/settings/user/role/tab.js", "pimcore/settings/user/user/objectrelations.js", "pimcore/settings/user/user/settings.js", "pimcore/settings/user/workspaces.js", "pimcore/settings/user/workspace/asset.js", "pimcore/settings/user/workspace/document.js", "pimcore/settings/user/workspace/object.js", "pimcore/settings/user/role/settings.js", "pimcore/settings/profile/panel.js", "pimcore/settings/thumbnail/item.js", "pimcore/settings/thumbnail/panel.js", "pimcore/settings/videothumbnail/item.js", "pimcore/settings/videothumbnail/panel.js", "pimcore/settings/translations.js", "pimcore/settings/translation/website.js", "pimcore/settings/translation/admin.js", "pimcore/settings/properties/predefined.js", "pimcore/settings/docTypes.js", "pimcore/settings/system.js", "pimcore/settings/website.js", "pimcore/settings/staticroutes.js", "pimcore/settings/update.js", "pimcore/settings/languages.js", "pimcore/settings/redirects.js", "pimcore/settings/glossary.js", "pimcore/settings/systemlog.js", "pimcore/settings/backup.js", "pimcore/settings/recyclebin.js", "pimcore/settings/fileexplorer/file.js", "pimcore/settings/fileexplorer/explorer.js", "pimcore/settings/maintenance.js", "pimcore/settings/liveconnect.js", "pimcore/settings/robotstxt.js", "pimcore/settings/httpErrorLog.js", "pimcore/element/abstract.js", "pimcore/element/selector/selector.js", "pimcore/element/selector/abstract.js", "pimcore/element/selector/document.js", "pimcore/element/selector/asset.js", "pimcore/element/properties.js", "pimcore/element/scheduler.js", "pimcore/element/dependencies.js", "pimcore/element/notes.js", "pimcore/object/helpers/grid.js", "pimcore/object/helpers/gridConfigDialog.js", "pimcore/object/helpers/gridTabAbstract.js", "pimcore/element/selector/object.js", "pimcore/document/properties.js", "pimcore/document/document.js", "pimcore/document/page_snippet.js", "pimcore/document/edit.js", "pimcore/document/versions.js", "pimcore/document/pages/settings.js", "pimcore/document/pages/preview.js", "pimcore/document/snippets/settings.js", "pimcore/document/emails/settings.js", "pimcore/document/emails/logs.js", "pimcore/document/link.js", "pimcore/document/hardlink.js", "pimcore/document/folder.js", "pimcore/document/tree.js", "pimcore/document/snippet.js", "pimcore/document/email.js", "pimcore/document/page.js", "pimcore/document/seopanel.js", "pimcore/asset/asset.js", "pimcore/asset/unknown.js", "pimcore/asset/image.js", "pimcore/asset/document.js", "pimcore/asset/video.js", "pimcore/asset/text.js", "pimcore/asset/folder.js", "pimcore/asset/versions.js", "pimcore/asset/tree.js", "pimcore/object/helpers/edit.js", "pimcore/object/classes/class.js", "pimcore/object/class.js", "pimcore/object/classes/data/data.js", "pimcore/object/classes/data/date.js", "pimcore/object/classes/data/datetime.js", "pimcore/object/classes/data/time.js", "pimcore/object/classes/data/href.js", "pimcore/object/classes/data/image.js", "pimcore/object/classes/data/hotspotimage.js", "pimcore/object/classes/data/input.js", "pimcore/object/classes/data/numeric.js", "pimcore/object/classes/data/objects.js", "pimcore/object/classes/data/objectsMetadata.js", "pimcore/object/classes/data/nonownerobjects.js", "pimcore/object/classes/data/select.js", "pimcore/object/classes/data/user.js", "pimcore/object/classes/data/textarea.js", "pimcore/object/classes/data/wysiwyg.js", "pimcore/object/classes/data/checkbox.js", "pimcore/object/classes/data/slider.js", "pimcore/object/classes/data/multihref.js", "pimcore/object/classes/data/table.js", "pimcore/object/classes/data/structuredTable.js", "pimcore/object/classes/data/country.js", "pimcore/object/classes/data/geopoint.js", "pimcore/object/classes/data/language.js", "pimcore/object/classes/data/password.js", "pimcore/object/classes/data/multiselect.js", "pimcore/object/classes/data/link.js", "pimcore/object/classes/data/geobounds.js", "pimcore/object/classes/data/geopolygon.js", "pimcore/object/classes/data/fieldcollections.js", "pimcore/object/classes/data/objectbricks.js", "pimcore/object/classes/data/localizedfields.js", "pimcore/object/classes/data/countrymultiselect.js", "pimcore/object/classes/data/languagemultiselect.js", "pimcore/object/classes/layout/layout.js", "pimcore/object/classes/layout/accordion.js", "pimcore/object/classes/layout/fieldset.js", "pimcore/object/classes/layout/panel.js", "pimcore/object/classes/layout/region.js", "pimcore/object/classes/layout/tabpanel.js", "pimcore/object/classes/layout/button.js", "pimcore/object/classes/layout/text.js", "pimcore/object/fieldcollection.js", "pimcore/object/fieldcollections/field.js", "pimcore/object/objectbrick.js", "pimcore/object/objectbricks/field.js", "pimcore/object/tags/abstract.js", "pimcore/object/tags/date.js", "pimcore/object/tags/datetime.js", "pimcore/object/tags/time.js", "pimcore/object/tags/href.js", "pimcore/object/tags/image.js", "pimcore/object/tags/hotspotimage.js", "pimcore/object/tags/input.js", "pimcore/object/tags/numeric.js", "pimcore/object/tags/objects.js", "pimcore/object/tags/objectsMetadata.js", "pimcore/object/tags/nonownerobjects.js", "pimcore/object/tags/select.js", "pimcore/object/tags/user.js", "pimcore/object/tags/checkbox.js", "pimcore/object/tags/textarea.js", "pimcore/object/tags/wysiwyg.js", "pimcore/object/tags/slider.js", "pimcore/object/tags/multihref.js", "pimcore/object/tags/table.js", "pimcore/object/tags/structuredTable.js", "pimcore/object/tags/country.js", "pimcore/object/tags/geopoint.js", "pimcore/object/tags/language.js", "pimcore/object/tags/password.js", "pimcore/object/tags/multiselect.js", "pimcore/object/tags/link.js", "pimcore/object/tags/geobounds.js", "pimcore/object/tags/geopolygon.js", "pimcore/object/tags/fieldcollections.js", "pimcore/object/tags/localizedfields.js", "pimcore/object/tags/countrymultiselect.js", "pimcore/object/tags/languagemultiselect.js", "pimcore/object/tags/objectbricks.js", "pimcore/object/preview.js", "pimcore/object/versions.js", "pimcore/object/variantsTab.js", "pimcore/object/importer.js", "pimcore/object/folder/search.js", "pimcore/object/edit.js", "pimcore/object/abstract.js", "pimcore/object/object.js", "pimcore/object/folder.js", "pimcore/object/variant.js", "pimcore/object/tree.js", "pimcore/object/customviews/settings.js", "pimcore/object/customviews/tree.js", "pimcore/plugin/broker.js", "pimcore/plugin/plugin.js", "pimcore/report/panel.js", "pimcore/report/broker.js", "pimcore/report/abstract.js", "pimcore/report/settings.js", "pimcore/report/analytics/settings.js", "pimcore/report/analytics/elementoverview.js", "pimcore/report/analytics/elementexplorer.js", "pimcore/report/analytics/elementnavigation.js", "pimcore/report/webmastertools/settings.js", "pimcore/settings/tagmanagement/panel.js", "pimcore/settings/tagmanagement/item.js", "pimcore/report/qrcode/panel.js", "pimcore/report/qrcode/item.js", "pimcore/extensionmanager/settings.js", "pimcore/extensionmanager/admin.js", "pimcore/extensionmanager/download.js", "pimcore/extensionmanager/share.js", "pimcore/layout/portal.js", "pimcore/layout/portlets/abstract.js", "pimcore/layout/portlets/modifiedDocuments.js", "pimcore/layout/portlets/modifiedObjects.js", "pimcore/layout/portlets/modifiedAssets.js", "pimcore/layout/portlets/modificationStatistic.js", "pimcore/layout/portlets/feed.js", "pimcore/layout/portlets/analytics.js", "pimcore/layout/toolbar.js", "pimcore/layout/treepanelmanager.js", "pimcore/document/seemode.js");
// they're here because they are using some pimcore core functionality like t() for i18n , ...
$modifiedPlugins = array("lib/ext-plugins/SwfUploadPanel/swfupload.js", "lib/ext-plugins/SwfUploadPanel/SwfUploadPanel.js");
?>
    
    <!-- some javascript -->
    <?php 
// pimcore constants
?>
    <script type="text/javascript">
        pimcore.settings = {
            upload_max_filesize: <?php 
Пример #4
0
            }
        }
    }
} catch (Exception $e) {
}
?>

</head>
<body>

<?php 
//detect browser
$supported = false;
$browser = new Pimcore_Browser();
$browserVersion = (int) $browser->getVersion();
if ($browser->getBrowser() == "Firefox" && $browserVersion >= 3) {
    $supported = true;
}
if ($browser->getBrowser() == "Internet Explorer" && $browserVersion >= 8) {
    $supported = true;
}
if ($browser->getBrowser() == "Chrome" && $browserVersion >= 5) {
    $supported = true;
}
if ($browser->getBrowser() == "Safari" && $browserVersion >= 4) {
    $supported = true;
}
$config = Pimcore_Config::getSystemConfig();
?>

<?php