Loading...

Using PHP View

XD, PSD, AI and INDD layers to PHP with clean and clear code becomes simple. Translate your XD, PSD, AI and INDD layers to PHP with advanced support for text, images and shapes.

Example Image Element

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
 
$id = "google_map_image";
$src = "../skins/exportkit_email_header/google_map_image.png";
 
$style = array();
$style[] = "top:13px";
$style[] = "left:208px";
$style[] = "width: 185px";
$style[] = "height: 84px";
$style[] = "";
 
echo '<img';
echo ' id="'.$id.'"';
echo ' src="'.$src.'"';
echo ' style="'.implode(";",$style).'"';
echo ' />';
 
?>

Example Text Element

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
 
$id = "you_can_add_google_maps_with_psd_to_html5";
$content = "You can add<br/>GOOGLE MAPS<br/>with PSD to HTML5";
 
$style = array();
$style[] = "top:20px";
$style[] = "left:15px";
$style[] = "width:181px";
$style[] = "height:77px";
$style[] = "font-family:MyriadPro-Regular, Arial, Helvetica, sans-serif";
$style[] = "text-align:left";
$style[] = "font-size:24px";
$style[] = "color:#323230";
$style[] = "";
 
echo '<div';
echo ' id="'.$id.'"';
echo ' style="'.implode(";",$style).'"';
echo ' >';
echo $content;
echo ' </div>';
 
?>

Example Shape Element

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
 
$id = "header_bg_copy_3";
 
$style = array();
$style[] = "top:-47px";
$style[] = "left:116px";
$style[] = "width:445px";
$style[] = "height:229px";
$style[] = "";
 
echo '<div';
echo ' id="'.$id.'"';
echo ' style="'.implode(";",$style).'"';
echo ' >';
echo ' </div>';
 
?>

Customize the PHP View to include additional information with the XD, PSD, AI and INDD layer such as effects, advanced text rendering and more.

Example Layer Effects

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
 
$id = "slider_bg_copy";
 
$style = array();
$style[] = "top:-45px";
$style[] = "left:-11px";
$style[] = "width:417px";
$style[] = "height:184px";
$style[] = "background: -webkit-linear-gradient(56deg , #7BBAF0 0%, #F4F3F0 0%, #EDEFFB 100%)";
$style[] = "background: -o-linear-gradient(56deg , #7BBAF0 0%, #F4F3F0 0%, #EDEFFB 100%)";
$style[] = "background: -moz-linear-gradient(56deg , #7BBAF0 0%, #F4F3F0 0%, #EDEFFB 100%)";
$style[] = "background: -ms-linear-gradient(56deg , #7BBAF0 0%, #F4F3F0 0%, #EDEFFB 100%)";
$style[] = "background: linear-gradient(56deg , #7BBAF0 0%, #F4F3F0 0%, #EDEFFB 100%)";
$style[] = "";
 
 
?>
<div id="<?php echo $id; ?>" style="<?php echo implode(";",$style); ?>" > </div>

LOGIN NOW: Get instant access to our free Online Training - click here.

02. Using The Plugin

03. Layer Support

04. Basic Exports

05. Layer Tags

06. Optimization Tips

07. Complete Exports

Help Us Improve


We aim to keep our content relevant with useful information, examples, samples and links. Tell us what you think!

I found the content:

Helpful
Confusing
Outdated
Broken Links
Bad Spelling
Too Short
Too Long

This page needs:

Nothing
Better Content
Links
Examples
Videos

Free Download


Advanced Website

A professional multi-page website design with dynamic height.

Get a Free Export

Our Creative Team will export your project live and answer any questions you may have - we guarantee your first conversion will 100% work - we work with you to ensure this, Contact Us or check the Community FAQs for assistance.

Connect With Us