Skip to content
Permalink
Browse files

Updated extensions, new API

  • Loading branch information...
markseu committed Mar 16, 2019
1 parent 0987ece commit 872aeffb3127097158ee6d604cb34bfa5dffad8b
@@ -6,4 +6,4 @@ Description: Core functionality for your website.
Published: 2019-03-15 14:40:41
Developer: Datenstrom

system/extensions/core.php: Core,core.php,create,update
Core/core.php: system/extensions/core.php,create,update
@@ -1,4 +1,4 @@
Release 0.8.4
Release 0.8.5
=============
Create releases.

@@ -1,9 +1,9 @@
# Datenstrom Yellow extension

Extension: Release
Version: 0.8.4
Version: 0.8.5
Description: Create releases.
Published: 2019-03-14 16:11:54
Published: 2019-03-16 11:04:17
Developer: Datenstrom

system/extensions/release.php: Release,release.php,create,update
@@ -4,7 +4,7 @@
// This file may be used and distributed under the terms of the public license.
class YellowRelease {
const VERSION = "0.8.4";
const VERSION = "0.8.5";
const TYPE = "feature";
public $yellow; //access to API
public $extensions; //number of extensions
@@ -101,7 +101,7 @@ public function updateReleaseInformation($path, $extension, $version) {
if (lcfirst($matches[1])=="extension") $line = "Extension: ".ucfirst($extension)."\n";
if (lcfirst($matches[1])=="version") $line = "Version: $version\n";
if (lcfirst($matches[1])=="published") $line = "Published: ".date("Y-m-d H:i:s", $published)."\n";
if (!empty($matches[1]) && !empty($matches[2]) && strposu($matches[1], "/") && $extension!="update") {
if (!empty($matches[1]) && !empty($matches[2]) && strposu($matches[1], "/") && $extension!="update" && $extension!="core") {
if (ctype_upper($matches[1][0])) { //TODO: remove later, converts old format
list($dummy, $entry) = explode("/", $matches[1], 2);
list($fileName, $flags) = explode(",", $matches[2], 2);
@@ -230,7 +230,7 @@ public function updateReleaseWaffle($pathSource, $pathExtension) {
$fileData = $this->yellow->toolbox->readFile($fileNameWaffle);
foreach ($this->yellow->toolbox->getTextLines($fileData) as $line) {
preg_match("/^\s*(.*?)\s*:\s*(.*?)\s*$/", $line, $matches);
if (!empty($matches[1]) && !empty($matches[2]) && preg_match("/^$extension\//i", $matches[1])) {
if (!empty($matches[1]) && !empty($matches[2]) && preg_match("/^$extension,/i", $matches[2])) {
if (!$found) {
$fileDataNew .= $waffle;
$found = true;
@@ -324,6 +324,12 @@ public function getExtensionWaffle($path) {
foreach ($this->yellow->toolbox->getTextLines($fileData) as $line) {
preg_match("/^\s*(.*?)\s*:\s*(.*?)\s*$/", $line, $matches);
if (!empty($matches[1]) && !empty($matches[2]) && strposu($matches[1], "/")) {
if (ctype_upper($matches[1][0])) { //TODO: remove later, converts old format
list($dummy, $entry) = explode("/", $matches[1], 2);
list($fileName, $flags) = explode(",", $matches[2], 2);
$matches[1] = $fileName;
$matches[2] = "$dummy,$entry,$flags";
}
$waffle .= "$matches[1]: $matches[2]\n";
}
}
@@ -42,7 +42,7 @@ Polish: 0.8.2,https://github.com/datenstrom/yellow-extensions/raw/master/zip/pol
Portuguese: 0.8.2,https://github.com/datenstrom/yellow-extensions/raw/master/zip/portuguese.zip,Portuguese/Português.
Preview: 0.8.2,https://github.com/datenstrom/yellow-extensions/raw/master/zip/preview.zip,Show pages with image preview.
Previousnext: 0.8.3,https://github.com/datenstrom/yellow-extensions/raw/master/zip/previousnext.zip,Show links to previous/next page.
Release: 0.8.4,https://github.com/datenstrom/yellow-extensions/raw/master/zip/release.zip,Create releases.
Release: 0.8.5,https://github.com/datenstrom/yellow-extensions/raw/master/zip/release.zip,Create releases.
Russian: 0.8.2,https://github.com/datenstrom/yellow-extensions/raw/master/zip/russian.zip,Russian/Русский.
Search: 0.8.2,https://github.com/datenstrom/yellow-extensions/raw/master/zip/search.zip,Full-text search.
Sitemap: 0.8.2,https://github.com/datenstrom/yellow-extensions/raw/master/zip/sitemap.zip,Sitemap for your website.
@@ -155,7 +155,7 @@ system/extensions/toc.php: Toc,toc.php,create,update
system/extensions/traffic.php: Traffic,traffic.php,create,update
system/extensions/twitter.php: Twitter,twitter.php,create,update
system/extensions/twitter.js: Twitter,twitter.js,create,update
system/extensions/update.php: Update/update.php,create,update
system/extensions/update.php: Update,update.php,create,update
system/extensions/vimeo.php: Vimeo,vimeo.php,create,update
system/extensions/wiki.php: Wiki,wiki.php,create,update
system/layouts/wiki.html: Wiki,wiki.html,create,update,careful
BIN +0 Bytes (100%) zip/core.zip
Binary file not shown.
BIN +28 Bytes (100%) zip/release.zip
Binary file not shown.

0 comments on commit 872aeff

Please sign in to comment.
You can’t perform that action at this time.