Skip to content

Commit 2b3d0b8

Browse files
committed
initial release
1 parent 4c3e00f commit 2b3d0b8

File tree

147 files changed

+22554
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+22554
-0
lines changed

Classes/Hooks/ItemsProcFunc.php

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
/***************************************************************
3+
* Copyright notice
4+
*
5+
* (c) 2012 Georg Ringer <[email protected]>
6+
* All rights reserved
7+
*
8+
* This script is part of the TYPO3 project. The TYPO3 project is
9+
* free software; you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation; either version 2 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* The GNU General Public License can be found at
15+
* http://www.gnu.org/copyleft/gpl.html.
16+
*
17+
* This script is distributed in the hope that it will be useful,
18+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+
* GNU General Public License for more details.
21+
*
22+
* This copyright notice MUST APPEAR in all copies of the script!
23+
***************************************************************/
24+
25+
/**
26+
* ItemsProcFunc to make backend_layout fields
27+
* multilanguage aware if the name starts with 'LLL:'
28+
*
29+
* @package TYPO3
30+
* @subpackage tx_modernpackage
31+
*/
32+
class Tx_Modernpackage_Hooks_ItemsProcFunc {
33+
34+
/**
35+
* Labels of a be_layout record
36+
*
37+
* @param array $params
38+
* @return void
39+
*/
40+
public function getLabel(array &$params) {
41+
if (t3lib_div::isFirstPartOfStr($params['row']['title'], 'LLL:')) {
42+
$params['title'] = $GLOBALS['LANG']->sL($params['row']['title'], TRUE);
43+
} else {
44+
$params['title'] = $params['row']['title'];
45+
}
46+
}
47+
}
48+
49+
?>

Configuration/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deny from all
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/TypoScript/constants-development.ts">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/TypoScript/main.ts">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/TypoScript/constants-production.ts">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/TypoScript/main.ts">

Documentation/License

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Icons for links
2+
under http://en.wikipedia.org/wiki/WTFPL from http://www.iconfinder.com/icondetails/70493/10/_icon

Resources/Private/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deny from all

Resources/Private/Extensions/_main.ts

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ******************************************************************************
2+
# (c) 2012 Georg Ringer <typo3@ringerge.org>
3+
#
4+
# You can redistribute it and/or modify it under the terms of the
5+
# GNU General Public License as published by the Free Software Foundation;
6+
# either version 2 of the License, or at your option) any later version.
7+
# ******************************************************************************
8+
9+
# **********************************************************
10+
# Basis of all changes to extensions (also sysexts)
11+
# **********************************************************
12+
13+
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/Extensions/extbase.ts">
14+
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/Extensions/indexed_search.ts">
15+
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/Extensions/news/news.ts">
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# ******************************************************************************
2+
# (c) 2012 Georg Ringer <typo3@ringerge.org>
3+
#
4+
# You can redistribute it and/or modify it under the terms of the
5+
# GNU General Public License as published by the Free Software Foundation;
6+
# either version 2 of the License, or at your option) any later version.
7+
# ******************************************************************************
8+
9+
10+
# **********************************************************
11+
# Extbase configuration
12+
# **********************************************************
13+
config {
14+
tx_extbase {
15+
mvc {
16+
callDefaultActionIfActionCantBeResolved = 1
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# ******************************************************************************
2+
# (c) 2012 Georg Ringer <typo3@ringerge.org>
3+
#
4+
# You can redistribute it and/or modify it under the terms of the
5+
# GNU General Public License as published by the Free Software Foundation;
6+
# either version 2 of the License, or at your option) any later version.
7+
# ******************************************************************************
8+
9+
# **********************************************************
10+
# Library for indexed_search snippets
11+
# Content:
12+
# * Search box
13+
# **********************************************************
14+
15+
16+
#-------------------------------------------------------------------------------
17+
# EXT:indexed_search Searchbox for the top bar
18+
#-------------------------------------------------------------------------------
19+
lib.extensions.indexed_search_box = COA
20+
lib.extensions.indexed_search_box {
21+
22+
# Open form tag and set URL to target page
23+
10 = TEXT
24+
10 {
25+
wrap = <form class="pull-left searchform-short" action="|" method="post">
26+
typolink {
27+
parameter = {$plugin.theme_configuration.extensions.indexed_search.form-target}
28+
returnLast = url
29+
}
30+
}
31+
32+
# Add rest of template
33+
20 = TEXT
34+
20 {
35+
insertData = 1
36+
value (
37+
<input type="text" class="span2" placeholder="{LLL:EXT:modernpackage/Resources/Private/Language/locallang.xml:search-placeholder}">
38+
<button class="btn btn-mini">{LLL:EXT:modernpackage/Resources/Private/Language/locallang.xml:search-submit}</button>
39+
</form>
40+
)
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{namespace n=Tx_News_ViewHelpers}
2+
3+
<f:be.container>
4+
<n:includeFile path="../typo3conf/ext/news/Resources/Public/Css/administration.css" />
5+
<div class="typo3-fullDoc">
6+
<div id="typo3-docheader">
7+
<div id="typo3-docheader-row1">
8+
<div class="buttonsleft">
9+
<f:render section="iconButtons" />
10+
</div>
11+
<div class="buttonsright">
12+
<f:be.buttons.shortcut />
13+
</div>
14+
</div>
15+
<div id="typo3-docheader-row2">
16+
<div class="docheader-row2-left">
17+
</div>
18+
<div class="docheader-row2-right">
19+
<f:be.pagePath />
20+
<f:be.pageInfo />
21+
</div>
22+
</div>
23+
</div>
24+
<div id="typo3-docbody">
25+
<div id="typo3-inner-docbody">
26+
<f:renderFlashMessages class="tx-extbase-flash-message" />
27+
<div id="news-administration">
28+
<f:render section="content" />
29+
</div>
30+
</div>
31+
</div>
32+
</div>
33+
</f:be.container>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{namespace n=Tx_News_ViewHelpers}
2+
3+
<div class="news news-single">
4+
<div class="article">
5+
<f:render section="content" />
6+
</div>
7+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{namespace n=Tx_News_ViewHelpers}
2+
3+
<div class="news">
4+
<f:renderFlashMessages class="tx-news-flash-message" />
5+
<f:render section="content" />
6+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{namespace n=Tx_News_ViewHelpers}
2+
3+
<n:be.buttons.icon uri="{f:uri.action(action:'newNews')}" icon="actions-document-new" title="Create new news record" />
4+
<n:be.buttons.icon uri="{f:uri.action(action:'index')}" icon="tcarecords-tx_news_domain_model_news-default" title="News Listing" />
5+
<n:be.buttons.icon uri="{f:uri.action(action:'newsPidListing')}" icon="apps-clipboard-list" title="News Pid listing" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{namespace n=Tx_News_ViewHelpers}
2+
3+
<tr class="db_list_normal">
4+
<td>
5+
<n:be.clickmenu table="tx_news_domain_model_news" uid="{newsItem.uid}">
6+
<n:be.buttons.iconForRecord table="tx_news_domain_model_news" uid="{newsItem.uid}" title="" />
7+
</n:be.clickmenu>
8+
9+
<n:be.buttons.icon uri="#" onclick="window.location.href='alt_doc.php?returnUrl='+T3_THIS_LOCATION+'&edit[tx_news_domain_model_news][{newsItem.uid}]=edit'; return false;" icon="tcarecords-tx_news_domain_model_news-default" title="Info" />
10+
11+
<span title="UID: {newsItem.uid}">{newsItem.title}</span>
12+
</td>
13+
<td><f:if condition="{newsItem.isTopNews}"><f:then>Yes</f:then><f:else>No</f:else></f:if></td>
14+
<td><f:format.date>{newsItem.dateTime}</f:format.date></td>
15+
<td><f:format.date>{newsItem.archive}</f:format.date></td>
16+
<td><f:format.date>{newsItem.tstamp}</f:format.date></td>
17+
<td>
18+
<f:if condition="{newsItem.author}">
19+
<strong><f:translate key="LLL:EXT:cms/locallang_tca.xml:pages.author_formlabel" />:</strong> {newsItem.author}<br />
20+
</f:if>
21+
<f:if condition="{newsItem.categories}">
22+
<strong><f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_news.categories" />:</strong>
23+
<f:for each="{newsItem.categories}" as="category" iteration="iterator">
24+
<span title="UID: {category.uid}">{category.title}</span><f:if condition="{iterator.isLast}"><f:then></f:then><f:else>, </f:else></f:if>
25+
</f:for>
26+
</f:if>
27+
</td>
28+
</tr>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!-- categories -->
2+
<span class="hidden">. </span>
3+
<span class="news-list-category">
4+
<f:for each="{categories}" as="category">
5+
<f:if condition="{category.shortcut}">
6+
<f:then>
7+
<f:link.page pageUid="{category.shortcut}">
8+
{category.title}
9+
</f:link.page>
10+
</f:then>
11+
<f:else>
12+
{category.title}
13+
</f:else>
14+
</f:if>
15+
</f:for>
16+
</span>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<f:if condition="{media}">
2+
<!-- media files -->
3+
<div class="news-img-wrap pull-right">
4+
<f:for each="{media}" as="mediaElement">
5+
<f:if condition="{mediaElement.type} == 0">
6+
<f:render partial="Detail/MediaImage" arguments="{mediaElement: mediaElement, settings:settings}"/>
7+
</f:if>
8+
<f:if condition="{mediaElement.type} == 1">
9+
<f:render partial="Detail/MediaVideo" arguments="{mediaElement: mediaElement, settings:settings}"/>
10+
</f:if>
11+
<f:if condition="{mediaElement.type} == 2">
12+
<f:render partial="Detail/MediaHtml" arguments="{mediaElement: mediaElement, settings:settings}"/>
13+
</f:if>
14+
<f:if condition="{mediaElement.type} == 3">
15+
<f:render partial="Detail/MediaDam" arguments="{mediaElement: mediaElement, settings:settings}"/>
16+
</f:if>
17+
</f:for>
18+
</div>
19+
</f:if>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{namespace n=Tx_News_ViewHelpers}
2+
3+
<div class="mediaelement">
4+
<n:format.dam as="dam" uid="{mediaElement.uid}">
5+
<f:if condition="{settings.detail.media.image.lightbox}">
6+
<f:then>
7+
<a rel="{settings.detail.media.image.lightbox}" title="{dam.caption}" href="{f:uri.image(src:{dam.file_path}{dam.file_name}' maxWidth:'800')}">
8+
<f:image src="{dam.file_path}{dam.file_name}" title="{dam.title}" alt="{dam.alt_text}" maxWidth="{settings.detail.media.image.maxWidth}" />
9+
</a>
10+
</f:then>
11+
<f:else>
12+
<f:image src="{dam.file_path}{dam.file_name}" title="{dam.title}" alt="{dam.alt_text}" maxWidth="{settings.detail.media.image.maxWidth}" />
13+
</f:else>
14+
</f:if>
15+
</n:format.dam>
16+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div>
2+
<f:format.html>{mediaElement.content}</f:format.html>
3+
</div>
4+
<f:if condition="{mediaElement.title}">
5+
<p class="news-img-caption">
6+
{mediaElement.title}
7+
</p>
8+
</f:if>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<div class="thumbnail mediaelement mediaelement-image">
2+
<f:if condition="{settings.detail.media.image.lightbox}">
3+
<f:then>
4+
<a rel="{settings.detail.media.image.lightbox}" title="{mediaElement.caption}" href="{f:uri.image(src:'uploads/tx_news/{mediaElement.content}' maxWidth:'800')}">
5+
<f:image src="uploads/tx_news/{mediaElement.content}" title="{mediaElement.title}" alt="{mediaElement.alt}" maxWidth="{settings.detail.media.image.maxWidth}" />
6+
</a>
7+
</f:then>
8+
<f:else>
9+
<f:image src="uploads/tx_news/{mediaElement.content}" title="{mediaElement.title}" alt="{mediaElement.alt}" maxWidth="{settings.detail.media.image.maxWidth}" />
10+
</f:else>
11+
</f:if>
12+
<f:if condition="{mediaElement.caption}">
13+
<div class="caption">
14+
{mediaElement.caption}
15+
</div>
16+
</f:if>
17+
</div>
18+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{namespace n=Tx_News_ViewHelpers}
2+
3+
<div class="mediaelement">
4+
<div class="mediaelement-video">
5+
<n:mediaFactory classes="{settings.interfaces.media.video}" element="{mediaElement}" width="{settings.detail.media.video.width}" height="{settings.detail.media.video.height}" />
6+
</div>
7+
8+
9+
<f:if condition="{mediaElement.caption}">
10+
<div class="medialement-alternative-content">
11+
<p class="news-img-caption">
12+
{mediaElement.caption}
13+
</p>
14+
</div>
15+
</f:if>
16+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{namespace n=Tx_News_ViewHelpers}
2+
3+
<f:if condition="{newsItem.alternativeTitle}">
4+
<f:then><n:metaTag property="og:title" content="{newsItem.alternativeTitle}" /></f:then>
5+
<f:else><n:metaTag property="og:title" content="{newsItem.title}" /></f:else>
6+
</f:if>
7+
<n:metaTag property="og:type" content="{settings.opengraph.type}" />
8+
<n:metaTag property="og:url" content="" useCurrentDomain="1" />
9+
<n:metaTag property="og:site_name" content="{settings.opengraph.site_name}" />
10+
<f:if condition="{newsItem.firstImagePreview.image}">
11+
<n:metaTag
12+
property="og:image"
13+
content="{f:uri.image(src:'uploads/tx_news/{newsItem.firstImagePreview.image}' maxWidth:'100')}"
14+
forceAbsoluteUrl="1" />
15+
</f:if>
16+
<n:metaTag property="fb:admins" content="{settings.opengraph.admins}" />
17+
<n:metaTag property="og:description" content="{newsItem.teaser}" />
18+
<n:metaTag property="fb:admins" content="{settings.opengraph.admins}" />
19+
<n:metaTag property="og:email" content="{settings.opengraph.email}" />
20+
<n:metaTag property="og:phone_number" content="{settings.opengraph.phone_number}" />
21+
<n:metaTag property="og:fax_number" content="{settings.opengraph.fax_number}" />
22+
<n:metaTag property="og:latitude" content="{settings.opengraph.latitude}" />
23+
<n:metaTag property="og:longitude" content="{settings.opengraph.longitude}" />
24+
<n:metaTag property="og:street-address" content="{settings.opengraph.street-address}" />
25+
<n:metaTag property="og:locality" content="{settings.opengraph.locality}" />
26+
<n:metaTag property="og:region" content="{settings.opengraph.region}" />
27+
<n:metaTag property="og:postal-code" content="{settings.opengraph.postal-code}" />
28+
<n:metaTag property="og:country-name" content="{settings.opengraph.country-name}" />

0 commit comments

Comments
 (0)