Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include support for new header info in core templates #558

Merged
merged 1 commit into from Dec 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/templates/blank-slate.php
Expand Up @@ -2,12 +2,14 @@

/*
* Template Name: Blank Slate
* Version: 1.1
* Description: A print-friendly template focusing solely on the user-submitted data.
* Version: 1.2
* Description: A print-friendly template focusing solely on the user-submitted data. Through the Template tab you can control the PDF header and footer, change the background color or image, and show or hide the form title, page names, HTML fields and the Section Break descriptions.
* Author: Gravity PDF
* Author URI: https://gravitypdf.com
* Group: Core
* License: GPLv2
* Required PDF Version: 4.0-alpha
* Tags: Header, Footer, Background, Optional HTML Fields, Optional Page Fields
*/

/* Prevent direct access to the template */
Expand Down
6 changes: 4 additions & 2 deletions src/templates/focus-gravity.php
Expand Up @@ -2,12 +2,14 @@

/*
* Template Name: Focus Gravity
* Version: 1.1
* Description: Focus Gravity providing a classic layout which epitomises Gravity Forms Print Preview. It's the familiar layout you've come to love.
* Version: 1.2
* Description: Focus Gravity providing a classic layout which epitomises Gravity Forms Print Preview. It's the familiar layout you've come to love. Through the Template tab you can control the PDF header and footer, change the background color or image, and show or hide the form title, page names, HTML fields and the Section Break descriptions.
* Author: Gravity PDF
* Author URI: https://gravitypdf.com
* Group: Core
* License: GPLv2
* Required PDF Version: 4.0-alpha
* Tags: Header, Footer, Background, Optional HTML Fields, Optional Page Fields, Combined Row, Alternate Colors
*/

/* Prevent direct access to the template */
Expand Down
6 changes: 4 additions & 2 deletions src/templates/rubix.php
Expand Up @@ -2,12 +2,14 @@

/*
* Template Name: Rubix
* Version: 1.1
* Description: Rubix uses stylish containers to create an aesthetically pleasing design.
* Version: 1.2
* Description: Rubix uses stylish containers to create an aesthetically pleasing design. Through the Template tab you can control the PDF header and footer, change the background color or image, and show or hide the form title, page names, HTML fields and the Section Break descriptions.
* Author: Gravity PDF
* Author URI: https://gravitypdf.com
* Group: Core
* License: GPLv2
* Required PDF Version: 4.0-alpha
* Tags: Header, Footer, Background, Optional HTML Fields, Optional Page Fields, Container Background Color
*/

/* Prevent direct access to the template */
Expand Down
4 changes: 2 additions & 2 deletions src/templates/zadani.php
Expand Up @@ -2,8 +2,8 @@

/*
* Template Name: Zadani
* Version: 1.1
* Description: A minimalist business-style template that will generate a well-spaced document great for printing.
* Version: 1.2
* Description: A minimalist business-style template that will generate a well-spaced document great for printing. Through the Template tab you can control the PDF header and footer, change the background color or image, and show or hide the form title, page names, HTML fields and the Section Break descriptions.
* Author: Gravity PDF
* Author URI: https://gravitypdf.com
* Group: Core
Expand Down
9 changes: 6 additions & 3 deletions tests/phpunit/unit-tests/test-helper-templates.php
Expand Up @@ -378,11 +378,14 @@ public function test_get_template_headers() {
$header = $this->templates->get_template_info_by_path( PDF_PLUGIN_DIR . 'src/templates/zadani.php' );

$this->assertEquals( 'Zadani', $header['template'] );
$this->assertEquals( '1.1', $header['version'] );
$this->assertEquals( 'A minimalist business-style template that will generate a well-spaced document great for printing.', $header['description'] );
$this->assertEquals( 'Gravity PDF', $header['author'] );
$this->assertArrayHasKey( 'version', $header );
$this->assertArrayHasKey( 'description', $header );
$this->assertArrayHasKey( 'author', $header );
$this->assertArrayHasKey( 'author uri', $header );
$this->assertEquals( 'Core', $header['group'] );
$this->assertEquals( '4.0-alpha', $header['required_pdf_version'] );
$this->assertArrayHasKey( 'tags', $header );
$this->assertArrayHasKey( 'screenshot', $header );
}

/**
Expand Down