Publii: update content
This commit is contained in:
parent
af739f1142
commit
73d289ccf1
27 changed files with 161 additions and 60 deletions
2
404.html
2
404.html
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
30
feed.json
30
feed.json
|
@ -10,6 +10,21 @@
|
|||
"name": "Nudista · Online"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"id": "https://jsem.nudista.online/predavani-dat-v-json.html",
|
||||
"url": "https://jsem.nudista.online/predavani-dat-v-json.html",
|
||||
"title": "Předávání dat v JSON",
|
||||
"summary": "<p>Perex</p>\n",
|
||||
"content_html": "<p>Perex</p>\n\n<p>Data lze předávat různým způsobem a v různých formátech. Pakliže chci předávat data z mých webů třetí straně, na snadě je buď formát XML, nebo JSON.</p>\n<fieldset><legend>Seznam zdrojů dat:</legend>\n<table style=\"border-collapse: collapse; width: 100.057%;\" border=\"1\"><caption>Zdroje dat JSON</caption>\n<tbody>\n<tr>\n<td style=\"width: 19.5488%;\">[fi=edit]</td>\n<td style=\"width: 30.7855%;\">Nudista.Online</td>\n<td style=\"width: 49.7186%;\">https://nudista.online/feed.json</td>\n</tr>\n<tr>\n<td style=\"width: 19.5488%;\">[fi=calendar]</td>\n<td style=\"width: 30.7855%;\">Nudista.Online</td>\n<td style=\"width: 49.7186%;\">https://nudista.online/organizace/akce/calendar.php</td>\n</tr>\n<tr>\n<td style=\"width: 19.5488%;\">[fi=cast]</td>\n<td style=\"width: 30.7855%;\">Jsem.Nudista.Online</td>\n<td style=\"width: 49.7186%;\">https://jsem.nudista.online/feed.json</td>\n</tr>\n</tbody>\n</table>\n</fieldset>",
|
||||
"author": {
|
||||
"name": "Nudista · Online"
|
||||
},
|
||||
"tags": [
|
||||
"🇨🇿 CZ"
|
||||
],
|
||||
"date_published": "2024-02-12T21:19:29+01:00",
|
||||
"date_modified": "2024-02-12T22:33:07+01:00"
|
||||
},
|
||||
{
|
||||
"id": "https://jsem.nudista.online/repozitare.html",
|
||||
"url": "https://jsem.nudista.online/repozitare.html",
|
||||
|
@ -142,21 +157,6 @@
|
|||
],
|
||||
"date_published": "2024-01-31T03:31:10+01:00",
|
||||
"date_modified": "2024-01-31T03:36:55+01:00"
|
||||
},
|
||||
{
|
||||
"id": "https://jsem.nudista.online/google-bard-programuje.html",
|
||||
"url": "https://jsem.nudista.online/google-bard-programuje.html",
|
||||
"title": "Google Bard programuje",
|
||||
"summary": "<?php // Importuj knihovnu pro práci s JSON //require 'json.php'; // Vytvoř URL adresu pro požadavek $url = 'https://witter.cz/api/v1/accounts/110687031564474645/statuses'; // Proveď požadavek $response =…",
|
||||
"content_html": "<p><code><?php<br><br>// Importuj knihovnu pro práci s JSON<br>//require 'json.php';<br><br>// Vytvoř URL adresu pro požadavek<br>$url = 'https://witter.cz/api/v1/accounts/110687031564474645/statuses';<br><br>// Proveď požadavek<br>$response = file_get_contents($url);<br><br>// Dekóduj JSON data<br>$data = json_decode($response, true);<br><br>// Vytvoř HTML5 kontejner<br>echo '<div class=\"statuses\">';<br><br>// Projděte všechna data<br>foreach ($data as $status) {<br><br> // Vytvoř HTML5 tweet<br> echo '<div class=\"tweet\">';<br><br> // Vytiskněte text tweetu (default text)<br> echo '<p class=\"text\">' . $status['content'] . '</p>';<br><br> // Vytiskněte datum a čas tweetu<br> echo '<p class=\"time\">' . $status['created_at'] . '</p>';<br><br> // Vytiskněte počet lajků<br> if($status['sensitive'] == \"1\"){<br> $mature = 'NSFW';<br> } else {<br> $mature = 'OK';<br> }<br> echo '<p class=\"likes\">' . $mature . ' lajků</p>';<br><br> // Vytiskněte počet retweetů<br> echo '<p class=\"retweets\">' . $status['retweets'] . ' retweetů</p>';<br><br> // Zavřete HTML5 tweet<br> echo '</div>';<br>}<br><br>// Zavřete HTML5 kontejner<br>echo '</div>';<br>?></code></p>",
|
||||
"author": {
|
||||
"name": "Nudista · Online"
|
||||
},
|
||||
"tags": [
|
||||
"🇨🇿 CZ"
|
||||
],
|
||||
"date_published": "2024-01-31T03:00:01+01:00",
|
||||
"date_modified": "2024-02-04T05:53:22+01:00"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
68
feed.xml
68
feed.xml
|
@ -3,12 +3,57 @@
|
|||
<title>Nástěnka 🅝 Nudista</title>
|
||||
<link href="https://jsem.nudista.online/feed.xml" rel="self" />
|
||||
<link href="https://jsem.nudista.online" />
|
||||
<updated>2024-02-11T11:17:53+01:00</updated>
|
||||
<updated>2024-02-12T22:33:07+01:00</updated>
|
||||
<author>
|
||||
<name>Nudista · Online</name>
|
||||
</author>
|
||||
<id>https://jsem.nudista.online</id>
|
||||
|
||||
<entry>
|
||||
<title>Předávání dat v JSON</title>
|
||||
<author>
|
||||
<name>Nudista · Online</name>
|
||||
</author>
|
||||
<link href="https://jsem.nudista.online/predavani-dat-v-json.html"/>
|
||||
<id>https://jsem.nudista.online/predavani-dat-v-json.html</id>
|
||||
<category term="🇨🇿 CZ"/>
|
||||
|
||||
<updated>2024-02-12T22:33:07+01:00</updated>
|
||||
<summary>
|
||||
<![CDATA[
|
||||
<p>Perex</p>
|
||||
|
||||
]]>
|
||||
</summary>
|
||||
<content type="html">
|
||||
<![CDATA[
|
||||
<p>Perex</p>
|
||||
|
||||
<p>Data lze předávat různým způsobem a v různých formátech. Pakliže chci předávat data z mých webů třetí straně, na snadě je buď formát XML, nebo JSON.</p>
|
||||
<fieldset><legend>Seznam zdrojů dat:</legend>
|
||||
<table style="border-collapse: collapse; width: 100.057%;" border="1"><caption>Zdroje dat JSON</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 19.5488%;">[fi=edit]</td>
|
||||
<td style="width: 30.7855%;">Nudista.Online</td>
|
||||
<td style="width: 49.7186%;">https://nudista.online/feed.json</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 19.5488%;">[fi=calendar]</td>
|
||||
<td style="width: 30.7855%;">Nudista.Online</td>
|
||||
<td style="width: 49.7186%;">https://nudista.online/organizace/akce/calendar.php</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 19.5488%;">[fi=cast]</td>
|
||||
<td style="width: 30.7855%;">Jsem.Nudista.Online</td>
|
||||
<td style="width: 49.7186%;">https://jsem.nudista.online/feed.json</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
]]>
|
||||
</content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Repozitáře</title>
|
||||
<author>
|
||||
|
@ -267,25 +312,4 @@
|
|||
]]>
|
||||
</content>
|
||||
</entry>
|
||||
<entry>
|
||||
<title>Google Bard programuje</title>
|
||||
<author>
|
||||
<name>Nudista · Online</name>
|
||||
</author>
|
||||
<link href="https://jsem.nudista.online/google-bard-programuje.html"/>
|
||||
<id>https://jsem.nudista.online/google-bard-programuje.html</id>
|
||||
<category term="🇨🇿 CZ"/>
|
||||
|
||||
<updated>2024-02-04T05:53:22+01:00</updated>
|
||||
<summary>
|
||||
<![CDATA[
|
||||
<?php // Importuj knihovnu pro práci s JSON //require 'json.php'; // Vytvoř URL adresu pro požadavek $url = 'https://witter.cz/api/v1/accounts/110687031564474645/statuses'; // Proveď požadavek $response =…
|
||||
]]>
|
||||
</summary>
|
||||
<content type="html">
|
||||
<![CDATA[
|
||||
<p><code><?php<br><br>// Importuj knihovnu pro práci s JSON<br>//require 'json.php';<br><br>// Vytvoř URL adresu pro požadavek<br>$url = 'https://witter.cz/api/v1/accounts/110687031564474645/statuses';<br><br>// Proveď požadavek<br>$response = file_get_contents($url);<br><br>// Dekóduj JSON data<br>$data = json_decode($response, true);<br><br>// Vytvoř HTML5 kontejner<br>echo '<div class="statuses">';<br><br>// Projděte všechna data<br>foreach ($data as $status) {<br><br> // Vytvoř HTML5 tweet<br> echo '<div class="tweet">';<br><br> // Vytiskněte text tweetu (default text)<br> echo '<p class="text">' . $status['content'] . '</p>';<br><br> // Vytiskněte datum a čas tweetu<br> echo '<p class="time">' . $status['created_at'] . '</p>';<br><br> // Vytiskněte počet lajků<br> if($status['sensitive'] == "1"){<br> $mature = 'NSFW';<br> } else {<br> $mature = 'OK';<br> }<br> echo '<p class="likes">' . $mature . ' lajků</p>';<br><br> // Vytiskněte počet retweetů<br> echo '<p class="retweets">' . $status['retweets'] . ' retweetů</p>';<br><br> // Zavřete HTML5 tweet<br> echo '</div>';<br>}<br><br>// Zavřete HTML5 kontejner<br>echo '</div>';<br>?></code></p>
|
||||
]]>
|
||||
</content>
|
||||
</entry>
|
||||
</feed>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
73
predavani-dat-v-json.html
Normal file
73
predavani-dat-v-json.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -57,6 +57,10 @@
|
|||
<lastmod>2024-02-11T00:23:46+01:00</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://jsem.nudista.online/predavani-dat-v-json.html</loc>
|
||||
<lastmod>2024-02-12T22:33:07+01:00</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://jsem.nudista.online/repozitare.html</loc>
|
||||
<lastmod>2024-02-08T01:22:54+01:00</lastmod>
|
||||
</url>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue