Skip to Content

Continue the learning at home

There are many fun and exciting activities that will stimulate children's curiosity and encourage their love of learning.

And best of all, they are easy to include as part of your daily routine.  We have develoepd a range of factsheets and booklets of activities you can do with your chidlren at home.

Places like Scitech, the WA MuseumPerth Zoo and Kings Park run fun educational programs and events throughout the year and are great family outing options. Local councils and shires also run recreation centres that have a range of programs and activities for children of all ages throughout the year.

 

An error occurred while processing the template.
Method public static com.liferay.portlet.documentlibrary.model.DLFileEntry com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(java.lang.String,long) throws com.liferay.portal.kernel.exception.PortalException,com.liferay.portal.kernel.exception.SystemException threw an exception
1<div class="inner-wrapper"> 
2 
3<#assign imageManagerService = serviceLocator.findService('IMAGE_MANAGER','helper') /> 
4<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
5<#assign portletTitle = themeDisplay.getPortletDisplay().getTitle()> 
6 
7<h3>${portletTitle}</h3> 
8<div class="container-fluid"> 
9    <div class="row"> 
10        <#list entries as entry> 
11            <#assign entry = entry /> 
12            <#assign assetRenderer = entry.getAssetRenderer() /> 
13            <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
14            <#if assetLinkBehavior != "showFullContent"> 
15                <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
16            </#if> 
17 
18            <#--Use xPath to extract the elements from the content item --> 
19            <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) /> 
20 
21            <#assign documentVersion = docXml.valueOf("//dynamic-element[@name='version']/dynamic-content/text()") /> 
22            <#assign documentUrl = docXml.valueOf("//dynamic-element[@name='DocLib_file']/dynamic-content/text()") /> 
23            <#assign imgId = getterUtil.getLong(docXml.valueOf("//dynamic-element[@name='Image_Selector_2']/dynamic-content/text()")) /> 
24 
25            <#assign attachmentUrl = documentUrl /> 
26            <#assign counter = 0 > 
27            <#list attachmentUrl?split("/") as x> 
28                <#if counter == 2> 
29                    <#assign groupId = x?number /> 
30                </#if> 
31                <#if counter == 5> 
32                    <#assign uuId = x /> 
33 
34                    <#if uuId?contains("?")> 
35                      <#assign uuId = uuId?substring(0, uuId?index_of("?")) /> 
36                    </#if> 
37                </#if> 
38                <#assign counter = counter+1 /> 
39            </#list> 
40            <#assign fileEntry = staticUtil["com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"]> 
41            <#assign file=fileEntry.getFileEntryByUuidAndGroupId(uuId,groupId) /> 
42            <ul class="search-results-list" style="padding: 0;"> 
43                <li class="search-results-item"> 
44                <#assign hasThumbnail = false /> 
45                <#-- Use image as metadata first --> 
46                <#if imgId != 0> 
47                    <#assign metadataImageUrl = imageManagerService.getImageVariantObject(imgId, '20') /> 
48                    <img class="search-results-item__thumb" height="128px" width="90px" src="${metadataImageUrl.getSrc()}"/> 
49                <#-- Try and use the thumbnail --> 
50                <#elseif hasThumbnail> 
51                    <img class="search-results-item__thumb" height="128px" width="90px" src="${documentUrl}?documentThumbnail=1" alt="downloadName" /> 
52                <#-- Use a default image --> 
53                <#else> 
54                    <#-- <img class="search-results-item__thumb" height="128px" width="90px" src="https://image.freepik.com/free-icon/text-document_318-48568.jpg" alt="downloadName" /> --> 
55					<div class="icn-factsheets search-results-item__thumb" style="width: 90px; height: 128px;"></div> 
56                </#if> 
57 
58 
59              <div class="search-results-item__divider"> 
60                <h3 class="search-results-item__heading"><a href="${documentUrl}" style="color: black;">${entry.getTitle(locale)}</a></h3> 
61                <p>${entry.getDescription(locale)}</p> 
62                <a class="search-results-item__button" href="${documentUrl}?download=1">Download</a> 
63                    <a class="search-results-item__download-link icn-pdf" href="${documentUrl}" target="_blank" title="${file.getMimeType()}"> Size:${si(file.getSize())}</a> 
64                    </div> 
65                </li> 
66            </ul> 
67            <div class="lfr-meta-actions asset-actions"> 
68                <@getEditIcon /> 
69            </div> 
70        </#list> 
71 
72    </div> 
73</div> 
74 
75<#function si num> 
76    <#assign order = num?round?c?length /> 
77    <#assign thousands = ((order - 1) / 3)?floor /> 
78    <#if (thousands < 0)><#assign thousands = 0 /></#if> 
79    <#assign siMap = [ {"factor": 1, "unit": ""}, {"factor": 1000, "unit": "kB"}, {"factor": 1000000, "unit": "MB"}, {"factor": 1000000000, "unit":"GB"}, {"factor": 1000000000000, "unit": "TB"} ] /> 
80    <#assign siStr = (num / (siMap[thousands].factor))?string("0.#") + siMap[thousands].unit /> 
81    <#return siStr /> 
82</#function> 
83 
84<#macro getEditIcon> 
85    <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
86        <#assign redirectURL = renderResponse.createRenderURL() /> 
87 
88        ${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
89        ${redirectURL.setWindowState("pop_up")} 
90 
91        <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) /> 
92 
93        <#if validator.isNotNull(editPortletURL)> 
94            <#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(assetRenderer.getTitle(locale))) /> 
95 
96            <@liferay_ui["icon"] 
97                image="edit" 
98                message=title 
99                url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
100            /> 
101        </#if> 
102    </#if> 
103</#macro> 
104</div>