Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Thejuse committed Mar 20, 2018
2 parents 39c15b7 + 2c45d5c commit fc4646c
Show file tree
Hide file tree
Showing 9 changed files with 241 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Changelog

## 1.0.0
* Initial Release
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
# favicon_manager
# Favicon-Manager
> Typo3 Extension for adding favicons for every device
## Getting Started
### Download
#### Typo3 (recomended)
1. Go to your Extension-Manager
2. Go to Download-Extensions
3. Update your Extension-Manager if needed
4. Search for `favicon_manager `
5. Download the newest Version
6. Go to your Template and include the favicon_manager template
7. Generate your Icon at [favicon-generator.org](https://www.favicon-generator.org/)
8. Generate a folder at `fileadmin/user_upload` with the name `favicons`
9. Upload everything of your generated icons
10. Go to Constants-Editor and edit the constants of favicon_manager

#### Manual Install
1. Download the extension via GitHub or [Typo3-Ter](https://extensions.typo3.org/extension/favicon_manager/)
2. Go to your FTP and navigate to `/typo3conf/ext/` and upload the favicon_manager folder there
3. Go to your Backend -> Extensions
4. Activate the favicon_manager extension
5. Go to your Template and include the favicon_manager template
6. Generate your Icon at [favicon-generator.org](https://www.favicon-generator.org/)
7. Generate a folder at `fileadmin/user_upload` with the name `favicons`
8. Upload everything of your generated icons
9. Go to Constants-Editor and edit the constants of favicon_manager

### How to set the Path
The icon Path should look like this `fileadmin/user_upload/favicons`


## Dependencies
Minimal Typo3 8.7 or greater

© 2018 [Julian Seidl](https://www.jseidl.at)
6 changes: 6 additions & 0 deletions favicon_manager/Configuration/Typoscript/constants.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# cat=Favicon-Manager; type=string; label= Icon Path : Paht to your icon directory
faviconmanager.path =
# cat=Favicon-Manager; type=string; label= Theme-Color : Theme-Color Meta Tag
faviconmanager.theme-color = #ffffff
# cat=Favicon-Manager; type=string; label= Tile-Color : msapplication tile-color
faviconmanager.tile-color = #ffffff
25 changes: 25 additions & 0 deletions favicon_manager/Configuration/Typoscript/setup.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
page = PAGE

page {
shortcutIcon = {$faviconmanager.path}
headerData.4694 = TEXT
headerData.4694.value (
<link rel="apple-touch-icon" sizes="57x57" href="/{$faviconmanager.path}/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/{$faviconmanager.path}/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/{$faviconmanager.path}/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/{$faviconmanager.path}/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/{$faviconmanager.path}/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/{$faviconmanager.path}/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/{$faviconmanager.path}/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/{$faviconmanager.path}/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/{$faviconmanager.path}/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/{$faviconmanager.path}/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/{$faviconmanager.path}/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/{$faviconmanager.path}/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/{$faviconmanager.path}/favicon-16x16.png">
<link rel="manifest" href="/{$faviconmanager.path}/manifest.json">
<meta name="msapplication-TileColor" content="{$faviconmanager.tile-color}">
<meta name="msapplication-TileImage" content="/{$faviconmanager.path}/ms-icon-144x144.png">
<meta name="theme-color" content="{$faviconmanager.theme-color}">
)
}
11 changes: 11 additions & 0 deletions favicon_manager/Resources/Private/.htaccess
Original file line number Diff line number Diff line change
@@ -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>
19 changes: 19 additions & 0 deletions favicon_manager/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "faviconmanager/favicon-manager",
"type": "typo3-cms-extension",
"description": "",
"authors": [
{
"name": "Julian Seidl",
"role": "Developer"
}
],
"require": {
"typo3/cms-core": "^8.7.1"
},
"autoload": {
"psr-4": {
"FaviconManager\\FaviconManager\\": "Classes"
}
}
}
21 changes: 21 additions & 0 deletions favicon_manager/ext_emconf.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
$EM_CONF[$_EXTKEY] = [
'title' => 'Favicon-Manager',
'description' => 'Generates favicons for all devices',
'category' => 'plugin',
'author' => 'Julian Seidl',
'author_email' => 'kontakt@julianseidl.at',
'state' => 'stable',
'internal' => '',
'uploadfolder' => '0',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '1.0.0',
'constraints' => [
'depends' => [
'typo3' => '8.7.0-8.7.99',
],
'conflicts' => [],
'suggests' => [],
],
];
108 changes: 108 additions & 0 deletions favicon_manager/ext_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions favicon_manager/ext_tables.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
defined('TYPO3_MODE') || die('Access denied.');

call_user_func(
function()
{

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('favicon_manager', 'Configuration/TypoScript', 'Favicon-Manager');

}
);

0 comments on commit fc4646c

Please sign in to comment.