From 0b7c9b30b4cbc1279ad2ce66042a9187c80351f6 Mon Sep 17 00:00:00 2001
From: Alessandro Ferro <49845537+xfarrow@users.noreply.github.com>
Date: Wed, 9 Mar 2022 11:01:24 +0100
Subject: [PATCH] images in a separate folder
---
README.md | 7 ++++---
phpxpress/examples/card.php | 8 ++++----
phpxpress/examples/{ => images}/breadcrumb.jpg | Bin
phpxpress/examples/{ => images}/card.jpg | Bin
phpxpress/examples/{ => images}/colosseum.jpg | Bin
phpxpress/examples/{ => images}/demoTable.jpg | Bin
phpxpress/examples/{ => images}/paris.jpg | Bin
7 files changed, 8 insertions(+), 7 deletions(-)
rename phpxpress/examples/{ => images}/breadcrumb.jpg (100%)
rename phpxpress/examples/{ => images}/card.jpg (100%)
rename phpxpress/examples/{ => images}/colosseum.jpg (100%)
rename phpxpress/examples/{ => images}/demoTable.jpg (100%)
rename phpxpress/examples/{ => images}/paris.jpg (100%)
diff --git a/README.md b/README.md
index 83b518e..28d66ea 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ function onValueDisplaying($caption, &$value, $row){
produces the following output
-
+
### Card
@@ -103,7 +103,7 @@ Card::endCardGroupLayout();
produces the following output
-
+
$card2 receives a DataSource whereas $card1 does not.
@@ -123,7 +123,8 @@ The follwing code
```
Produces the following output:
-
+
+
diff --git a/phpxpress/examples/card.php b/phpxpress/examples/card.php
index 2d435ab..a561c35 100644
--- a/phpxpress/examples/card.php
+++ b/phpxpress/examples/card.php
@@ -11,7 +11,7 @@
// Rome
$card1 = new Card;
- $card1->setImageSource("colosseum.jpg");
+ $card1->setImageSource("./images/colosseum.jpg");
$card1->setTitle("Rome");
$card1->setSubTitle("Capital of Italy");
$card1->setInnerText("After the foundation by Romulus according to a legend, Rome was ruled for a period of 244 years by a monarchical system, initially with sovereigns of Latin and Sabine origin, later by Etruscan kings.");
@@ -39,14 +39,14 @@
$paris->Zip = "750XX";
$card2 = new Card;
- $card2->setImageSource("paris.jpg");
+ $card2->setImageSource("./images/paris.jpg");
$card2->setTitle("Paris");
$card2->setSubTitle("Capital of France");
$card2->setInnerText("The following fields' name & data will be acquired by the datasource.");
$card2->setDataSource($paris);
$card2->setButton("More info", "https://en.wikipedia.org/wiki/Paris");
- $card2->addArrayList(array("this is", "just a list"));
- $card2->addElementList("of various sentences");
+ $card2->addArrayToList(array("this is", "just a list"));
+ $card2->addElementToList("of various sentences");
$card2->addLink("Link1", "#");
$card2->addLink("Link2", "#");
$card2->draw();
diff --git a/phpxpress/examples/breadcrumb.jpg b/phpxpress/examples/images/breadcrumb.jpg
similarity index 100%
rename from phpxpress/examples/breadcrumb.jpg
rename to phpxpress/examples/images/breadcrumb.jpg
diff --git a/phpxpress/examples/card.jpg b/phpxpress/examples/images/card.jpg
similarity index 100%
rename from phpxpress/examples/card.jpg
rename to phpxpress/examples/images/card.jpg
diff --git a/phpxpress/examples/colosseum.jpg b/phpxpress/examples/images/colosseum.jpg
similarity index 100%
rename from phpxpress/examples/colosseum.jpg
rename to phpxpress/examples/images/colosseum.jpg
diff --git a/phpxpress/examples/demoTable.jpg b/phpxpress/examples/images/demoTable.jpg
similarity index 100%
rename from phpxpress/examples/demoTable.jpg
rename to phpxpress/examples/images/demoTable.jpg
diff --git a/phpxpress/examples/paris.jpg b/phpxpress/examples/images/paris.jpg
similarity index 100%
rename from phpxpress/examples/paris.jpg
rename to phpxpress/examples/images/paris.jpg