Has anyone tried this out ? The HtmlHelper class by the guy who sold most on CodeCanyon.
http://codecanyon.net/item/html-helper-class/161718
Here is the list of features:
label, textfield, textarea, checkbox, radiobutton, select, ul, ol, img, a, style, script, swf (embed youtube, vimeo and other flash content)
Anyways, I believe this item is a little bit overpriced ($4) for what it is, so I'm building my own HTML Preprocess Class.
I haven't figured out every features I'm going to add. However, I might release it on this forum for free (for 24 hours more or less) before trying to get it on CodeCanyon (not sure about CodeCanyon, but we'll see: I don't like to make people pay ^^)
Quick preview of what the head would look like with this class (can't show the rest as I'm not that far yet xD):
<?php
include_once 'lib/htmlpp.class.php';
$htmlpp = new htmlpp();
/* Changing the head settings */
$htmlpp->version('5'); // Sets the page to be HTML 5 (default: xhtml 1.1)
$htmlpp->lang('fr'); // Sets the page language to French (default: en)
/* Meta tags */
$htmlpp->add_meta_tag('keywords', 'ConradK, Webdesign, PHP tutorials');
$htmlpp->add_meta_tag('description', 'ConradK is an 18 year old programmer');
/* Stylesheets */
$htmlpp->add_css('styles.css','print',TRUE); // 2nd and 3rd params optional default: media="all" and inline = FALSE
echo $htmlpp->head();
echo $htmlpp->meta_tags();
echo $htmlpp->stylesheets();
?>
</head>
<body>
</body>
</html>
Any suggestions would be appreciated. This is a simple class, but writing meta tags or remembering the W3C DTDs is the most annoying thing IMO... so I thought I'd build a little tool to make everything easier.Best regards,
CK
