diff --git a/phpxpress/examples/card.php b/phpxpress/examples/card.php new file mode 100644 index 0000000..99d6dea --- /dev/null +++ b/phpxpress/examples/card.php @@ -0,0 +1,24 @@ + + + Table example + + + setImageSource("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."); + $card1->draw(); + + $card2 = new Card; + $card2->setImageSource("paris.jpg"); + $card2->setTitle("Paris"); + $card2->setSubTitle("Capital of France"); + $card2->setInnerText("The Parisii, a sub-tribe of the Celtic Senones, inhabited the Paris area from around the middle of the 3rd century BC."); + $card2->draw(); + ?> + + \ No newline at end of file diff --git a/phpxpress/examples/colosseum.jpg b/phpxpress/examples/colosseum.jpg new file mode 100644 index 0000000..145865e Binary files /dev/null and b/phpxpress/examples/colosseum.jpg differ diff --git a/phpxpress/examples/paris.jpg b/phpxpress/examples/paris.jpg new file mode 100644 index 0000000..b3d09f7 Binary files /dev/null and b/phpxpress/examples/paris.jpg differ diff --git a/phpxpress/phpxpress/card.php b/phpxpress/phpxpress/card.php new file mode 100644 index 0000000..8263647 --- /dev/null +++ b/phpxpress/phpxpress/card.php @@ -0,0 +1,49 @@ +imageSource = $imageSource; + } + + function setTitle($title){ + $this->title = $title; + } + + function setSubTitle($subTitle){ + $this->subtitle = $subTitle; + } + + function setInnerText($innerText){ + $this->innerText = $innerText; + } + + function setWidth($width){ + $this->width = $width; + } + + function draw(){ + echo '
'; + + // Image + if(isset($this->imageSource)){ + echo 'Card image cap'; + } + + echo '
'; + echo '
'. $this->title .'
'; // title + echo '
'. $this->subtitle .'
'; // subtitle + echo '

'. $this->innerText . '

'; + echo '
'; + } + } +?> \ No newline at end of file diff --git a/phpxpress/phpxpress/carousel.php b/phpxpress/phpxpress/carousel.php new file mode 100644 index 0000000..62658b5 --- /dev/null +++ b/phpxpress/phpxpress/carousel.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/phpxpress/phpxpress/include.php b/phpxpress/phpxpress/include.php index a17d3cf..46a837e 100644 --- a/phpxpress/phpxpress/include.php +++ b/phpxpress/phpxpress/include.php @@ -1,5 +1,5 @@ \ No newline at end of file