-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Eoxia/2.1.0
2.1.0
- Loading branch information
Showing
51 changed files
with
1,108 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* Plugin Name: Annonces | ||
* Plugin URI: | ||
* Description: Add all type of announces you need to display in a large map. | ||
* Version: 2.0.0 | ||
* Version: 2.1.0 | ||
* Author: Eoxia <[email protected]> | ||
* Author URI: http://www.eoxia.com/ | ||
* License: AGPL-3.0 or later | ||
|
@@ -23,11 +23,27 @@ | |
/** | ||
* Enable ACF 5 early access | ||
*/ | ||
DEFINE( 'ACF_EARLY_ACCESS', '5' ); | ||
if ( ! defined( 'ACF_EARLY_ACCESS' ) ) { | ||
DEFINE( 'ACF_EARLY_ACCESS', '5' ); | ||
} | ||
|
||
// Include EO_Framework. | ||
require_once 'core/external/eo-framework/eo-framework.php'; | ||
|
||
/** | ||
* Regenerate permalinks | ||
* | ||
* @since 2.1.0 | ||
* @return void | ||
*/ | ||
function my_rewrite_flush() { | ||
Annonce_Action::g()->annonces_generate_post_type; | ||
Label_Action::g()->label_generate_post_type; | ||
|
||
flush_rewrite_rules(); | ||
} | ||
register_activation_hook( __FILE__, '\annonces\my_rewrite_flush' ); | ||
|
||
|
||
// Boot your plugin. | ||
\eoxia\Init_Util::g()->exec( PLUGIN_ANNONCES_PATH, basename( __FILE__, '.php' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,7 @@ | |
* @since 0.1.0 | ||
* @version 0.1.0 | ||
*/ | ||
|
||
$media__large: 1200px; | ||
$media__medium: 770px; | ||
$media__small: 480px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
@import "annonce/annonce"; | ||
@import "label/label"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@import "map"; | ||
@import "single"; | ||
@import "associated"; | ||
|
||
#annonces-google-map { | ||
width: 100%; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.associated-announces .associated-content { | ||
.associated-element-content { | ||
align-self: center; | ||
} | ||
.element-title, .element-tax { | ||
line-height: 1; | ||
} | ||
figure img { | ||
max-height: 100px; | ||
width: auto; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Annonces v2.x.x\n" | ||
"POT-Creation-Date: 2018-07-02 17:49+0200\n" | ||
"PO-Revision-Date: 2018-07-02 17:49+0200\n" | ||
"POT-Creation-Date: 2018-07-17 17:34+0200\n" | ||
"PO-Revision-Date: 2018-07-18 14:52+0200\n" | ||
"Last-Translator: \n" | ||
"Language-Team: Eoxia [email protected]\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 2.0.8\n" | ||
"X-Generator: Poedit 2.0.9\n" | ||
"X-Poedit-Basepath: ../../..\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
"X-Poedit-SourceCharset: UTF-8\n" | ||
|
@@ -120,43 +120,79 @@ msgstr "Retourner à la page d'installation des extensions requises" | |
|
||
#: core/util/core.util.php:84 | ||
msgid "Plugin activated successfully." | ||
msgstr "L'extension a été activée" | ||
msgstr "L'extension a été activée." | ||
|
||
#: core/util/core.util.php:85 | ||
#, php-format | ||
msgid "All plugins installed and activated successfully. %s" | ||
msgstr "Tous les plugins ont été installés et activés : %s." | ||
msgstr "Tous les plugins ont été installés et activés : %s" | ||
|
||
#: modules/annonce/action/annonce.action.php:42 | ||
#: modules/annonce/action/annonce.action.php:43 | ||
#: modules/annonce/shortcode/annonce.shortcode.php:91 | ||
#: modules/annonce/action/annonce.action.php:63 | ||
#: modules/annonce/shortcode/annonce.shortcode.php:114 | ||
#: modules/option/action/option.action.php:41 | ||
#: modules/option/action/option.action.php:77 | ||
#: modules/option/action/option.action.php:82 | ||
msgid "Announces" | ||
msgstr "Annonces" | ||
|
||
#: modules/annonce/action/annonce.action.php:46 | ||
#: modules/annonce/action/annonce.action.php:66 | ||
msgid "Announce" | ||
msgstr "Annonce" | ||
|
||
#: modules/annonce/action/annonce.action.php:82 | ||
msgid "Announce taxonomy" | ||
#: modules/annonce/action/annonce.action.php:101 | ||
#: modules/annonce/action/annonce.action.php:102 | ||
msgid "Announce taxonomies" | ||
msgstr "Catégories annonces" | ||
|
||
#: modules/annonce/shortcode/annonce.shortcode.php:46 | ||
#: modules/annonce/action/annonce.action.php:118 | ||
msgid "Announce taxonomy" | ||
msgstr "Catégorie annonces" | ||
|
||
#: modules/annonce/shortcode/annonce.shortcode.php:48 | ||
#: modules/annonce/view/single-announce.php:37 | ||
msgid "Email" | ||
msgstr "Email" | ||
|
||
#: modules/annonce/shortcode/annonce.shortcode.php:51 | ||
#: modules/annonce/shortcode/annonce.shortcode.php:53 | ||
#: modules/annonce/view/single-announce.php:43 | ||
msgid "Phone number" | ||
msgstr "Numéro de téléphone" | ||
|
||
#: modules/annonce/shortcode/annonce.shortcode.php:58 | ||
#: modules/annonce/view/single-announce.php:49 | ||
msgid "Address" | ||
msgstr "Adresse" | ||
|
||
#: modules/annonce/view/main-markers.view.php:46 | ||
msgid "See" | ||
msgstr "Voir" | ||
|
||
#: modules/option/action/option.action.php:84 | ||
#: modules/annonce/view/single-announce.php:60 | ||
msgid "Author" | ||
msgstr "Auteur" | ||
|
||
#: modules/annonce/view/single-announce.php:71 | ||
msgid "Associated labels" | ||
msgstr "Certifications associées" | ||
|
||
#: modules/contact/view/main.view.php:19 modules/label/view/single-label.php:57 | ||
msgid "Associated announces" | ||
msgstr "Annonces associées" | ||
|
||
#: modules/label/action/label.action.php:41 | ||
msgid "Labels" | ||
msgstr "Certifications" | ||
|
||
#: modules/label/action/label.action.php:44 | ||
msgid "Label" | ||
msgstr "Certification" | ||
|
||
#: modules/label/view/single-label.php:37 | ||
msgid "Website" | ||
msgstr "Site internet" | ||
|
||
#: modules/option/action/option.action.php:89 | ||
msgid "Permalink Announce" | ||
msgstr "Permalien de Annonces" | ||
|
||
|
@@ -173,8 +209,25 @@ msgid "Obtain a google map api key" | |
msgstr "Obtenir une clé API Google Map" | ||
|
||
#: modules/option/view/main.view.php:32 | ||
msgid "Display label module" | ||
msgstr "Afficher le module appellation" | ||
|
||
#: modules/option/view/main.view.php:36 | ||
msgid "Activate" | ||
msgstr "Activer" | ||
|
||
#: modules/option/view/main.view.php:39 | ||
msgid "Check to display the label module" | ||
msgstr "Cocher pour afficher le module Appellation" | ||
|
||
#: modules/option/view/main.view.php:44 | ||
msgid "Update" | ||
msgstr "Mise à jour" | ||
|
||
#, fuzzy | ||
#~| msgid "Announces" | ||
#~ msgid "Annonces" | ||
#~ msgstr "Annonces" | ||
|
||
#~ msgid "You have to reload website permalinks after changing" | ||
#~ msgstr "Vous devrez par la suite mettre à jour les permaliens de votre site" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"action": {}, | ||
"class": {}, | ||
"util": {}, | ||
"helper": {} | ||
"helper": {}, | ||
"filter" : {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* Mains filters of module | ||
* | ||
* @author Eoxia <[email protected]> | ||
* @copyright (c) 2006-2018 Eoxia <[email protected]> | ||
* @license AGPLv3 <https://spdx.org/licenses/AGPL-3.0-or-later.html> | ||
* @package Annonces\Actions | ||
* @since 2.0.0 | ||
*/ | ||
|
||
namespace annonces; | ||
|
||
defined( 'ABSPATH' ) || exit; | ||
|
||
/** | ||
* Main actions of annonces | ||
*/ | ||
class Core_Filter { | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
public function __construct() { | ||
add_filter( 'acf/fields/google_map/api', array( $this, 'acf_filter_googlemap_api' ), 11 ); | ||
} | ||
|
||
/** | ||
* Change google map api key for ACF Map | ||
* | ||
* @since 2.0.0 | ||
* | ||
* @param string $api Google key. | ||
* | ||
* @return string $api Google key. | ||
*/ | ||
public function acf_filter_googlemap_api( $api ) { | ||
$api_key = get_option( 'annonces_google_key' ); | ||
$api['key'] = ( ! empty( $api_key ) ) ? $api_key : ''; | ||
return $api; | ||
} | ||
|
||
} | ||
|
||
new Core_Filter(); |
Empty file.
Oops, something went wrong.