Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

3 main card builds #1

Open
wants to merge 124 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
58a140e
updated local file paths to either dynamically calculated values or …
riverspirit Nov 18, 2013
84599fb
Removed the lines used to check if the script is running locally
riverspirit Nov 19, 2013
9c866c4
Made changes to make it work with remote images
riverspirit Nov 19, 2013
58f2018
Made dompdf tmp location static
riverspirit Nov 19, 2013
04af525
Adding readme
riverspirit Nov 19, 2013
31a488f
Added github and readme links in index page
riverspirit Nov 19, 2013
2eaf1da
Merge branch 'master' of github.com:MozillaKerala/Card-Generator
riverspirit Nov 19, 2013
a1edaad
Update README.md
riverspirit Nov 19, 2013
0cf1830
Updated README
riverspirit Nov 19, 2013
c508f5e
Updated README
riverspirit Nov 19, 2013
abd0f9d
Changed the name of the pdf output
riverspirit Nov 19, 2013
7c5ee22
Adding .gitignore
riverspirit Nov 19, 2013
5c3ed16
Adding the tmp directory to store remote images before being converte…
riverspirit Nov 19, 2013
32f7208
changed background, added tabzilla, favicon,etc minor changes to page…
Nov 20, 2013
6cd991a
Fixed reps-logo path in template file
riverspirit Nov 21, 2013
01abec4
fixed image paths
Nov 21, 2013
a60d9e2
Removed Inline CSS code
Nov 22, 2013
75a6ad0
Fixed Tabzilla, Added Tabzilla Script, Will include Tabzilla CSS later
Nov 23, 2013
61e9d36
Commented out Facebook Meta Tags
Nov 23, 2013
4985dc9
Minor Layout Modifications
Nov 23, 2013
3314e4f
Merge pull request #1 from shinescodes/master
riverspirit Nov 23, 2013
969014c
Create fsa-card.html
ekuttan Dec 26, 2013
c831c14
Updated .gitignore
riverspirit Apr 15, 2014
9ee28fd
Added google analytics tracking code.
riverspirit Apr 15, 2014
0c88add
Added editable text highlighting and help text.
riverspirit Apr 17, 2014
33ea91b
Edited help text
riverspirit Apr 17, 2014
5a4ea53
Minor style update.
riverspirit Apr 17, 2014
519c9b3
Added new template for Reps-Card
Nov 3, 2014
151ad58
Merge pull request #3 from tanay1337/master
riverspirit Nov 3, 2014
5ba9fd5
Added a new template for FSAs-card
Nov 3, 2014
7b2ea98
Merge pull request #4 from tanay1337/master
riverspirit Nov 3, 2014
d905a11
HTML5 compliance and a fixes at README
Nov 3, 2014
d5ae3c8
Merge pull request #5 from tanay1337/master
riverspirit Nov 3, 2014
8abb513
Fixed the dummy option menu and added functionality
Nov 3, 2014
4230e71
Improved naming and added the Mozillians template
Nov 3, 2014
bd67a56
Merge pull request #6 from tanay1337/master
riverspirit Nov 3, 2014
2f4a648
Fixed width of image in mozillians card
Nov 3, 2014
87be76f
Merge pull request #7 from tanay1337/master
shinenelson Nov 3, 2014
9d36aeb
Added Piwik Analytics
shinenelson Nov 3, 2014
b39ea2e
Merge pull request #8 from shinescodes/master
shinenelson Nov 3, 2014
15d6feb
Implemented the functionality to generate back side of the card
Nov 4, 2014
86bf06d
Merge pull request #9 from tanay1337/master
riverspirit Nov 4, 2014
4921c5d
Re-adding piwik tracking code
riverspirit Nov 4, 2014
96be7f3
Updated README file with a dependencies section
riverspirit Nov 4, 2014
f72511d
Added Fonts
shinenelson Nov 4, 2014
974e3d1
Modified filenames of Open Sans font family and added Bold and BoldIt…
shinenelson Nov 5, 2014
8eb979d
Installed required fonts to DOMPDF Font cache
shinenelson Nov 5, 2014
380af8c
Changed Fonts and Formatted Reps Card design
shinenelson Nov 6, 2014
09bac4c
Changed Fonts and Formatted Mozillians Card design
shinenelson Nov 6, 2014
3d506f3
Added details about adding back templates of cards
Nov 7, 2014
16ba967
Merge pull request #16 from tanay1337/master
riverspirit Nov 7, 2014
7b8f0c7
Merge pull request #15 from shinescodes/commits-PR
riverspirit Nov 8, 2014
b0dd5cc
Update DOMPDF Font Cache
shinenelson Nov 8, 2014
b5f307c
Updated fonts and formatting of FSA card
shinenelson Nov 8, 2014
8badfcc
Moved template_images/ to templates/images/
shinenelson Nov 8, 2014
30acc83
Updated image paths in Reps card
shinenelson Nov 8, 2014
9ee9555
Updated image paths in Mozillians card
shinenelson Nov 8, 2014
ec9d057
Updated image paths in FSA Card
shinenelson Nov 8, 2014
57e32eb
Updated README with new template images path links and other minior f…
shinenelson Nov 8, 2014
8beb5f4
Merge pull request #19 from shinescodes/font-cache-update
riverspirit Nov 8, 2014
862294e
Merge pull request #23 from shinescodes/moz-card-img-upd
riverspirit Nov 8, 2014
900a901
Merge pull request #18 from shinescodes/commits-PR
riverspirit Nov 8, 2014
65db32a
Merge pull request #20 from shinescodes/FSA-card
riverspirit Nov 8, 2014
2df2f9c
Merge pull request #21 from shinescodes/template-images
riverspirit Nov 8, 2014
e18a0c6
Merge pull request #22 from shinescodes/reps-card-img-upd
riverspirit Nov 8, 2014
8ccc026
Merge pull request #24 from shinescodes/fsa-card-img-upd
riverspirit Nov 8, 2014
70c0802
Merge pull request #25 from shinescodes/readme-upd
riverspirit Nov 8, 2014
799f900
Fixed comment error
Nov 30, 2014
a283cd1
Merge pull request #26 from tanay1337/master
riverspirit Nov 30, 2014
20a36c2
Added new LICENSE file, updated copyright
Jan 11, 2015
2623e51
Merge pull request #28 from tanay1337/master
riverspirit Jan 12, 2015
89a5fb0
Added webmaker template.
brylie Feb 2, 2015
c228233
Removed gradient.
brylie Feb 2, 2015
32ff238
Added mozilla red.
brylie Feb 2, 2015
d154efd
Added rebecca purple.
brylie Feb 2, 2015
49eec6b
Increased text contrast.
brylie Feb 2, 2015
23b972b
Added link to Mozilla Webmaker card.
brylie Feb 3, 2015
30d0f34
Merge pull request #29 from brylie/master
riverspirit Feb 3, 2015
9a78673
Merge pull request #30 from brylie/patch-1
riverspirit Feb 3, 2015
6a13029
auto load the templates
Feb 3, 2015
d37985a
correct the path of image
Feb 3, 2015
63c84ee
load the correct template
Feb 3, 2015
d21cb99
better auto system for first template
Feb 3, 2015
601649c
Reps card 1 as first
Feb 4, 2015
084f680
Merge pull request #31 from Mte90/master
riverspirit Feb 4, 2015
056dbc2
Added Brylie
brylie Feb 4, 2015
402c034
Added Mte90
brylie Feb 4, 2015
526e834
Merge pull request #32 from brylie/patch-2
riverspirit Feb 4, 2015
85b905a
starting on porting to dompdf 0.7, https://github.com/MozillaKerala/C…
Mte90 Dec 16, 2015
1fcd11b
removed the post variable of card and orientation
Mte90 Dec 16, 2015
0ede9d6
fix https://github.com/MozillaKerala/Card-Generator/issues/34
Mte90 Dec 16, 2015
ad160e6
fix https://github.com/MozillaKerala/Card-Generator/issues/36
Mte90 Dec 16, 2015
958cd28
fix https://github.com/MozillaKerala/Card-Generator/issues/38, missin…
Mte90 Dec 16, 2015
6f51425
autocomplete off in the select
Mte90 Dec 16, 2015
8158e9f
finish the porting to dompdf 0.7
Mte90 Dec 17, 2015
ebd52b1
Merge pull request #40 from Mte90/dompdf-0.7
Waterloo Dec 17, 2015
766d116
Resolving images absolute path dependency
Jan 17, 2016
c89a3e9
Merge pull request #39 from Mte90/new-fields
riverspirit Jan 18, 2016
81faf53
Resolving conflicts
riverspirit Jan 18, 2016
2b3552d
Merge branch 'gabrielmicko-master'
riverspirit Jan 18, 2016
58473bc
Minor text correction
riverspirit Jan 18, 2016
0be2464
Credits where due
riverspirit Jan 19, 2016
f146db7
Core Fixes (Fonts, mPDF, CSS Separation, CSS Relative path, CSS Injec…
Jan 24, 2016
0906298
Merging PR#46 + fixed a font path issue
riverspirit Apr 3, 2016
0c711f6
Merge branch 'gabrielmicko-master'
riverspirit Apr 3, 2016
9038bf2
Remove error logging added for debugging
riverspirit Apr 3, 2016
78d74ce
Refactoring, Importing new Tabzilla
gabrielmicko May 21, 2016
9cfa01c
Revert "Refactoring, Importing new Tabzilla"
gabrielmicko May 21, 2016
f96caf3
Merge remote-tracking branch 'MozillaKerala/master'
gabrielmicko May 21, 2016
c76fce5
Revert "Merge remote-tracking branch 'MozillaKerala/master'"
gabrielmicko May 21, 2016
0194f90
Refactoring, Importing new Tabzilla
gabrielmicko May 21, 2016
2c94a97
Footer fix
gabrielmicko May 21, 2016
8409279
fix #37
gabrielmicko May 21, 2016
864bec9
Merge pull request #46 from gabrielmicko/master
gabrielmicko May 21, 2016
f277708
3 main card builds
gabrielmicko May 22, 2016
79c68d8
Merge pull request #48 from gabrielmicko/master
gabrielmicko May 22, 2016
12b7ebb
Merge remote-tracking branch 'MozillaKerala/master'
gabrielmicko May 22, 2016
15791e0
Readme update
gabrielmicko May 22, 2016
402b071
Merge pull request #49 from gabrielmicko/master
gabrielmicko May 22, 2016
094e9ef
Dummize Info - Reps Card
shinenelson May 22, 2016
4b6db52
Dummize Info - Mozillian Card
shinenelson May 22, 2016
c6f7d2c
Fixing Reps Card
gabrielmicko May 22, 2016
48468b4
Avatar support
gabrielmicko May 23, 2016
8567f64
Resolve
gabrielmicko May 23, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/nbproject/
.idea
.remote-sync.json
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

_Copyright (c) 2015 jsx and other contributors_

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Card Generator
==============
Business card generator for the Mozilla community

An active maintained version is available here:
http://mozilla.kreszkviz.hu/Card-Generator-Prod/

## How to add new card template ##
* Fork yourselves a copy of this repo and edit there.
* Add a normal HTML file of the card design to `/templates` directory and of the back side of the card to `/templates/back` directory.
* In the template HTML, add the attribute `contenteditable` for all text you want to make editable.
* Add any images required in template file to `templates/images` the path of the image will be ../templates/images/yourimage.png
* Put your CSS files separately to the ../css/yourdir/front.css, ../css/yourdir/front.css.
* The dimensions of the card template should be 439x259.
* Commit and push to your own fork, and open a pull request.
* Following fonts were installed: Roboto, MetaBold, Open Sans, FontAwesome, Fira Sans please note
if you would like to use another font it might be a bit tricky to make it work.
Lear more about vendor/mpdf.

_(Or if that's too much for you, you can just send the template design to [email protected] or [email protected])_

## Dependencies ##
* PHP5 with GD library

## Contributors ##
* [jsx](https://github.com/riverspirit)
* [shine](https://github.com/shinescodes)
* [Tanay](https://github.com/tanay1337)
* [Brylie](https://github.com/brylie)
* [Mte90](https://github.com/Mte90)
* [Gabriel Mičko](https://github.com/gabrielmicko)
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"dompdf/dompdf": "0.7.x@beta"
}
}
150 changes: 150 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
$protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === true ? 'https://' : 'http://';

//If you are running this from subdir it comes handy xy.com/SubDir/...
$GLOBALS['SUBDIR'] = '';
//Fixing dependency issues
$GLOBALS['RESOURCE'] = $protocol . $_SERVER['HTTP_HOST'] . $GLOBALS['SUBDIR'] . '/';

?>
Loading