cool, but too expensive, maybe for 5$ i’ll buy it.
I’ve lowered the price
Still, IMO , it’s too expensive, simply because you’re just putting the html out there – it’s not exactly hard to make your own.
Lowered the price again
Much better thanks
I was wondering if this was necessary or no since a good code shouldn’t have html within the php area.
But then, I just realized that the html area might (and usually does) contain php code (unless its static).
Conclusion, just bought it, will test and give a review, but knowing you (from here) I’m sure that’s quality.
Best regards, MGK
Just been having a look at the screen shot/preview and I notice that it can be used for
<?php echo HtmlHelper::script('script.js') ?>
Which would load a file called script.js but could it be used for something like this?
window.opener.document.forms[form].elements[text].value = window.opener.document.forms[form].elements[text].value+command+' ';
Sorry for how the code looks I could not get it to post on separate lines.
You can use [pre] tags around your code to format it here.
The open and close tags are possible to write with my script but the javasript self not. It will look like this if you write is with my script:
<?php HtmlHelper::closeTag('script'); ?>
As you can see it’s not really usefull to use the class in this case.
Thank you for the info, my last question is can you join elements together?
I see you have these two
echo HtmlHelper::img('thumb.jpg', 80, 80, 'Example image', array('border' => '0'));
echo HtmlHelper::a('http://www.sitebase.be', 'Visit Sitebase', array('target' => '_blank'));
Can they be joined so that the image is linked into the url, as normally I’d use something along the lines of-
<a href="http://www.sitebase.be"><img src="thumb.jpg" border="0" height="80" alt="Visit Sitebase" width="80" /></a>
That is indeed possible. You will do that as follow:
$image = HtmlHelper::img('thumb.jpg', 80, 80, 'Example image', array('border' => '0'));
echo HtmlHelper::a('http://www.sitebase.be', $image, array('target' => '_blank'));
New version is available now!
Sitebase, how is this any better than just doing the HTML normally, like this:
<a href="<?php echo $link; ?>"><?php echo $linkName; ?></a>
Anybody who could figure this out could figure HTML out. So I’d just like to know what makes it better?
For just a simple link it’s indeed better to just echo the html. But once you start using optional parameter based on php variables and stuff, this class will make your code much more readable.
I really want to see a sample.
Current sample is broken
Why did you make a static class as a What’s the benefit?
What can we do as a public loss yap?labilirmi
This Author is no longer around.
Will you be making a Twitter Bootstrap version of this any time soon? That would be amazing!
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Deliver better projects faster. Photos, templates & courses
Unlimited downloads. Only $29/month
Learn almost anything with
Envato Tuts+ for free
25,000+ tutorials and 1,000+ courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work