-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from PHPOffice/develop
Version 0.6
- Loading branch information
Showing
51 changed files
with
1,358 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,7 @@ echo "TRAVIS_REPO_SLUG: $TRAVIS_REPO_SLUG" | |
echo "TRAVIS_PHP_VERSION: $TRAVIS_PHP_VERSION" | ||
echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST" | ||
|
||
##if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPPresentation" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then | ||
if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPPowerPoint" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then | ||
if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPPresentation" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then | ||
|
||
echo -e "Publishing PHPDoc...\n" | ||
|
||
|
@@ -16,8 +15,7 @@ if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPPowerPoint" ] && [ "$TRAVIS_PULL_REQUE | |
cd $HOME | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "travis-ci" | ||
## git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/PHPOffice/PHPPresentation gh-pages > /dev/null | ||
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/PHPOffice/PHPPowerPoint gh-pages > /dev/null | ||
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/PHPOffice/PHPPresentation gh-pages > /dev/null | ||
|
||
cd gh-pages | ||
echo "--DEBUG : Suppression" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
include_once 'Sample_Header.php'; | ||
|
||
use PhpOffice\PhpPresentation\PhpPresentation; | ||
use PhpOffice\PhpPresentation\Style\Alignment; | ||
use PhpOffice\PhpPresentation\Style\Color; | ||
|
||
// Create new PHPPresentation object | ||
echo date('H:i:s') . ' Create new PHPPresentation object' . EOL; | ||
$objPHPPresentation = new PhpPresentation(); | ||
|
||
// Mark the document as final | ||
$objPHPPresentation->markAsFinal(true); | ||
|
||
// Create slide | ||
echo date('H:i:s') . ' Create slide'.EOL; | ||
$currentSlide = $objPHPPresentation->getActiveSlide(); | ||
$currentSlide->addShape(clone $oShapeDrawing); | ||
$currentSlide->addShape(clone $oShapeRichText); | ||
|
||
// Save file | ||
echo write($objPHPPresentation, basename(__FILE__, '.php'), $writers); | ||
if (!CLI) { | ||
include_once 'Sample_Footer.php'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
include_once 'Sample_Header.php'; | ||
|
||
use PhpOffice\PhpPresentation\PhpPresentation; | ||
use PhpOffice\PhpPresentation\Style\Alignment; | ||
use PhpOffice\PhpPresentation\Style\Color; | ||
|
||
// Create new PHPPresentation object | ||
echo date('H:i:s') . ' Create new PHPPresentation object' . EOL; | ||
$objPHPPresentation = new PhpPresentation(); | ||
|
||
// Set the zoom to 200% | ||
$objPHPPresentation->setZoom(3); | ||
|
||
// Create slide | ||
echo date('H:i:s') . ' Create slide'.EOL; | ||
$currentSlide = $objPHPPresentation->getActiveSlide(); | ||
$currentSlide->addShape(clone $oShapeDrawing); | ||
$currentSlide->addShape(clone $oShapeRichText); | ||
|
||
// Save file | ||
echo write($objPHPPresentation, basename(__FILE__, '.php'), $writers); | ||
if (!CLI) { | ||
include_once 'Sample_Footer.php'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
include_once 'Sample_Header.php'; | ||
|
||
use PhpOffice\PhpPresentation\PhpPresentation; | ||
use PhpOffice\PhpPresentation\Slide\Background\Color; | ||
use PhpOffice\PhpPresentation\Style\Color as StyleColor; | ||
use \PhpOffice\PhpPresentation\Slide\Background\Image; | ||
|
||
// Create new PHPPresentation object | ||
echo date('H:i:s') . ' Create new PHPPresentation object' . EOL; | ||
$objPHPPresentation = new PhpPresentation(); | ||
|
||
// Create slide | ||
echo date('H:i:s') . ' Create slide'.EOL; | ||
$oSlide1 = $objPHPPresentation->getActiveSlide(); | ||
$oSlide1->addShape(clone $oShapeDrawing); | ||
$oSlide1->addShape(clone $oShapeRichText); | ||
|
||
// Slide > Background > Color | ||
$oBkgColor = new Color(); | ||
$oBkgColor->setColor(new StyleColor(StyleColor::COLOR_DARKGREEN)); | ||
$oSlide1->setBackground($oBkgColor); | ||
|
||
// Create slide | ||
echo date('H:i:s') . ' Create slide'.EOL; | ||
$oSlide2 = $objPHPPresentation->createSlide(); | ||
$oSlide2->addShape(clone $oShapeDrawing); | ||
$oSlide2->addShape(clone $oShapeRichText); | ||
|
||
// Slide > Background > Image | ||
/* | ||
* @link : http://publicdomainarchive.com/public-domain-images-cave-red-rocks-light-beam-cavern/ | ||
*/ | ||
$oBkgImage = new Image(); | ||
$oBkgImage->setPath('./resources/background.jpg'); | ||
$oSlide2->setBackground($oBkgImage); | ||
|
||
// Save file | ||
echo write($objPHPPresentation, basename(__FILE__, '.php'), $writers); | ||
if (!CLI) { | ||
include_once 'Sample_Footer.php'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.