diff --git a/src/main/webapp/custom_jsps/html/portlet/dockbar/init-ext.jsp b/src/main/webapp/custom_jsps/html/portlet/dockbar/init-ext.jsp deleted file mode 100644 index 8aa75ad..0000000 --- a/src/main/webapp/custom_jsps/html/portlet/dockbar/init-ext.jsp +++ /dev/null @@ -1,15 +0,0 @@ -<%-- -/** - * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ ---%> \ No newline at end of file diff --git a/src/main/webapp/custom_jsps/html/portlet/dockbar/init.jsp b/src/main/webapp/custom_jsps/html/portlet/dockbar/init.jsp deleted file mode 100644 index 363f064..0000000 --- a/src/main/webapp/custom_jsps/html/portlet/dockbar/init.jsp +++ /dev/null @@ -1,25 +0,0 @@ -<%-- -/** - * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ ---%> - -<%@ include file="/html/portlet/init.jsp" %> - -<%@ page import="com.liferay.portal.util.PortletCategoryUtil" %><%@ -page import="com.liferay.taglib.aui.AUIUtil" %> - -<%@ page import="java.util.regex.Matcher" %><%@ -page import="java.util.regex.Pattern" %> - -<%@ include file="/html/portlet/dockbar/init-ext.jsp" %> \ No newline at end of file diff --git a/src/main/webapp/custom_jsps/html/portlet/dockbar/preview_panel.jsp b/src/main/webapp/custom_jsps/html/portlet/dockbar/preview_panel.jsp deleted file mode 100644 index cf6b8d1..0000000 --- a/src/main/webapp/custom_jsps/html/portlet/dockbar/preview_panel.jsp +++ /dev/null @@ -1,104 +0,0 @@ -<%-- -/** - * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ ---%> - -<%@ include file="/html/portlet/dockbar/init.jsp" %> - -
- - -

- - - -
- - 100% -
-
- - -
- - 768px -
-
- - -
- - 1024px -
-
- - -
- - 1280px -
-
- - -

(px)

- - × -
-
- -
- -
-
- - - var devicePreview = new Liferay.Dockbar.DevicePreview( - { - devices: { - autosize: { - skin: 'autosize' - }, - custom: { - height: '#height', - resizable: true, - width: '#width' - }, - desktop: { - height: 1050, - width: 1300 - }, - smartphone: { - height: 640, - preventTransition: true, - rotation: true, - selected: true, - skin: 'smartphone', - width: 400 - }, - tablet: { - height: 900, - preventTransition: true, - rotation: true, - skin: 'tablet', - width: 760 - } - }, - inputHeight: '#height', - inputWidth: '#width', - namespace: '' - } - ); - - Liferay.once('dockbarHidePanel', A.bind('destroy', devicePreview)); - \ No newline at end of file diff --git a/src/main/webapp/custom_jsps/html/portlet/dockbar/view_my_sites.jspf b/src/main/webapp/custom_jsps/html/portlet/dockbar/view_my_sites.jspf index 0710639..2d1cf31 100644 --- a/src/main/webapp/custom_jsps/html/portlet/dockbar/view_my_sites.jspf +++ b/src/main/webapp/custom_jsps/html/portlet/dockbar/view_my_sites.jspf @@ -14,9 +14,8 @@ */ --%> - - + diff --git a/src/main/webapp/custom_jsps/html/portlet/dockbar/view_page_customization_bar.jspf b/src/main/webapp/custom_jsps/html/portlet/dockbar/view_page_customization_bar.jspf deleted file mode 100644 index b8a2bac..0000000 --- a/src/main/webapp/custom_jsps/html/portlet/dockbar/view_page_customization_bar.jspf +++ /dev/null @@ -1,196 +0,0 @@ -<%-- -/** - * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ ---%> - -<% -boolean customizableLayout = !(group.isLayoutPrototype() || group.isLayoutSetPrototype() || group.isStagingGroup() || group.isUserGroup()) && layoutTypePortlet.isCustomizable() && LayoutPermissionUtil.containsWithoutViewableGroup(permissionChecker, layout, false, ActionKeys.CUSTOMIZE); -boolean linkedLayout = (!SitesUtil.isLayoutUpdateable(layout) || (layout.isLayoutPrototypeLinkActive() && !group.hasStagingGroup())) && LayoutPermissionUtil.containsWithoutViewableGroup(themeDisplay.getPermissionChecker(), layout, false, ActionKeys.UPDATE); -boolean modifiedLayout = (layoutSet != null) && layoutSet.isLayoutSetPrototypeLinkActive() && SitesUtil.isLayoutModifiedSinceLastMerge(layout) && hasLayoutUpdatePermission; -%> - - - - <% - boolean dockbarMessagesHidden = GetterUtil.getBoolean(SessionClicks.get(request, "dockbarMessagesHidden", "false")); - %> - - -
- -
-
- - - - - -
- -
- - - - - - - - - - - -
-
-
- - -
-
- - - - - - - - - - - -
-
-
- - -
-
- - - - - - - - - - - - - - - - - - - -
- -
- - <% - String taglibImage = "search"; - String taglibMessage = "view-default-page"; - - if (!layoutTypePortlet.isCustomizedView()) { - taglibMessage = "view-my-customized-page"; - } - else if (layoutTypePortlet.isDefaultUpdated()) { - taglibImage = "activate"; - taglibMessage = "the-defaults-for-the-current-page-have-been-updated-click-here-to-see-them"; - } - %> - - - - - - - - - - - <% - String taglibURL = "javascript:if (confirm('" + UnicodeLanguageUtil.get(pageContext, "are-you-sure-you-want-to-reset-your-customizations-to-default") + "')){submitForm(document.hrefFm, '" + HttpUtil.encodeURL(resetCustomizationViewURL) + "');}"; - %> - - - -
- - - Liferay.provide( - window, - 'toggleCustomizedView', - function(event) { - var A = AUI(); - - A.io.request( - themeDisplay.getPathMain() + '/portal/update_layout', - { - data: { - cmd: 'toggle_customized_view', - customized_view: '<%= String.valueOf(!layoutTypePortlet.isCustomizedView()) %>', - p_auth: '<%= AuthTokenUtil.getToken(request) %>' - }, - on: { - success: function(event, id, obj) { - window.location.href = themeDisplay.getLayoutURL(); - } - } - } - ); - }, - ['aui-io-request'] - ); - -
- - - var toggleCustomizedView = A.one('#toggleCustomizedView'); - - if (toggleCustomizedView) { - toggleCustomizedView.on('click', toggleCustomizedView); - } - -
-
- - -
- - - - -
-
-
- - - A.one('.info-link-container').on( - 'click', - function(event) { - event.preventDefault(); - - var navAccountControls = event.currentTarget.ancestor('.nav-account-controls'); - - var infoItems = navAccountControls.one('.info-items'); - - navAccountControls.one('.info-items').toggleClass('hide'); - - Liferay.Store('dockbarMessagesHidden', infoItems.hasClass('hide')); - } - ); - -
-
\ No newline at end of file diff --git a/src/main/webapp/custom_jsps/html/portlet/dockbar/view_resources.jsp b/src/main/webapp/custom_jsps/html/portlet/dockbar/view_resources.jsp deleted file mode 100644 index bb4aeaf..0000000 --- a/src/main/webapp/custom_jsps/html/portlet/dockbar/view_resources.jsp +++ /dev/null @@ -1,195 +0,0 @@ -<%-- -/** - * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ ---%> - -<%@ include file="/html/portlet/dockbar/init.jsp" %> - -<% -boolean viewEntries = ParamUtil.getBoolean(request, "viewEntries"); -boolean viewPreview = ParamUtil.getBoolean(request, "viewPreview"); -%> - - - -
- - <% - String displayStyleDefault = GetterUtil.getString(SessionClicks.get(request, "liferay_addpanel_displaystyle", "descriptive")); - String displayStyle = ParamUtil.getString(request, "displayStyle", displayStyleDefault); - String keywords = ParamUtil.getString(request, "keywords"); - - String panelTitle = "recent"; - - if (Validator.isNotNull(keywords)) { - panelTitle = "search-results"; - } - - String navListCssClass = "add-content nav-list "; - - if (displayStyle.equals("icon")) { - navListCssClass += "add-content-icon"; - } - else if (displayStyle.equals("descriptive")) { - navListCssClass += "add-content-descriptive"; - } - else if (displayStyle.equals("icon")) { - navListCssClass += "add-content-list"; - } - %> - - - - - <% - int deltaDefault = GetterUtil.getInteger(SessionClicks.get(request, "liferay_addpanel_numitems", "10")); - int delta = ParamUtil.getInteger(request, "delta", deltaDefault); - - long[] availableClassNameIds = AssetRendererFactoryRegistryUtil.getClassNameIds(company.getCompanyId()); - - for (long classNameId : availableClassNameIds) { - AssetRendererFactory assetRendererFactory = AssetRendererFactoryRegistryUtil.getAssetRendererFactoryByClassName(PortalUtil.getClassName(classNameId)); - - if (!assetRendererFactory.isSelectable()) { - availableClassNameIds = ArrayUtil.remove(availableClassNameIds, classNameId); - } - } - - AssetEntryQuery assetEntryQuery = new AssetEntryQuery(); - - assetEntryQuery.setClassNameIds(availableClassNameIds); - assetEntryQuery.setEnd(delta); - assetEntryQuery.setGroupIds(new long[] {scopeGroupId}); - assetEntryQuery.setKeywords(keywords); - assetEntryQuery.setOrderByCol1("modifiedDate"); - assetEntryQuery.setOrderByCol2("title"); - assetEntryQuery.setOrderByType1("DESC"); - assetEntryQuery.setOrderByType2("ASC"); - assetEntryQuery.setStart(0); - - List results = null; - - if (PropsValues.ASSET_PUBLISHER_SEARCH_WITH_INDEX && (assetEntryQuery.getLinkedAssetEntryId() == 0)) { - Hits hits = AssetUtil.search(request, assetEntryQuery, 0, delta); - - results = AssetUtil.getAssetEntries(hits); - } - else { - results = AssetEntryServiceUtil.getEntries(assetEntryQuery); - } - - for (AssetEntry assetEntry : results) { - String className = PortalUtil.getClassName(assetEntry.getClassNameId()); - long classPK = assetEntry.getClassPK(); - - AssetRendererFactory assetRendererFactory = AssetRendererFactoryRegistryUtil.getAssetRendererFactoryByClassName(className); - - if (assetRendererFactory == null) { - continue; - } - - AssetRenderer assetRenderer = null; - - try { - assetRenderer = assetRendererFactory.getAssetRenderer(classPK); - } - catch (Exception e) { - } - - if ((assetRenderer == null) || !assetRenderer.isDisplayable()) { - continue; - } - - String title = HtmlUtil.escape(StringUtil.shorten(assetRenderer.getTitle(themeDisplay.getLocale()), 60)); - - Map data = new HashMap(); - - data.put("class-name", assetEntry.getClassName()); - data.put("class-pk", assetEntry.getClassPK()); - data.put("draggable", true); - data.put("instanceable", true); - data.put("portlet-id", assetRenderer.getAddToPagePortletId()); - data.put("title", title); - - String navItemCssClass="content-shortcut drag-content-item lfr-content-item "; - - if (!displayStyle.equals("icon")) { - navItemCssClass += "has-preview"; - } - %> - - - - -
"> - <liferay-ui:message key=" src="<%= HtmlUtil.escapeAttribute(assetRenderer.getThumbnailPath(liferayPortletRequest)) %>" /> -
- -
"> -
- <%= title %> -
- -
- <%= HtmlUtil.escape(StringUtil.shorten(assetRenderer.getSummary(themeDisplay.getLocale()), 120)) %> -
-
-
- -
class="add-content-item"> - -
-
-
-
- - <% - } - %> - -
-
-
-
- - - - <% - long classPK = ParamUtil.getLong(request, "classPK"); - String className = ParamUtil.getString(request, "className"); - %> - - - - <% - AssetEntry assetEntry = AssetEntryLocalServiceUtil.getEntry(className, classPK); - AssetRendererFactory assetRendererFactory = AssetRendererFactoryRegistryUtil.getAssetRendererFactoryByClassName(className); - AssetRenderer assetRenderer = assetRendererFactory.getAssetRenderer(classPK); - - request.setAttribute("add_panel.jsp-assetEntry", assetEntry); - request.setAttribute("add_panel.jsp-assetRendererFactory", assetRendererFactory); - request.setAttribute("add_panel.jsp-assetRenderer", assetRenderer); - %> - -
- -
-
-
-
\ No newline at end of file