Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
Sort
Popular
Most liked
Most recent
Time
Today
Last week
Last month
Last year
All time
Select Languages
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
ColdFusion
Command
CSS
Delphi
Django
Grunt
Gulp
HAML
HTML
iOS
Jade
Java
JavaScript
jQuery
Less
MySQL
Objective
Other
Pascal
Perl
PHP
PowerShell
Processing
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
Smarty
SQL
Swift
VHDL
XHTML
XML
Xojo
XSLT
SCSS
CoffeeScript
GLSL
Progress
Stylus
ES6
Coffee
TypeScript
X++
Haskell
SmallBASIC
JSX
SVG
Plain text
LUA
MDX
Apply
Reset
popular • Smarty
Smarty IP Address
Smarty
0
0
3411
Print array in Smarty
Smarty
1
1
2449
Prestashop Jquery UI Bugs
Smarty
0
0
1646
Rich Snippet Breadcrumbs for Craft CMS - Twig
Smarty
0
2
39439
Foreach TPL
Smarty
0
0
1489
Hook Scripts / Styles
Smarty
0
2
1301
SEO
Smarty
0
0
1477
Popupbox Popup Link
Smarty
0
2
1493
Languages
Smarty
0
9
1435
Form2Content Joomla: Load module in .tpl
Smarty
1
1
2219
Return URL
Smarty
0
1
2208
Form2Content Joomla: Javascript in Textarea
Smarty
0
1
1639
Smarty foreach with counter
Smarty
0
9
3206
Smarty Array Articles Anywhere
Smarty
1
0
2397
Smarty Array: array_reverse
Smarty
0
0
1924
Parse URL with Smarty
Smarty
0
0
2262
date_format
Smarty
0
0
1071
ISO 8601 date with Smarty
Smarty
0
0
2355
Get URL_HOST (domain) from URL
Smarty
0
0
1100
nginx.conf.manifest.tpl
Smarty
0
0
228