Initial commit

This commit is contained in:
2018-04-02 08:07:38 +02:00
commit 7330c1ed3e
2054 changed files with 405203 additions and 0 deletions

View File

@@ -0,0 +1,119 @@
<?php
namespace Ifabrik\IfAccessButtons\Controller;
/***************************************************************
*
* Copyright notice
*
* (c) 2016 Marco Kuprat <mk@internetfabrik.de>, Internetfabrik GmbH
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script 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 General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
/**
* AccessibilityButtonsController
*/
class AccessibilityButtonsController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
/**
* accessibilityButtonsRepository
*
* @var \Ifabrik\IfAccessButtons\Domain\Repository\AccessibilityButtonsRepository
* @inject
*/
protected $accessibilityButtonsRepository = NULL;
/**
* action show
*
* @param \Ifabrik\IfAccessButtons\Domain\Model\AccessibilityButtons $accessibilityButtons
* @return void
*/
public function showAction(\Ifabrik\IfAccessButtons\Domain\Model\AccessibilityButtons $accessibilityButtons = NULL) {
$sessiondata = $GLOBALS ["TSFE"]->fe_user->getKey ( 'ses', 'accessibility' );
if (is_array($sessiondata)) {
if (!array_key_exists('kontrast', $sessiondata) || $sessiondata['kontrast'] == 0) {
$accessibilityButtons['contrast_title'] = 'contrast_on';
} else {
$accessibilityButtons['contrast_title'] = 'contrast_off';
}
if (!array_key_exists('schriftgroesse', $sessiondata) || $sessiondata['schriftgroesse'] == 0) {
$accessibilityButtons['fontsize_title'] = 'fonts_larger';
} else {
$accessibilityButtons['fontsize_title'] = 'fonts_normal';
}
} else {
$accessibilityButtons['contrast_title'] = 'contrast_on';
$accessibilityButtons['fontsize_title'] = 'fonts_normal';
}
$this->view->assign('accessibilityButtons', $accessibilityButtons);
}
/**
* action ajax
*/
public function ajaxAction() {
$data = array();
$sessiondata = $GLOBALS ["TSFE"]->fe_user->getKey ( 'ses', 'accessibility' );
if (! is_array($sessiondata)) {
$sessiondata = array();
}
$args = $this->request->getArguments();
if (array_key_exists('btn', $args)) {
if ($args['btn'] == 'kontrast') {
if (!array_key_exists('kontrast', $sessiondata) || $sessiondata['kontrast'] == 0) {
$sesKontrast = 1;
} else {
$sesKontrast = 0;
}
$sessiondata['kontrast'] = $sesKontrast;
$GLOBALS['TSFE']->fe_user->setKey('ses', 'accessibility', $sessiondata);
$GLOBALS['TSFE']->fe_user->storeSessionData();
}
if ($args['btn'] == 'schriftgroesse') {
if (!array_key_exists('schriftgroesse', $sessiondata) || $sessiondata['schriftgroesse'] == 0) {
$sesSchriftgroesse = 1;
} else {
$sesSchriftgroesse = 0;
}
$sessiondata['schriftgroesse'] = $sesSchriftgroesse;
$GLOBALS['TSFE']->fe_user->setKey('ses', 'accessibility', $sessiondata);
$GLOBALS['TSFE']->fe_user->storeSessionData();
}
}
return json_encode($data);
}
}

View File

@@ -0,0 +1,35 @@
<?php
namespace Ifabrik\IfAccessButtons\Domain\Model;
/***************************************************************
*
* Copyright notice
*
* (c) 2016 Marco Kuprat <mk@internetfabrik.de>, Internetfabrik GmbH
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script 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 General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* AccessibilityButtons
*/
class AccessibilityButtons extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
}

View File

@@ -0,0 +1,35 @@
<?php
namespace Ifabrik\IfAccessButtons\Domain\Repository;
/***************************************************************
*
* Copyright notice
*
* (c) 2016 Marco Kuprat <mk@internetfabrik.de>, Internetfabrik GmbH
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script 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 General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* The repository for AccessibilityButtons
*/
class AccessibilityButtonsRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
}

View File

@@ -0,0 +1,98 @@
#
# Extension Builder settings for extension if_access_buttons
# generated 2016-02-08T08:21:00Z
#
# See http://www.yaml.org/spec/1.2/spec.html
#
---
########### Overwrite settings ###########
#
# These settings only apply, if the roundtrip feature of the extension builder
# is enabled in the extension manager
#
# Usage:
# nesting reflects the file structure
# a setting applies to a file or recursive to all files and subfolders
#
# merge:
# means for classes: All properties ,methods and method bodies
# of the existing class will be modified according to the new settings
# but not overwritten
#
# for locallang xlf files: Existing keys and labels are always
# preserved (renaming a property or DomainObject will result in new keys and new labels)
#
# for other files: You will find a Split token at the end of the file
# see: \EBT\ExtensionBuilder\Service\RoundTrip::SPLIT_TOKEN
#
# After this token you can write whatever you want and it will be appended
# everytime the code is generated
#
# keep:
# files are never overwritten
# These settings may break the functionality of the extension builder!
# Handle with care!
#
#
############ extension settings ##############
overwriteSettings:
Classes:
Controller: merge
Domain:
Model: merge
Repository: merge
Configuration:
#TCA: merge
#TypoScript: keep
Resources:
Private:
#Language: merge
#Templates: keep
ext_icon.gif: keep
# ext_localconf.php: merge
# ext_tables.php: merge
# ext_tables.sql: merge
## use static date attribute in xliff files ##
#staticDateInXliffFiles: 2016-02-08T08:21:00Z
## list of error codes for warnings that should be ignored ##
#ignoreWarnings:
#503
######### settings for classBuilder #############################
#
# here you may define default parent classes for your classes
# these settings only apply for new generated classes
# you may also just change the parent class in the generated class file.
# It will be kept on next code generation, if the overwrite settings
# are configured to merge it
#
#################################################################
classBuilder:
Controller:
parentClass: \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
Model:
AbstractEntity:
parentClass: \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
AbstractValueObject:
parentClass: \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
Repository:
parentClass: \TYPO3\CMS\Extbase\Persistence\Repository
setDefaultValuesForClassProperties: true

View File

@@ -0,0 +1,76 @@
<?php
return array(
'ctrl' => array(
'title' => 'LLL:EXT:if_access_buttons/Resources/Private/Language/locallang_db.xlf:tx_ifaccessbuttons_domain_model_accessibilitybuttons',
'label' => 'uid',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => TRUE,
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'enablecolumns' => array(
),
'searchFields' => '',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('if_access_buttons') . 'Resources/Public/Icons/tx_ifaccessbuttons_domain_model_accessibilitybuttons.gif'
),
'interface' => array(
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, ',
),
'types' => array(
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, '),
),
'palettes' => array(
'1' => array('showitem' => ''),
),
'columns' => array(
'sys_language_uid' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array(
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array(
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
),
),
),
'l10n_parent' => array(
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array(
'type' => 'select',
'items' => array(
array('', 0),
),
'foreign_table' => 'tx_ifaccessbuttons_domain_model_accessibilitybuttons',
'foreign_table_where' => 'AND tx_ifaccessbuttons_domain_model_accessibilitybuttons.pid=###CURRENT_PID### AND tx_ifaccessbuttons_domain_model_accessibilitybuttons.sys_language_uid IN (-1,0)',
),
),
'l10n_diffsource' => array(
'config' => array(
'type' => 'passthrough',
),
),
't3ver_label' => array(
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
'config' => array(
'type' => 'input',
'size' => 30,
'max' => 255,
)
),
),
);

View File

@@ -0,0 +1,23 @@
plugin.tx_ifaccessbuttons_pi1 {
view {
# cat=plugin.tx_ifaccessbuttons_pi1/file; type=string; label=Path to template root (FE)
templateRootPath = EXT:if_access_buttons/Resources/Private/Templates/
# cat=plugin.tx_ifaccessbuttons_pi1/file; type=string; label=Path to template partials (FE)
partialRootPath = EXT:if_access_buttons/Resources/Private/Partials/
# cat=plugin.tx_ifaccessbuttons_pi1/file; type=string; label=Path to template layouts (FE)
layoutRootPath = EXT:if_access_buttons/Resources/Private/Layouts/
}
persistence {
# cat=plugin.tx_ifaccessbuttons_pi1//a; type=string; label=Default storage PID
storagePid =
}
settings {
# cat=plugin.tx_ifaccessbuttons_pi1/file; type=string; label=LLL:EXT:if_access_buttons/Resources/Private/Language/locallang.xlf:const.settings.cssFileKontrast
cssFileKontrast = EXT:if_access_buttons/Resources/Public/Css/kontrast.css
# cat=plugin.tx_ifaccessbuttons_pi1/file; type=string; label=LLL:EXT:if_access_buttons/Resources/Private/Language/locallang.xlf:const.settings.cssFileFontsize
cssFileFontsize = EXT:if_access_buttons/Resources/Public/Css/schrift-gross.css
}
}

View File

@@ -0,0 +1,17 @@
plugin.tx_ifaccessbuttons_pi1 {
view {
templateRootPath = {$plugin.tx_ifaccessbuttons_pi1.view.templateRootPath}
partialRootPath = {$plugin.tx_ifaccessbuttons_pi1.view.partialRootPath}
layoutRootPath = {$plugin.tx_ifaccessbuttons_pi1.view.layoutRootPath}
}
persistence {
storagePid = {$plugin.tx_ifaccessbuttons_pi1.persistence.storagePid}
}
settings {
cssFileKontrast = {$plugin.tx_ifaccessbuttons_pi1.settings.cssFileKontrast}
cssFileFontsize = {$plugin.tx_ifaccessbuttons_pi1.settings.cssFileFontsize}
}
}

View File

@@ -0,0 +1,82 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _admin-manual:
Administrator Manual
====================
Target group: **Administrators**
Describes how to manage the extension from an administrator point of view.
That relates to Page/User TSconfig, permissions, configuration etc.,
which administrator level users have access to.
Language should be non / semi-technical, explaining, using small examples.
.. _admin-installation:
Installation
------------
- How should the extension be installed?
- Are they dependencies to resolve?
- Is it a static template file to be included?
To install the extension, perform the following steps:
#. Go to the Extension Manager
#. Install the extension
#. Load the static template
#. ...
For a list of configuration options, using a definition list is recommended:
Some Configuration
This option enables...
Other configuration
This other option is for all the rest...
.. figure:: ../Images/AdministratorManual/ExtensionManager.png
:alt: Extension Manager
Extension Manager (caption of the image)
List of extensions within the Extension Manager also shorten with "EM" (legend of the image)
.. _admin-configuration:
Configuration
-------------
* Where and how the extension should be configured? TypoScript? PHP?
* Are there other prerequisite to full fill beforehand?
For example, configure a setting in a special way somewhere.
.. _admin-faq:
FAQ
---
Possible subsection: FAQ
Subsection
^^^^^^^^^^
Some subsection
Sub-subsection
""""""""""""""
Deeper into the structure...

View File

@@ -0,0 +1,16 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _changelog:
ChangeLog
=========
Providing a change log chapter is optional. You can also refer
users to the ChangeLog file inside the extension or to some repository's
commit listing.

View File

@@ -0,0 +1,106 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _configuration:
Configuration Reference
=======================
Technical information: Installation, Reference of TypoScript options,
configuration options on system level, how to extend it, the technical
details, how to debug it and so on.
Language should be technical, assuming developer knowledge of TYPO3.
Small examples/visuals are always encouraged.
Target group: **Developers**
.. _configuration-typoscript:
TypoScript Reference
--------------------
Possible subsections: Reference of TypoScript options.
The construct below show the recommended structure for
TypoScript properties listing and description.
Properties should be listed in the order in which they
are executed by your extension, but the first should be
alphabetical for easier access.
When detailing data types or standard TypoScript
features, don't hesitate to cross-link to the TypoScript
Reference as shown below. See the :file:`Settings.yml`
file for the declaration of cross-linking keys.
Properties
^^^^^^^^^^
.. container:: ts-properties
=========================== ===================================== ======================= ====================
Property Data type :ref:`t3tsref:stdwrap` Default
=========================== ===================================== ======================= ====================
allWrap_ :ref:`t3tsref:data-type-wrap` yes :code:`<div>|</div>`
`subst\_elementUid`_ :ref:`t3tsref:data-type-boolean` no 0
wrapItemAndSub_ :ref:`t3tsref:data-type-wrap`
=========================== ===================================== ======================= ====================
Property details
^^^^^^^^^^^^^^^^
.. only:: html
.. contents::
:local:
:depth: 1
.. _ts-plugin-tx-extensionkey-stdwrap:
allWrap
"""""""
:typoscript:`plugin.tx_extensionkey.allWrap =` :ref:`t3tsref:data-type-wrap`
Wraps the whole item.
.. _ts-plugin-tx-extensionkey-wrapitemandsub:
wrapItemAndSub
""""""""""""""
:typoscript:`plugin.tx_extensionkey.wrapItemAndSub =` :ref:`t3tsref:data-type-wrap`
Wraps the whole item and any submenu concatenated to it.
.. _ts-plugin-tx-extensionkey-substelementUid:
subst_elementUid
""""""""""""""""
:typoscript:`plugin.tx_extensionkey.subst_elementUid =` :ref:`t3tsref:data-type-boolean`
If set, all appearances of the string ``{elementUid}`` in the total
element html-code (after wrapped in allWrap_) are substituted with the
uid number of the menu item. This is useful if you want to insert an
identification code in the HTML in order to manipulate properties with
JavaScript.
.. _configuration-faq:
FAQ
---
Possible subsection: FAQ

View File

@@ -0,0 +1,60 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _developer:
Developer Corner
================
Target group: **Developers**
Use this section for *providing code examples* or any **useful** information code wise.
.. _developer-hooks:
Hooks
-----
Possible hook examples. Input parameters are:
+----------------+---------------+---------------------------------+
| Parameter | Data type | Description |
+================+===============+=================================+
| $table | string | Name of the table |
+----------------+---------------+---------------------------------+
| $field | string | Name of the field |
+----------------+---------------+---------------------------------+
Use parameter :code:`$table` to retrieve the table name...
.. _developer-api:
API
---
How to use the API...
.. code-block:: php
$stuff = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
'\\Foo\\Bar\\Utility\\Stuff'
);
$stuff->do();
or some other language:
.. code-block:: javascript
:linenos:
:emphasize-lines: 2-4
$(document).ready(
function () {
doStuff();
}
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

View File

@@ -0,0 +1,21 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. This is 'Includes.txt'. It is included at the very top of each and
every ReST source file in this documentation project (= manual).
.. ==================================================
.. DEFINE SOME TEXT ROLES
.. --------------------------------------------------
.. role:: typoscript(code)
.. role:: ts(typoscript)
:class: typoscript
.. role:: php(code)
.. highlight:: php

View File

@@ -0,0 +1,64 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: Includes.txt
.. _start:
=============================================================
Accessibility Buttons
=============================================================
.. only:: html
:Classification:
if_access_buttons
:Version:
|release|
:Language:
en
:Description:
Accessibility Buttons (Contrast, Fontsize)
:Keywords:
comma,separated,list,of,keywords
:Copyright:
2016
:Author:
Marco Kuprat
:Email:
mk@internetfabrik.de
:License:
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
:Rendered:
|today|
The content of this document is related to TYPO3,
a GNU/GPL CMS/Framework available from `www.typo3.org <http://www.typo3.org/>`_.
**Table of Contents**
.. toctree::
:maxdepth: 3
:titlesonly:
Introduction/Index
User/Index
Administrator/Index
Configuration/Index
Developer/Index
KnownProblems/Index
ToDoList/Index
ChangeLog/Index
Links

View File

@@ -0,0 +1,46 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _introduction:
Introduction
============
.. _what-it-does:
What does it do?
----------------
This chapter should give a brief overview of the extension. What does it do? What problems does it solve?
Who is interested in this? Basically, this section includes everything people need to know to decide whether they
should go on with this extension or not.
.. important::
Please don't forget to repeat your extension's version number in the
:file:`Settings.yml` file, in the :code:`release` property. It will be
automatically picked up on the cover page by the :code:`|release|`
substitution.
.. _screenshots:
Screenshots
-----------
This chapter should help people figure how the extension works. Remove it
if not relevant.
.. figure:: ../Images/IntroductionPackage.png
:width: 500px
:alt: Introduction Package
Introduction Package just after installation (caption of the image)
How the Frontend of the Introduction Package looks like just after installation (legend of the image)

View File

@@ -0,0 +1,17 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _known-problems:
Known Problems
==============
Say where bugs can be reported / followed up. Is it a
`bug tracker <http://forge.typo3.org/projects/typo3cms-doc-official-extension-template/issues>`_?
Use this section for informing about any type of of problem
that are not necessarily named in the bug tracker such as performance issues, ...

View File

@@ -0,0 +1,24 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: Includes.txt
.. _links:
Links
-----
:TER:
https://typo3.org/extensions/repository/view/<extension key>
:Bug Tracker:
https://forge.typo3.org/projects/extension-<extension key>/issues
:Git Repository:
https://github.com/<username>/<extension key>
:Contact:
`@<username> <https://twitter.com/your-username>`__

View File

@@ -0,0 +1,65 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _start:
=============================================================
###PROJECT_NAME### (Deutsch)
=============================================================
.. only:: html
:Klassifikation:
extension_key
:Version:
|release|
:Sprache:
de
:Beschreibung:
Geben Sie eine Beschreibung ein.
:Schlüsselwörter:
komma-getrennte,Liste,von,Schlüsselwörtern
:Copyright:
###YEAR###
:Autor:
###AUTHOR###
:E-Mail:
author@example.com
:Lizenz:
Dieses Dokument wird unter der Open Publication License, siehe
http://www.opencontent.org/openpub/ veröffentlicht.
:Gerendert:
|today|
Der Inhalt dieses Dokuments bezieht sich auf TYPO3,
ein GNU/GPL CMS-Framework auf `www.typo3.org <https://typo3.org/>`__.
**Inhaltsverzeichnis**
.. toctree::
:maxdepth: 3
:titlesonly:
.. Introduction/Index
.. UserManual/Index
.. AdministratorManual/Index
.. Configuration/Index
.. DeveloperCorner/Index
.. KnownProblems/Index
.. ToDoList/Index
.. ChangeLog/Index

View File

@@ -0,0 +1,24 @@
How to translate
================
This directory contains the German translation of your documentation.
This is a complete Sphinx project but you may reuse assets from the
main documentation under Documentation/.
If you plan to translate your documentation to German, you should
rename this directory and remove the suffix ".tmpl":
Localization.de_DE.tmpl -> Localization.de_DE
As this file is not needed either, feel free to delete it as well.
Supported languages
===================
Please visit http://sphinx-doc.org/latest/config.html#intl-options for a
list of languages supported by Sphinx.
Please note however that TYPO3 is using locales so you may need to
extend the language code from Sphinx into a proper locale to be used
by TYPO3.

View File

@@ -0,0 +1,29 @@
# This is the project specific Settings.yml file.
# Place Sphinx specific build information here.
# Settings given here will replace the settings of 'conf.py'.
# Below is an example of intersphinx mapping declaration
# Add more mappings depending on what manual you want to link to
# Remove entirely if you don't need cross-linking
---
conf.py:
copyright: 2012-2015
project: Extension Name (Deutsch)
version: x.y
release: x.y.z
intersphinx_mapping:
t3tsref:
- https://docs.typo3.org/typo3cms/TyposcriptReference/
- null
latex_documents:
- - Index
- <extension_key>.tex
- Extension Name (Français)
- Your Name
- manual
latex_elements:
papersize: a4paper
pointsize: 10pt
preamble: \usepackage{typo3}
...

View File

@@ -0,0 +1,65 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _start:
=============================================================
###PROJECT_NAME### (Français)
=============================================================
.. only:: html
:Classification:
extension_key
:Version:
|release|
:Langue:
fr
:Description:
entrez une description.
:Mots-clés:
list,mots-clés,séparés,par,virgules
:Copyright:
###YEAR###
:Auteur:
###AUTHOR###
:E-mail:
author@example.com
:Licence:
Ce document est publié sous la licence de publication libre
disponible sur http://www.opencontent.org/openpub/
:Généré:
|today|
Le contenu de ce document est en relation avec TYPO3,
un CMS/Framework GNU/GPL disponible sur `www.typo3.org <https://typo3.org/>`__.
**Sommaire**
.. toctree::
:maxdepth: 3
:titlesonly:
.. Introduction/Index
.. UserManual/Index
.. AdministratorManual/Index
.. Configuration/Index
.. DeveloperCorner/Index
.. KnownProblems/Index
.. ToDoList/Index
.. ChangeLog/Index

View File

@@ -0,0 +1,24 @@
How to translate
================
This directory contains the French translation of your documentation.
This is a complete Sphinx project but you may reuse assets from the
main documentation under Documentation/.
If you plan to translate your documentation to French, you should
rename this directory and remove the suffix ".tmpl":
Localization.fr_FR.tmpl -> Localization.fr_FR
As this file is not needed either, feel free to delete it as well.
Supported languages
===================
Please visit http://sphinx-doc.org/latest/config.html#intl-options for a
list of languages supported by Sphinx.
Please note however that TYPO3 is using locales so you may need to
extend the language code from Sphinx into a proper locale to be used
by TYPO3.

View File

@@ -0,0 +1,29 @@
# This is the project specific Settings.yml file.
# Place Sphinx specific build information here.
# Settings given here will replace the settings of 'conf.py'.
# Below is an example of intersphinx mapping declaration
# Add more mappings depending on what manual you want to link to
# Remove entirely if you don't need cross-linking
---
conf.py:
copyright: 2012-2015
project: Extension Name (Français)
version: x.y
release: x.y.z
intersphinx_mapping:
t3tsref:
- https://docs.typo3.org/typo3cms/TyposcriptReference/
- null
latex_documents:
- - Index
- <extension_key>.tex
- Extension Name (Français)
- Your Name
- manual
latex_elements:
papersize: a4paper
pointsize: 10pt
preamble: \usepackage{typo3}
...

View File

@@ -0,0 +1,32 @@
# This is the project specific Settings.yml file.
# Place Sphinx specific build information here.
# Settings given here will replace the settings of 'conf.py'.
# Below is an example of intersphinx mapping declaration
# Add more mappings depending on what manual you want to link to
# Remove entirely if you don't need cross-linking
---
conf.py:
copyright: 2016
project: Accessibility Buttons
version:
release:
intersphinx_mapping:
t3tsref:
- http://docs.typo3.org/typo3cms/TyposcriptReference/
- null
latex_documents:
- - Index
- if_access_buttons.tex
- Accessibility Buttons
- Marco Kuprat
- manual
latex_elements:
papersize: a4paper
pointsize: 10pt
preamble: \usepackage
html_theme_options:
github_repository: TYPO3-Documentation/TYPO3CMS-Example-ExtensionManual
github_branch: latest
...

View File

@@ -0,0 +1,16 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _todo:
To-Do list
==========
Give a link pointing to a `roadmap <http://forge.typo3.org/projects/typo3cms-doc-official-extension-template/roadmap>`_.
Alternatively, you can dress up a list of things you want to add or fix in this chapter
or give a vision about where the extension is heading.

View File

@@ -0,0 +1,67 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _user-manual:
Users Manual
============
Target group: **Editors**
Here should be described how to use the extension from the editor perspective.
- How does it work?
- works well when doing this.
- does not work so well when doing that
but we can live with it.
- **mind indentation when nesting lists**.
- How to install the plugin on a web page?
- What options are available?
Language should be non-technical, explaining, using small examples.
Don't use to many acronyms unless they have been explained.
Don't be confusing by putting information targeting administrators.
.. tip::
Take a break from time to time.
Admonitions should be used to warn the users about potential
pitfalls, attract their attention to important elements
or just add some notes for for information (further reading,
for example).
.. important::
Remember to always say "please" when asking your software to
do something.
Provide screenshots as needed for making things clear. When creating
screenshots, try using the `Introduction Package <http://demo.typo3.org/>`_
as a neutral TYPO3 CMS instance.
.. figure:: ../Images/UserManual/BackendView.png
:width: 500px
:alt: Backend view
Default Backend view (caption of the image)
The Backend view of TYPO3 after the user has clicked on module "Page". (legend of the image)
.. _user-faq:
FAQ
---
Possible subsection: FAQ

View File

@@ -0,0 +1,87 @@
{
"modules": [
{
"config": {
"position": [
455,
149
]
},
"name": "New Model Object",
"value": {
"actionGroup": {
"_default0_list": false,
"_default1_show": true,
"_default2_new_create": false,
"_default3_edit_update": false,
"_default4_delete": false,
"customActions": []
},
"name": "AccessibilityButtons",
"objectsettings": {
"addDeletedField": false,
"addHiddenField": false,
"addStarttimeEndtimeFields": false,
"aggregateRoot": true,
"categorizable": false,
"description": "",
"mapToTable": "",
"parentClass": "",
"sorting": false,
"type": "Entity",
"uid": "806181693390"
},
"propertyGroup": {
"properties": []
},
"relationGroup": {
"relations": []
}
}
}
],
"properties": {
"backendModules": [],
"description": "Accessibility Buttons (Contrast, Fontsize)",
"emConf": {
"category": "plugin",
"custom_category": "",
"dependsOn": "typo3 => 6.2.0-6.2.99\n",
"disableLocalization": false,
"disableVersioning": false,
"skipGenerateDocumentationTemplate": false,
"sourceLanguage": "en",
"state": "alpha",
"version": ""
},
"extensionKey": "if_access_buttons",
"name": "Accessibility Buttons",
"originalExtensionKey": "",
"persons": [
{
"company": "Internetfabrik GmbH",
"email": "mk@internetfabrik.de",
"name": "Marco Kuprat",
"role": "Developer"
}
],
"plugins": [
{
"actions": {
"controllerActionCombinations": "",
"noncacheableActions": "",
"switchableActions": ""
},
"key": "pi1",
"name": "Accessibility Buttons"
}
],
"vendorName": "Ifabrik"
},
"wires": [],
"log": {
"last_modified": "2016-02-08 08:24",
"extension_builder_version": "6.2",
"be_user": "Marco Kuprat (1)"
}
}

View File

@@ -0,0 +1,11 @@
# Apache < 2.3
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
# Apache >= 2.3
<IfModule mod_authz_core.c>
Require all denied
</IfModule>

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2016-02-08T08:24:20Z" product-name="if_access_buttons">
<header/>
<body>
<trans-unit id="tx_ifaccessbuttons_domain_model_accessibilitybuttons">
<source>Accessibility Buttons</source>
<target>Barrierefreiheit Buttons</target>
</trans-unit>
<trans-unit id="contrast_on">
<source>Switch contrast view on</source>
<target>Kontrastansicht einschalten</target>
</trans-unit>
<trans-unit id="contrast_off">
<source>Switch contrast view off</source>
<target>Kontrastansicht ausschalten</target>
</trans-unit>
<trans-unit id="fonts_larger">
<source>Increase font size</source>
<target>Größere Schrift</target>
</trans-unit>
<trans-unit id="fonts_normal">
<source>Normal font size</source>
<target>Normale Schriftgröße</target>
</trans-unit>
<trans-unit id="const.settings.cssFileKontrast">
<source>Path to CSS file for contrast view</source>
<target>Pfad zur CSS-Datei für Kontrastansicht</target>
</trans-unit>
<trans-unit id="const.settings.cssFileFontsize">
<source>Path to CSS file for fontsize</source>
<target>Pfad zur CSS-Datei für größere Schrift</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2016-02-08T08:24:20Z" product-name="if_access_buttons">
<header/>
<body>
<trans-unit id="tx_ifaccessbuttons_domain_model_accessibilitybuttons">
<source>Accessibility Buttons</source>
</trans-unit>
<trans-unit id="contrast_on">
<source>Switch contrast view on</source>
</trans-unit>
<trans-unit id="contrast_off">
<source>Switch contrast view off</source>
</trans-unit>
<trans-unit id="fonts_larger">
<source>Increase font size</source>
</trans-unit>
<trans-unit id="fonts_normal">
<source>Normal font size</source>
</trans-unit>
<trans-unit id="const.settings.cssFileKontrast">
<source>Path to CSS file for contrast view</source>
</trans-unit>
<trans-unit id="const.settings.cssFileFontsize">
<source>Path to CSS file for fontsize</source>
</trans-unit>
</body>
</file>
</xliff>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2016-02-08T08:24:20Z" product-name="if_access_buttons">
<header/>
<body>
<trans-unit id="tx_ifaccessbuttons_domain_model_accessibilitybuttons">
<source>Accessibility Buttons</source>
</trans-unit>
</body>
</file>
</xliff>

View File

@@ -0,0 +1,2 @@
<f:render section="main" />

View File

@@ -0,0 +1,3 @@
<i class="fa fa-text-height" id="schrift_toggle" title="{f:translate(key: '{accessibilityButtons.fontsize_title}')}"></i>
<i class="fa fa-adjust" id="kontrast_toggle" title="{f:translate(key: '{accessibilityButtons.contrast_title}')}"></i>

View File

@@ -0,0 +1,18 @@
<f:layout name="Default" />
This Template is responsible for displaying a single view for a domain object
If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
Resources:
Private:
Templates:
Show.html: keep
Otherwise your changes will be overwritten the next time you save the extension in the extension builder
<f:section name="main">
<f:flashMessages renderMode="div" />
<f:render partial="AccessibilityButtons/Properties" arguments="{accessibilityButtons:accessibilityButtons}" />
</f:section>

View File

@@ -0,0 +1,118 @@
#header .name, #header .name a {
color: #333;
}
#header .nav,
#header .nav > li > ul,
#header .navbutton,
.fortschritt li.hier span:before {
background: #333;
}
#header .nav,
#header .nav > li > ul {
border-color: #333;
}
#header .navbutton:hover {
background: #fff;
color: #333;
border-color: #333;
}
#header .nav > li a,
#header .nav > li > ul > li a {
border-color: #fff;
color: #fff;
}
#header .nav > li:hover,
#header .nav > li > ul > li:hover {
background: #fff;
}
#header .nav > li:hover a,
#header .nav > li > ul > li:hover a,
#header .nav > li.hatsub > ul > li:hover a {
color: #333;
}
#header .nav > li.hatsub > ul > li a {
color: #fff;
}
#planer .blau th,
#planer .orange th,
#planer .gelb th,
#planer .gruen th,
select.blau, .blau option,
select.orange, .orange option,
select.gelb, .gelb option,
select.gruen, .gruen option {
background: #333;
color: #fff;
}
#planer .blau td,
#planer .orange td,
#planer .gelb td,
#planer .gruen td {
background: #eee;
color: #000;
}
.planer-info {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
background: #fff;
}
#planer tfoot td.ergebnis-text.fehler,
#planer #add_profilfach .fa-plus-circle,
#planer tr .entfernen {
color: #333 !important;
}
.weiter {
background-color: #333;
color: #fff;
border: none;
}
.rueck {
background-color: #fff;
border: 2px solid #333;
padding: 3px 8px;
}
.fortschritt li.ok, .fortschritt li.hier {
border-color: #000;
}
select {
background-color: #fff;
border: 2px solid #333;
padding: 3px 8px;
}
#inhalt .indexbox h2,
.indexbox a.button {
background: #333 !important;
color: #fff !important;
}
#inhalt .indexbox h2:after {
border-color: #333 transparent transparent #333 !important;
}
#header .nav:after {
right: -28px;
border-color: #333 transparent transparent #333;
}

View File

@@ -0,0 +1,3 @@
body {
font-size: 18px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

View File

@@ -0,0 +1,59 @@
<?php
namespace Ifabrik\IfAccessButtons\Tests\Unit\Controller;
/***************************************************************
* Copyright notice
*
* (c) 2016 Marco Kuprat <mk@internetfabrik.de>, Internetfabrik GmbH
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script 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 General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Test case for class Ifabrik\IfAccessButtons\Controller\AccessibilityButtonsController.
*
* @author Marco Kuprat <mk@internetfabrik.de>
*/
class AccessibilityButtonsControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
/**
* @var \Ifabrik\IfAccessButtons\Controller\AccessibilityButtonsController
*/
protected $subject = NULL;
public function setUp() {
$this->subject = $this->getMock('Ifabrik\\IfAccessButtons\\Controller\\AccessibilityButtonsController', array('redirect', 'forward', 'addFlashMessage'), array(), '', FALSE);
}
public function tearDown() {
unset($this->subject);
}
/**
* @test
*/
public function showActionAssignsTheGivenAccessibilityButtonsToView() {
$accessibilityButtons = new \Ifabrik\IfAccessButtons\Domain\Model\AccessibilityButtons();
$view = $this->getMock('TYPO3\\CMS\\Extbase\\Mvc\\View\\ViewInterface');
$this->inject($this->subject, 'view', $view);
$view->expects($this->once())->method('assign')->with('accessibilityButtons', $accessibilityButtons);
$this->subject->showAction($accessibilityButtons);
}
}

View File

@@ -0,0 +1,57 @@
<?php
namespace Ifabrik\IfAccessButtons\Tests\Unit\Domain\Model;
/***************************************************************
* Copyright notice
*
* (c) 2016 Marco Kuprat <mk@internetfabrik.de>, Internetfabrik GmbH
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script 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 General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Test case for class \Ifabrik\IfAccessButtons\Domain\Model\AccessibilityButtons.
*
* @copyright Copyright belongs to the respective authors
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*
* @author Marco Kuprat <mk@internetfabrik.de>
*/
class AccessibilityButtonsTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
/**
* @var \Ifabrik\IfAccessButtons\Domain\Model\AccessibilityButtons
*/
protected $subject = NULL;
public function setUp() {
$this->subject = new \Ifabrik\IfAccessButtons\Domain\Model\AccessibilityButtons();
}
public function tearDown() {
unset($this->subject);
}
/**
* @test
*/
public function dummyTestToNotLeaveThisFileEmpty() {
$this->markTestIncomplete();
}
}

View File

@@ -0,0 +1,34 @@
<?php
/***************************************************************
* Extension Manager/Repository config file for ext: "if_access_buttons"
*
* Auto generated by Extension Builder 2016-02-08
*
* Manual updates:
* Only the data in the array - anything else is removed by next write.
* "version" and "dependencies" must not be touched!
***************************************************************/
$EM_CONF[$_EXTKEY] = array(
'title' => 'Accessibility Buttons',
'description' => 'Accessibility Buttons (Contrast, Fontsize)',
'category' => 'plugin',
'author' => 'Marco Kuprat',
'author_email' => 'mk@internetfabrik.de',
'state' => 'beta',
'internal' => '',
'uploadfolder' => '0',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '0.1.1',
'constraints' => array(
'depends' => array(
'typo3' => '6.2.0-7.6.99',
),
'conflicts' => array(
),
'suggests' => array(
),
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

View File

@@ -0,0 +1,16 @@
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Ifabrik.' . $_EXTKEY,
'Pi1',
array(
'AccessibilityButtons' => 'show,ajax',
),
// non-cacheable actions
array(
'AccessibilityButtons' => 'show,ajax',
)
);

View File

@@ -0,0 +1,15 @@
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Ifabrik.' . $_EXTKEY,
'Pi1',
'Accessibility Buttons'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Accessibility Buttons');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_ifaccessbuttons_domain_model_accessibilitybuttons', 'EXT:if_access_buttons/Resources/Private/Language/locallang_csh_tx_ifaccessbuttons_domain_model_accessibilitybuttons.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_ifaccessbuttons_domain_model_accessibilitybuttons');

View File

@@ -0,0 +1,32 @@
#
# Table structure for table 'tx_ifaccessbuttons_domain_model_accessibilitybuttons'
#
CREATE TABLE tx_ifaccessbuttons_domain_model_accessibilitybuttons (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
t3ver_oid int(11) DEFAULT '0' NOT NULL,
t3ver_id int(11) DEFAULT '0' NOT NULL,
t3ver_wsid int(11) DEFAULT '0' NOT NULL,
t3ver_label varchar(255) DEFAULT '' NOT NULL,
t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
t3ver_stage int(11) DEFAULT '0' NOT NULL,
t3ver_count int(11) DEFAULT '0' NOT NULL,
t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
t3ver_move_id int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumblob,
PRIMARY KEY (uid),
KEY parent (pid),
KEY t3ver_oid (t3ver_oid,t3ver_wsid),
KEY language (l10n_parent,sys_language_uid)
);