Commit 1dd5ee05 authored by agnez's avatar agnez

submenu items

parent 2bcf2829
...@@ -53,12 +53,13 @@ function get_gasap_details($id){ ...@@ -53,12 +53,13 @@ function get_gasap_details($id){
foreach ($items as $item) { foreach ($items as $item) {
$test = absint( $item->street_number ); $test = absint( $item->street_number );
$long = absint( $item->long );?> $long = absint( $item->long );
<gasapcity><?php echo $item->city; ?></gasapcity> ?>
<gasapstreet><?php echo $item->street; ?></gasapstreet> <street><?php echo $item->street; ?></street>
<gasaplat><?php echo $item->lat; ?></gasaplat> <city><?php echo $item->city; ?></city>
<gasaplong><?php echo $item->long; ?></gasaplong> <geo:lat><?php echo $item->lat; ?></geo:lat>
<?php <geo:long><?php echo $item->long; ?></geo:long>
<?php
} }
} }
...@@ -78,35 +79,39 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ...@@ -78,35 +79,39 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
xmlns:atom="http://www.w3.org/2005/Atom" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
<?php do_action('rss2_ns'); ?>> <?php do_action('rss2_ns'); ?>>
<!-- Declaring channel with articles data -->
<?php $dateTimeFormat = 'D, M d Y H:i:s'; ?>
<channel> <channel>
<title><?php _e( 'export GASAPs pour RCR', 'gasap-rssrcr' ); ?></title> <title><?php _e( 'export GASAPs pour RCR', 'gasap-rssrcr' ); ?></title>
<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
<link><?php bloginfo_rss('url') ?></link> <link><?php bloginfo_rss('url') ?></link>
<description><?php bloginfo_rss('description') ?></description> <description><?php bloginfo_rss('description') ?></description>
<lastBuildDate><?php echo mysql2date($dateTimeFormat, get_lastpostmodified(), false); ?></lastBuildDate> <lastBuildDate><?php
$date = get_lastpostmodified( 'GMT' );
echo $date ? mysql2date( 'r', $date, false ) : date( 'r' );
?></lastBuildDate>
<language><?php echo get_option('rss_language'); ?></language> <language><?php echo get_option('rss_language'); ?></language>
<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'daily' ); ?></sy:updatePeriod> <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'daily' ); ?></sy:updatePeriod>
<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency><?php <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency><?php
do_action('rss2_head'); do_action('rss2_head');
if(have_posts()!=''){ if(have_posts()!=''){
while (have_posts()) : the_post(); ?> while (have_posts()) : the_post(); ?>
<item> <item>
<gasap id="<?php echo $post->ID; ?>"><?php the_title_rss(); ?></gasap> <title><?php the_title_rss(); ?></title>
<link><?php the_permalink_rss(); ?></link> <link><?php the_permalink_rss(); ?></link>
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description> <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded> <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
<?php get_gasap_details($post->ID); ?> <?php
get_gasap_details($post->ID); ?>
<guid isPermaLink="false"><?php the_guid(); ?></guid> <guid isPermaLink="false"><?php the_guid(); ?></guid><?php
rss_enclosure();
<?php rss_enclosure(); ?> do_action('rss2_item'); ?>
<?php do_action('rss2_item'); ?>
</item><?php </item>
<?php
endwhile; endwhile;
}else { }else {
echo 'no posts found'; echo _e( 'Sorry, no GASAP found', 'gasap-rssrcr' );
} ?> } ?>
</channel> </channel>
</rss><?php </rss><?php
......
...@@ -4,8 +4,8 @@ msgid "" ...@@ -4,8 +4,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: GASAP RSS 4 RCR 1.0\n" "Project-Id-Version: GASAP RSS 4 RCR 1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gasap-rssrcr\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gasap-rssrcr\n"
"POT-Creation-Date: 2017-07-31 18:56+0200\n" "POT-Creation-Date: 2017-07-31 19:33+0200\n"
"PO-Revision-Date: 2017-07-31 18:57+0200\n" "PO-Revision-Date: 2017-07-31 19:33+0200\n"
"Last-Translator: Lore <lore@mipsum.be>\n" "Last-Translator: Lore <lore@mipsum.be>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: fr_FR\n" "Language: fr_FR\n"
...@@ -15,10 +15,14 @@ msgstr "" ...@@ -15,10 +15,14 @@ msgstr ""
"X-Generator: Poedit 1.8.11\n" "X-Generator: Poedit 1.8.11\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: gasap-rssrcr.php:85 #: gasap-rssrcr.php:84
msgid "export GASAPs pour RCR" msgid "export GASAPs pour RCR"
msgstr "Export des fiches GASAP pour le RCR" msgstr "Export des fiches GASAP pour le RCR"
#: gasap-rssrcr.php:108
msgid "Sorry, no GASAP found"
msgstr "Malheureusement pas de GASAP trouvé"
#. Plugin Name of the plugin/theme #. Plugin Name of the plugin/theme
msgid "GASAP RSS 4 RCR" msgid "GASAP RSS 4 RCR"
msgstr "" msgstr ""
......
...@@ -4,7 +4,7 @@ msgid "" ...@@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: GASAP RSS 4 RCR 1.0\n" "Project-Id-Version: GASAP RSS 4 RCR 1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gasap-rssrcr\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gasap-rssrcr\n"
"POT-Creation-Date: 2017-07-31 16:56:33+00:00\n" "POT-Creation-Date: 2017-07-31 17:32:48+00:00\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
...@@ -12,10 +12,14 @@ msgstr "" ...@@ -12,10 +12,14 @@ msgstr ""
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
#: gasap-rssrcr.php:85 #: gasap-rssrcr.php:84
msgid "export GASAPs pour RCR" msgid "export GASAPs pour RCR"
msgstr "" msgstr ""
#: gasap-rssrcr.php:108
msgid "Sorry, no GASAP found"
msgstr ""
#. Plugin Name of the plugin/theme #. Plugin Name of the plugin/theme
msgid "GASAP RSS 4 RCR" msgid "GASAP RSS 4 RCR"
msgstr "" msgstr ""
......
...@@ -160,6 +160,9 @@ h6, .uk-h6 { ...@@ -160,6 +160,9 @@ h6, .uk-h6 {
font-size: 40px; font-size: 40px;
} }
} }
.sub-menu li{
padding-bottom: 1em;
}
.postdate{ .postdate{
font-size: 12px; font-size: 12px;
color: @global-success-background; color: @global-success-background;
...@@ -238,7 +241,7 @@ main .uk-container{ ...@@ -238,7 +241,7 @@ main .uk-container{
}#snippet_comment_devenir_prod /*p8*/{ }#snippet_comment_devenir_prod /*p8*/{
color: @global-muted-color; color: @global-muted-color;
.uk-grid{ .uk-grid{
background: url(images/bg_devenir_prod.png) center 65px no-repeat transparent; background: url(images/bg_devenir_prod.png) center 90px no-repeat transparent;
.uk-width-medium-1-3{ .uk-width-medium-1-3{
padding-top: 2em; padding-top: 2em;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment