et.analyticsFileEntryTitle; } } Analytics.send('VOTE', 'Ratings', { className: event.className, classPK: event.classPK, ratingType: event.ratingType, score: event.score, title, }); } }; var onDestroyPortlet = function () { Liferay.detach('ratings:vote', onVote); Liferay.detach('destroyPortlet', onDestroyPortlet); }; Liferay.on('ratings:vote', onVote); Liferay.on('destroyPortlet', onDestroyPortlet); })(); function getValueByAttribute(node, attr) { return ( node.dataset[attr] || (node.parentElement && node.parentElement.dataset[attr]) ); } function sendDocumentDownloadedAnalyticsEvent(anchor) { var fileEntryId = getValueByAttribute( anchor, 'analyticsFileEntryId' ); var title = getValueByAttribute( anchor, 'analyticsFileEntryTitle' ); var version = getValueByAttribute( anchor, 'analyticsFileEntryVersion' ); if (fileEntryId) { Analytics.send('documentDownloaded', 'Document', { groupId: themeDisplay.getScopeGroupId(), fileEntryId, preview: !!window._com_liferay_document_library_analytics_isViewFileEntry, title, version, }); } } function handleDownloadClick(event) { if (window.Analytics) { if (event.target.nodeName.toLowerCase() === 'a') { sendDocumentDownloadedAnalyticsEvent( event.target ); } else if ( event.target.parentNode && event.target.parentNode.nodeName.toLowerCase() === 'a' ) { sendDocumentDownloadedAnalyticsEvent( event.target.parentNode ); } else { var target = event.target; var matchTextContent = target.textContent && target.textContent.toLowerCase() === 'تحميل'; var matchTitle = target.title && target.title.toLowerCase() === 'download'; var matchAction = target.action === 'download'; var matchLexiconIcon = !!target.querySelector( '.lexicon-icon-download' ); var matchLexiconClassName = target.classList.contains( 'lexicon-icon-download' ); var matchParentTitle = target.parentNode && target.parentNode.title && target.parentNode.title.toLowerCase() === 'download'; var matchParentLexiconClassName = target.parentNode && target.parentNode.classList.contains('lexicon-icon-download'); if ( matchTextContent || matchTitle || matchParentTitle || matchAction || matchLexiconIcon || matchLexiconClassName || matchParentLexiconClassName ) { var selectedFiles = document.querySelectorAll( '.form .custom-control-input:checked' ); selectedFiles.forEach(({value}) => { var selectedFile = document.querySelector( '[data-analytics-file-entry-id="' + value + '"]' ); sendDocumentDownloadedAnalyticsEvent( selectedFile ); }); } } } } Liferay.once('destroyPortlet', () => { document.body.removeEventListener( 'click', handleDownloadClick ); }); Liferay.once('portletReady', () => { document.body.addEventListener( 'click', handleDownloadClick ); }); (function() {var $ = AUI.$;var _ = AUI._; var onShare = function (data) { if (window.Analytics) { Analytics.send('shared', 'SocialBookmarks', { className: data.className, classPK: data.classPK, type: data.type, url: data.url, }); } }; var onDestroyPortlet = function () { Liferay.detach('socialBookmarks:share', onShare); Lif2525D9\x252584\x2525D8\x2525A3\x2525D9\x252588\x2525D9\x252584-\ 1FF8 x2525D9\x252585\x2525D8\x2525B1\x2525D8\x2525A9-\x2525D9\x252586\x2525D8\x2525AA\x2525D8\x2525A7\x2525D8\x2525A6\x2525D8\x2525AC-\x2525D9\x252585\x2525D8\x2525B3\x2525D8\x2525AD-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252586', refreshURLData: {} } ); Liferay.Portlet.register('com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet_', portletId: 'com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet', refreshURL: '\x2far\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d159\x26p_p_id\x3dcom_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Far\x252Fw\x252F-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252587\x2525D9\x25258A\x2525D8\x2525A6\x2525D8\x2525A9-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525B9\x2525D8\x2525A7\x2525D9\x252585\x2525D8\x2525A9-\x2525D9\x252584\x2525D9\x252584\x2525D8\x2525A5\x2525D8\x2525AD\x2525D8\x2525B5\x2525D8\x2525A7\x2525D8\x2525A1-\x2525D8\x2525AA\x2525D8\x2525B5\x2525D8\x2525AF\x2525D8\x2525B1-\x2525D9\x252584\x2525D8\x2525A3\x2525D9\x252588\x2525D9\x252584-\x2525D9\x252585\x2525D8\x2525B1\x2525D8\x2525A9-\x2525D9\x252586\x2525D8\x2525AA\x2525D8\x2525A7\x2525D8\x2525A6\x2525D8\x2525AC-\x2525D9\x252585\x2525D8\x2525B3\x2525D8\x2525AD-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252586', refreshURLData: {} } ); Liferay.Portlet.register('com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_zmrh'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_zmrh_', portletId: 'com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_zmrh', refreshURL: '\x2far\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d159\x26p_p_id\x3dcom_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_zmrh\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Far\x252Fw\x252F-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252587\x2525D9\x25258A\x2525D8\x2525A6\x2525D8\x2525A9-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525B9\x2525D8\x2525A7\x2525D9\x252585\x2525D8\x2525A9-\x2525D9\x252584\x2525D9\x252584\x2525D8\x2525A5\x2525D8\x2525AD\x2525D8\x2525B5\x2525D8\x2525A7\x2525D8\x2525A1-\x2525D8\x2525AA\x2525D8\x2525B5\x2525D8\x2525AF\x2525D8\x2525B1-\x2525D9\x252584\x2525D8\x2525A3\x2525D9\x252588\x2525D9\x252584-\x2525D9\x252585\x2525D8\x2525B1\x2525D8\x2525A9-\x2525D9\x252586\x2525D8\x2525AA\x2525D8\x2525A7\x2525D8\x2525A6\x2525D8\x2525AC-\x2525D9\x252585\x2525D8\x2525B3\x2525D8\x2525AD-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252586', refreshURLData: {} } ); Liferay.Portlet.register('com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_jibn'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_jibn_', portletId: 'com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_jibn', refreshURL: '\x2far\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d159\x26p_p_id\x3dcom_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_jibn\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\currentURL\x3d\x252Far\x252Fw\x252F-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252587\x2525D9\x25258A\x2525D8\x2525A6\x2525D8\x2525A9-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525B9\x2525D8\x2525A7\x2525D9\x252585\x2525D8\x2525A9-\x2525D9\x252584\x2525D9\x252584\x2525D8\x2525A5\x2525D8\x2525AD\x2525D8\x2525B5\x2525D8\x2525A7\x2525D8\x2525A1-\x2525D8\x2525AA\x2525D8\x2525B5\x2525D8\x2525AF\x2525D8\x2525B1-\x2525D9\x252584\x2525D8\x2525A3\x2525D9\x252588\x2525D9\x252584-\x2525D9\x252585\x2525D8\x2525B1\x2525D8\x2525A9-\x2525D9\x252586\x2525D8\x2525AA\x2525D8\x2525A7\x2525D8\x2525A6\x2525D8\x2525AC-\x2525D9\x252585\x2525D8\x2525B3\x2525D8\x2525AD-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252586', refreshURLData: {} } ); Liferay.Portlet.register('com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_capa'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_capa_', portletId: 'com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_capa', refreshURL: '\x2far\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d159\x26p_p_id\x3dcom_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet_INSTANCE_capa\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Far\x252Fw\x252F-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252587\x2525D9\x25258A\x2525D8\x2525A6\x2525D8\x2525A9-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525B9\x2525D8\x2525A7\x2525D9\x252585\x2525D8\x2525A9-\x2525D9\x252584\x2525D9\x252584\x2525D8\x2525A5\x2525D8\x2525AD\x2525D8\x2525B5\x2525D8\x2525A7\x2525D8\x2525A1-\x2525D8\x2525AA\x2525D8\x2525B5\x2525D8\x2525AF\x2525D8\x2525B1-\x2525D9\x252584\x2525D8\x2525A3\x2525D9\x252588\x2525D9\x252584-\x2525D9\x252585\x2525D8\x2525B1\x2525D8\x2525A9-\x2525D9\x252586\x2525D8\x2525AA\x2525D8\x2525A7\x2525D8\x2525A6\x2525D8\x2525AC-\x2525D9\x252585\x2525D8\x2525B3\x2525D8\x2525AD-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252586', refreshURLData: {} } ); (function() {var $ = AUI.$;var _ = AUI._; var assetEntryId = ''; if (assetEntryId) { window.location.hash = assetEntryId; } })(); Liferay.Portlet.register('com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_soiz'); Liferay.Portlet.onLoad( { canEditTitle: false, columnPos: 0, isStatic: 'end', namespacedId: 'p_p_id_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_soiz_', portletId: 'com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_soiz', refreshURL: '\x2far\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d159\x26p_p_id\x3dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_soiz\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Far\x252Fw\x252F-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252587\x2525D9\x25258A\x2525D8\x2525A6\x2525D8\x2525A9-\x2525D8\x2525A7\x2525D9\x252584\x2525D8\x2525B9\x2525D8\x2525A7\x2525D9\x252585\x2525D8\x2525A9-\x2525D9\x252584\x2525D9\x252584\x2525D8\x2525A5\x2525D8\x2525AD\x2525D8\x2525B5\x2525D8\x2525A7\x2525D8\x2525A1-\x2525D8\x2525AA\x2525D8\x2525B5\x2525D8\x2525AF\x2525D8\x2525B1-\x2525D9\x252584\x2525D8\x2525A3\x2525D9\x252588\x2525D9\x252584-\x2525D9\x252585\x2525D8\x2525B1\x2525D8\x2525A9-\x2525D9\x252586\x2525D8\x2525AA\x2525D8\x2525A7\x2525D8\x2525A6\x2525D8\x2525AC-\x2525D9\x252585\x2525D8\x2525B3\x2525D8\x2525AD-\x2525D8\x2525A7\x2525D9\x252584\x2525D9\x252586', refreshURLData: {} } ); 0