Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged css
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
In this article I would like to share how to make a sortable index view with Laravel 4.
Let’s assume you have an index view with a table. Like this example for a table that contains posts.
0
823
posted 10 years ago by CreativePunch
Usually when you're using different CSS files on your site, they might take a quite long to be loaded. Using this PHP code, you can compress them into a single file with no unnecessary white spaces or comments. Why we need to compress multiple CSS fi...
0
771
posted 11 years ago by apphp-snippets
How to insert the less preprocessor script in WordPress Websites and Blogs
0
852
posted 12 years ago by ecksteing
This allows you to change the logo, title text, and url for the login logo in wordpress.
1
1005
posted 12 years ago by bitsculptor
With this file you can load stylesheets and minify the code while changing colors. The stylesheets are loaded using file_get_contents and you can attach them one after another if you have multiple sheets. The colors are replaces based on a variable t...
0
839
posted 13 years ago by FatFolderDesigner
As simple as it can be. An PHP minifier. All the credits go to his author, Kit MacAllister
0
747
posted 13 years ago by thefricky
Do not forget to name images you want to use for background like 1.jpg, 2.jpg, 3.jpg etc.
0
639
posted 13 years ago by ariunbolor
This adds the class "not-home" to your body_class in Wordpress. Handy if you want to reset CSS from the index page.
1
671
posted 13 years ago by ethicka
Date format guide:
d = 01 to 12 ;
m = 01 to 12 ;
More formats: http://php.net/manual/en/function.date.php
1
783
posted 13 years ago by sdxxx
There seems to be many scan directory systems but I could not find one that works the way I needed. I added in functionality for a search filter and an ignore list. The search filter and ignore list can ignore by extension, file (case-sensitive file...
1
1146
posted 13 years ago by SoN9ne
The code is not particularly pretty but it does the job.
If you call this file css.php you can call it like this:
css.php?files=reset,style,iefix&minify=yes
1
948
posted 14 years ago by Sverri
Paste the code in a file named style.php. Don’t forget to include your css files . Once done, open your HTML document and import style.php as you’ll import a css stylesheet.
3
880
posted 14 years ago by math89
Start your CSS files with the following PHP (and name it style.php)
include it with: <link>
0
741
posted 14 years ago by yves
Aimed at designers who want to sprinkle in a little PHP to make development easier. If building/prototyping a site with HTML/PHP, this can save time by constructing the navigation list on the fly, based on re-usable navigation settings.
Usage: Ass...
0
648
posted 14 years ago by rareyman
To use it, simply create a new folder called “art-direction†in your theme. Then to style any particular Post or Page, just drop a file in that folder named style-XXXX.css where XXXX is the ID of the Post or Page. When that Post or Page loads, Wo...
0
784
posted 14 years ago by gd6d