You are on page 1of 1

luksm / PHP-Signature-Generator

Dismiss
Join GitHub today
GitHub is home to over 20 million developers working together to host
and review code, manage projects, and build software together.

Sign up

Simple script to generate an HTML file with a signature

5 commits 1 branch 0 releases 2 contributors

Branch: master New pull request Find file Clone or download

luksm Merge pull request #2 from AdamGerthel/master Clone with HTTPS


Latest commit 1b49f25 on May 25, 2015

Use Git or checkout with SVN using the web URL.


index.php Added support for checkboxes with default values. 3 years ago
https://github.com/luksm/PHP-Signature-Gen
layout.html Added support for checkboxes with default values. 3 years ago

readme.md Added support for checkboxes with default values. 3 years


Open in Desktop Download ZIP ago

readme.md

Signature Generator
A super simple script to help everyone that ever had to create an corporate HTML signature, this will fill all the information on
a layout file and download it.

Usage
It's dead simple to use this, just edit layout.html to have your signature code and replate the content with tags

For regular field values:

[[NAME]]

For conditional fields:

[[IF-MOBILE]][[MOBILE]][[ENDIF-MOBILE]]

For booleans, such as a checkbox, you can use a default value that is displayed (but not editable) if the user wants to:

[[IF-WEBSITE]]http://www.example.com[[ENDIF-WEBSITE]]

Any HTML can be included within if-statements.

The field names correspond with the name attribute on the form element, i.e. Sender[example]. This means that you can easily
add any other field you'd like as long as you follow that same structure.

You can have all the coding you want to have, just add these and the code will replace it for you!

Spread the love!

You might also like