Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I agree with spencerp: I know a lot of computer users > 45 years old who have problems with 1024×768.

    If your intended target audiance is the under-40’s, this should not be an issue, though as lhk mentionned, some users are still on 15″ screens (be it CRT or LCD’s) but all 15 inchers I have seen can do 1024×768.

    From there, the implementation path is up to you.

    Forum: Fixing WordPress
    In reply to: PHP meta tags

    Personally, I do not like mixing HTML and PHP… I would work with a “pure” PHP block and use here document to output HTML. Using <?php ?> in the middle of HTML gives me headaches at debug time, and I have already had problems like yours where PHP has “lost” the variables that you want to output!

    Here doc allows you to output HTML without having to escape anything (“, ‘, etc) but still display PHP variables. Here doc works with echo and can also be entered into a variable (<<< replacing = as an affectation operator). The instruction is followed by 3 < symbols and a unique tag. The unique tag must be closed (unique tag followed by ?? on the first column of a new line

    The syntax is

    echo/$somthing <<< unique_tag_name
    <!– Your HTML/javascript code –>
    unique_tag_name;

    Example:
    <?php
    $title = “extended title here”;
    $description = “description here”;
    $keywords = “keywords here”;

    echo <<< here_doc_data

    <title>$title</title>
    <meta name=”description” content=”$description”>
    <meta name=”keywords” content=”$keywords”>

    here_doc_data;
    <?

    HTH,

    Daniel

Viewing 2 replies - 1 through 2 (of 2 total)