This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUI().ready( | |
function(A) { | |
var CustomLayout = A.one('LAYOUT_CLASS_NAME'); | |
if(CustomLayout){ | |
A.Do.before(function(option) { | |
if (!option.placeHolder) { | |
option.placeHolder = A.Node.create('<div class="loading-animation"></div>'); | |
} | |
option.placeHolder.prependTo('TARGETED-COLUMN-ID'); | |
}, Liferay.Portlet, 'add', Liferay.Portlet); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUI().ready( | |
function(A) { | |
A.Do.before(function(option) { | |
if (!option.placeHolder) { | |
option.placeHolder = A.Node.create('<div class="loading-animation"></div>'); | |
} | |
option.placeHolder.prependTo('TARGETED-COLUMN-ID'); | |
}, Liferay.Portlet, 'add', Liferay.Portlet); | |
} | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SDK | |
*clients | |
*dist | |
*ext | |
*layouttpl | |
*lib | |
*misc | |
*portlets | |
*themes | |
**docroot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -------- Global -------- */ | |
#skip-to-content, | |
#heading .community-title, | |
#heading .page-title, | |
#navigation h1, | |
#navigation .child-menu, | |
#breadcrumbs { | |
clip: rect(0 0 0 0); | |
height: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -------- Global -------- */ | |
#skip-to-content, | |
#heading .site-title, | |
#heading .page-title, | |
#navigation h1, | |
#navigation .child-menu, | |
#breadcrumbs { | |
clip: rect(0 0 0 0); | |
height: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUI().ready( | |
/* | |
This function gets loaded when all the HTML, not including the portlets, is | |
loaded. | |
*/ | |
function(A) { | |
var layoutWithNav = A.one('.columns-3-1'); | |
if(layoutWithNav){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set ($layoutLocalService = $serviceLocator.findService('com.liferay.portal.service.LayoutLocalService')) | |
#set ($themeDisplay = $request.get('theme-display')) | |
#set ($currentPlid = $getterUtil.getLong($themeDisplay.get('plid'))) | |
#set($pageName = $layoutLocalService.getLayout($currentPlid).name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Authors: | |
## Bradley Wood | |
## Ray Augé | |
## | |
## Getting Services | |
## | |
#set ($portalBeanLocator = $portal.getClass().forName('com.liferay.portal.kernel.bean.PortalBeanLocatorUtil')) | |
#set ($booleanQueryFactory = $portalBeanLocator.locate('com.liferay.portal.kernel.search.BooleanQueryFactoryUtil')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set($layoutLocalService = $serviceLocator.findService("com.liferay.portal.service.LayoutLocalService")) | |
#set ($localizationUtil = $portal.getClass().forName('com.liferay.portal.kernel.util.LocalizationUtil')) | |
#set($topPublicLayouts = $layoutLocalService.getLayouts($layout.getGroupId(),false)) | |
<ul> | |
#foreach ($layout_item in $topPublicLayouts) | |
#if ($layout_item.getHidden()) | |
$languageId | |
$language_id | |
$theme_display.languageId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set($journalArticleLocalServiceUtil = $portal.getClass().forName("com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil")) | |
#foreach($article in $journalArticleLocalServiceUtil.getArticles($group_id) | |
#if($article.title == "Social Links (Embedded)") | |
#set($social-article-id = $article.articleId) | |
#end | |
#end | |
#set($social-links=$journalContentUtil.getContent($group_id, $social-article-id,null,"$locale",$theme_display)) |
OlderNewer