Upload files to "/"

This commit is contained in:
ai-bot committed 2026-10-14 08:59:04 +00:00
1 parent e82a9a49d7
commit 7266b0d4b6
5 files changed
+92

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><!--<a href="<?php the_permalink(); ?>">--><?php the_title(); ?><!--</a>--></h2>
<div class="entry-meta">
</div>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>
+27
View File
@@ -0,0 +1,27 @@
<?php
// URL til RSS-feeden
$rss_url = "https://news.google.com/rss/search?q=taubane%20OR%20totausbane%20OR%20kabelbane%20OR%20gondol%20when%3A30d&hl=no&gl=NO&ceid=NO%3Ano";
// Hent RSS-feeden
$rss = simplexml_load_file($rss_url);
// Sjekk om RSS-feeden ble lastet inn
if ($rss) {
//echo "<h1>" . $rss->channel->title . "</h1>";
echo "<div class=\"rss-feed\">\n";
echo " <h3 class=\"rss-title\">Tau- og kabelbanenytt</h3><ul>\n";
foreach ($rss->channel->item as $item) {
$source = $item->source;
$title = substr($item->title, 0, -3 - strlen($source));
//$description = strip_tags($item->description);
echo " <li>";
//echo "<p>" . $source . "</p>";
echo "<a href=\"" . $item->link . "\" target=\"_blank\">" . $title . "</a> <span> | " . $source . "</span>";
//echo "<p>" . $description . "</p>";
echo "</li>\n";
}
echo " </ul>\n</div>\n";
} else {
echo "\n";
}
?>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 429 KiB

+23
View File
@@ -0,0 +1,23 @@
<?php
get_header();
printf("<h2 class=\"entry-title search\">" . esc_html__("Søk: %s", "textdomain"), get_search_query() . "</h2>");
if (have_posts()) :
while (have_posts()) : the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php
endwhile;
endif;
get_footer();
?>
+26
View File
@@ -0,0 +1,26 @@
<?php
get_header();
if (have_posts()) :
while (have_posts()) : the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><!--<a href="<?php the_permalink(); ?>">--><?php the_title(); ?><!--</a>--></h2>
<div class="entry-meta">
<p class="author"><a href="<?php echo get_author_posts_url(get_the_author_meta("ID")); ?>"><?php the_author(); ?></a></p>
<p class="date"><?php the_date(); ?></p>
</div>
<div class="entry-content">
<?php the_content(); ?>
<p class="categories">Kategori: <?php the_category(", "); ?></p>
</div>
</article>
<?php
endwhile;
endif;
get_footer();
?>