Tag Options

t for tag object

Section: Tag Options | Tags: tag options, options, tag, object | Completed in: 0.2999306ms

Just creates a Tag object and returns it directly.

Code

$Div = $HTML->t_div('Content', 'foo=bar');
print_r($Div);

Diff

OldNewDifferences
3434   [_closed:Xiphe\HTML\core\Tag:private] =>
3535   [_contentPrinted:Xiphe\HTML\core\Tag:private] =>
3636   [_configuration:protected] =>
 37   [_defaultConfiguration:protected] => Array 
 38       ( 
 39       ) 
 40 
3741   [_initArgs:protected] => Array
3842       (
3943       )

Result (945 Chars)

Xiphe\HTML\core\Tag Object
(
    [ID] => 189
    [name] => div
    [realName] => div
    [options] => Array
        (
            [0] => justGetObject
        )

    [attributes] => Array
        (
            [foo] => bar
        )

    [content] => Content
    [brackets] => Array
        (
            [start] => <:name
            [end] => </:name
            [close_start] => >
            [close_short] =>  />
            [close_end] => >
        )

    [attributeString] =>  foo="bar"
    [classes] => Array
        (
        )

    [inlineInner] => 1
    [selfclosing] => 
    [_opened:Xiphe\HTML\core\Tag:private] => 
    [_closed:Xiphe\HTML\core\Tag:private] => 
    [_contentPrinted:Xiphe\HTML\core\Tag:private] => 
    [_configuration:protected] => 
    [_defaultConfiguration:protected] => Array
        (
        )

    [_initArgs:protected] => Array
        (
        )

    [_callbacks:protected] => Array
        (
        )

)

Prediction (877 Chars)

Xiphe\HTML\core\Tag Object
(
    [ID] => 189
    [name] => div
    [realName] => div
    [options] => Array
        (
            [0] => justGetObject
        )

    [attributes] => Array
        (
            [foo] => bar
        )

    [content] => Content
    [brackets] => Array
        (
            [start] => <:name
            [end] => </:name
            [close_start] => >
            [close_short] =>  />
            [close_end] => >
        )

    [attributeString] =>  foo="bar"
    [classes] => Array
        (
        )

    [inlineInner] => 1
    [selfclosing] => 
    [_opened:Xiphe\HTML\core\Tag:private] => 
    [_closed:Xiphe\HTML\core\Tag:private] => 
    [_contentPrinted:Xiphe\HTML\core\Tag:private] => 
    [_configuration:protected] => 
    [_initArgs:protected] => Array
        (
        )

    [_callbacks:protected] => Array
        (
        )

)

Misc

googleanalytics

Section: Misc | Tags: google, analytics, compressed, short | Completed in: 1.7428398ms

Simply generates a tracking script with the user account you passed.

Code

$HTML->googleanalytics('UA-0000000-0');

Diff

OldNewDifferences
1 <script type="text/javascript">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-0000000-0']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();</script>
1 <script type="text/javascript">(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-0000000-0');ga('send','pageview');</script>
22

Result (400 Chars)

<script type="text/javascript">(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-0000000-0');ga('send','pageview');</script>

Prediction (412 Chars)

<script type="text/javascript">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-0000000-0']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();</script>