Commit 1dd5ee05 authored by agnez's avatar agnez

submenu items

parent 2bcf2829
......@@ -53,12 +53,13 @@ function get_gasap_details($id){
foreach ($items as $item) {
$test = absint( $item->street_number );
$long = absint( $item->long );?>
<gasapcity><?php echo $item->city; ?></gasapcity>
<gasapstreet><?php echo $item->street; ?></gasapstreet>
<gasaplat><?php echo $item->lat; ?></gasaplat>
<gasaplong><?php echo $item->long; ?></gasaplong>
<?php
$long = absint( $item->long );
?>
<street><?php echo $item->street; ?></street>
<city><?php echo $item->city; ?></city>
<geo:lat><?php echo $item->lat; ?></geo:lat>
<geo:long><?php echo $item->long; ?></geo:long>
<?php
}
}
......@@ -78,35 +79,39 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
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'); ?>>
<!-- Declaring channel with articles data -->
<?php $dateTimeFormat = 'D, M d Y H:i:s'; ?>
<channel>
<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>
<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>
<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
do_action('rss2_head');
if(have_posts()!=''){
while (have_posts()) : the_post(); ?>
<item>
<gasap id="<?php echo $post->ID; ?>"><?php the_title_rss(); ?></gasap>
<item>
<title><?php the_title_rss(); ?></title>
<link><?php the_permalink_rss(); ?></link>
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
<?php get_gasap_details($post->ID); ?>
<guid isPermaLink="false"><?php the_guid(); ?></guid>
<?php
get_gasap_details($post->ID); ?>
<guid isPermaLink="false"><?php the_guid(); ?></guid><?php
rss_enclosure();
do_action('rss2_item'); ?>
<?php rss_enclosure(); ?>
<?php do_action('rss2_item'); ?>
</item><?php
</item>
<?php
endwhile;
}else {
echo 'no posts found';
echo _e( 'Sorry, no GASAP found', 'gasap-rssrcr' );
} ?>
</channel>
</rss><?php
......
......@@ -4,8 +4,8 @@ msgid ""
msgstr ""
"Project-Id-Version: GASAP RSS 4 RCR 1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gasap-rssrcr\n"
"POT-Creation-Date: 2017-07-31 18:56+0200\n"
"PO-Revision-Date: 2017-07-31 18:57+0200\n"
"POT-Creation-Date: 2017-07-31 19:33+0200\n"
"PO-Revision-Date: 2017-07-31 19:33+0200\n"
"Last-Translator: Lore <lore@mipsum.be>\n"
"Language-Team: \n"
"Language: fr_FR\n"
......@@ -15,10 +15,14 @@ msgstr ""
"X-Generator: Poedit 1.8.11\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: gasap-rssrcr.php:85
#: gasap-rssrcr.php:84
msgid "export GASAPs pour 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
msgid "GASAP RSS 4 RCR"
msgstr ""
......
......@@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: GASAP RSS 4 RCR 1.0\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"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
......@@ -12,10 +12,14 @@ msgstr ""
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: gasap-rssrcr.php:85
#: gasap-rssrcr.php:84
msgid "export GASAPs pour RCR"
msgstr ""
#: gasap-rssrcr.php:108
msgid "Sorry, no GASAP found"
msgstr ""
#. Plugin Name of the plugin/theme
msgid "GASAP RSS 4 RCR"
msgstr ""
......
......@@ -160,6 +160,9 @@ h6, .uk-h6 {
font-size: 40px;
}
}
.sub-menu li{
padding-bottom: 1em;
}
.postdate{
font-size: 12px;
color: @global-success-background;
......@@ -238,7 +241,7 @@ main .uk-container{
}#snippet_comment_devenir_prod /*p8*/{
color: @global-muted-color;
.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{
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