Loading...

Using PHP View

Photoshop layers to PHP with clean and clear code becomes simple with Layer Kit – PHP View. Translate your PSD layers to PHP with advanced support for text, images and shapes.

Get Layer Kit Pro to add layer effects, imaging options and more with PHP View.

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>';
 
?>

Pro Features

Using Layer Kit Pro, you can customize the PHP View to include additional information with the PSD 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: You need to login so your progress is tracked with Online Training - click here.

Products For Smart Professionals


smart_images_base_set

Smart Images Base Set

smart_psd

Smart PSD Batch

smart_images

Smart Images

Need a custom solution?

Try our Shop!

Using the Plugin

Layer Support

Layer Tags

How To Guides

Optimization Tips

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


Responsive Multi-Page Website

A clean responsive website with multiple pages +target screens.

Start Your 14 Day Free Trial

New users get instant access to the 14 Day Free Trial with all features enabled, and Free Online Training. We guarantee your first conversion will 100% work - we work with you to ensure this, contact us or check our FAQs for assistance.

Connect With Us

Top
Lightning Storm version v17.0216.05 releasedLearn More