Help me with the meta with index.php

Discussion in 'PHP' started by winson, Sep 17, 2012.

  1. #1
    Hello all, i need to post this <meta name="AWM_VERIFY" content="VERIFIED_XXXX" />to my index.php , i got no ideal where i should put it, can anyone one help? the code is blow


    <?php
    require_once 'inc/app.init.php';

    /**
    * Set Page Template
    */
    $template = "frontend/index.tpl";

    /**
    * Set Smarty Caching
    */
    $smarty->setCaching(Smarty::CACHING_LIFETIME_SAVED);
    $smarty->setCacheLifetime(60); // 1 Minute of Caching

    /**
    * Initiate Database Connection
    */
    $db = Database:btain(DB_SERVER, DB_USER, DB_PASS, DB_DATABASE);
    $db->connect();

    /**
    * Assign Dynamic Data into Smarty Variable
    */
    generateBanner($smarty);
    generate_main_menu($smarty);
    generate_footer_menu($smarty);

    /**
    * Check if Page is cached or not. If the Page is not cached, then generate fresh data.
    */
    if(!$smarty->isCached($template)) {

    /**
    * Assign Recently Updated Domains
    */
    recent_domains($smarty, '15');

    /**
    * Assign Page Title
    */
    $smarty->assign('page_title', BASE_TITLE_WEB . TITLE_SEPERATOR . BASE_TITLE_TAG);

    }

    /**
    * Close MySQL Connection to free up memory
    */
    $db->close();

    /**
    * Assign Meta for Homepage
    */
    $meta = array (
    '<meta name="description" content="' . INDEX_META_DESCRIPTION . '" />'
    );
    $smarty->assign('additional_meta', $meta);

    /**
    * Finally Display the results to User
    */
    $smarty->display($template);
    ?>
     
    winson, Sep 17, 2012 IP
  2. mbaldwin

    mbaldwin Active Member

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    95
    #2
    I would do this:

    
    $meta = array (
    '<meta name="description" content="' . INDEX_META_DESCRIPTION . '" />', 
    '<meta name="AWM_VERIFY" content="VERIFIED_XXXX" />');
    
    PHP:
    Michael
     
    mbaldwin, Sep 17, 2012 IP