Modified: web/php/trunk/images/sprites.png =================================================================== (Binary files differ) Modified: web/php/trunk/include/header.inc =================================================================== --- web/php/trunk/include/header.inc 2011-01-04 03:24:38 UTC (rev 307054) +++ web/php/trunk/include/header.inc 2011-01-04 04:52:07 UTC (rev 307055) @@ -64,7 +64,7 @@ -
  • +
  • "> Home
  • "> Added: web/php/trunk/index-beta.php =================================================================== --- web/php/trunk/index-beta.php (rev 0) +++ web/php/trunk/index-beta.php 2011-01-04 04:52:07 UTC (rev 307055) @@ -0,0 +1,306 @@ +What is PHP? +

    + PHP + is a widely-used general-purpose scripting language that is + especially suited for Web development and can be embedded into HTML. + If you are new to PHP and want to get some idea + of how it works, try the introductory tutorial. + After that, check out the online manual, + and the example archive sites and some of the other resources + available in the links section. +

    +

    + Ever wondered how popular PHP is? see the + Netcraft Survey. +

    + +

    Thanks To

    + +

    Related sites

    + +

    Community

    + + +

    Syndication

    +

    + You can grab our news as an Atom feed. +

    '; + +$MIRROR_IMAGE = ''; + +// Try to find a sponsor image in case this is an official mirror +if (is_official_mirror()) { + + // Iterate through possible mirror provider logo types in priority order + $types = array("gif", "jpg", "png"); + while (list(,$ext) = each($types)) { + + // Check if file exists for this type + if (file_exists("backend/mirror." . $ext)) { + + // Add text to rigth sidebar + $MIRROR_IMAGE = "

    This mirror sponsored by:

    \n"; + + // Create image HTML code + $img = make_image( + 'mirror.' . $ext, + htmlspecialchars(mirror_provider()), + FALSE, + FALSE, + 'backend', + 0 + ); + + // Add size information depending on mirror type + if (is_primary_site() || is_backup_primary()) { + $img = resize_image($img, 125, 125); + } else { + $img = resize_image($img, 120, 60); + } + + // End mirror specific part + $MIRROR_IMAGE .= '' . + $img . "


    \n"; + + // We have found an image + break; + } + } +} + +/* {{{ Generate latest release info */ +/* NOTE: You are editing the wrong file, you should be in include/version.inc + * For RC: See the $PHP_x_RC variable + * For STABLE: See the $PHP_x_VERSION/_DATE/_MD5 variables + */ +$PHP_5_STABLE = array(); +$PHP_5_RC = array(); +$rel = $rc = ""; + +$SHOW_COUNT = 2; +for ($i=1; $i<=$SHOW_COUNT; ++$i) { +list($PHP_5_STABLE, ) = each($RELEASES[5]); + +$minor = round($PHP_5_STABLE, 1); +$rel .= <<< EOT +
  • Current PHP $minor Stable: $PHP_5_STABLE
  • +EOT; +} + +/* Do we have any release candidates to brag about? */ +$RCS = array( + $PHP_5_2_RC => $PHP_5_2_RC_DATE, + $PHP_5_3_RC => $PHP_5_3_RC_DATE, +); +if (isset($RCS)) { + foreach ((array)$RCS as $r => $d) { + if ($r) { + $rc .= '
  • ' . "$r ($d)
  • \n"; + } + } +} + +$rel = <<< EOT +
    +

    Stable Releases

    +
      + $rel +
    +
    \n +EOT; + +if (!empty($rc)) { + $rel .= <<< EOT +
    +

    Release Candidates

    +
      +$rc +
    +
    \n +EOT; +} +/* }}} */ + +// Prepend mirror image & latest releases to sidebar text +$RSIDEBAR_DATA = $MIRROR_IMAGE . $rel . $RSIDEBAR_DATA; + +$DROP_DOWN = <<< EOT +
    + +
    +EOT; + +// Write out common header +site_header("Hypertext Preprocessor", + array( + 'onload' => 'boldEvents();', + 'headtags' => array( + '', + '' + ), + 'link' => array( + array( + "rel" => "search", + "type" => "application/opensearchdescription+xml", + "href" => $MYSITE . "phpnetimprovedsearch.src", + "title" => "Add PHP.net search" + ), + array( + "rel" => "alternate", + "type" => "application/atom+xml", + "href" => $MYSITE . "releases.atom", + "title" => "PHP Release feed" + ), + + ), + 'dropDown' => $DROP_DOWN + ) +); + +if (is_array($CONF_TEASER) && count($CONF_TEASER)) { + $categories = array("conference" => "Upcoming conferences", "cfp" => "Calling for papers"); + echo '
    ' . "\n"; + echo " \n"; + foreach($CONF_TEASER as $k => $a) { + if (is_array($a) && count($a)) { + echo " \n \n"; + echo " \n \n"; + } // if set + } + echo "
    ".$categories[$k].":\n"; + echo '
      ' . "\n"; + $count = 0; + $a = preg_replace("'([A-Za-z0-9])([\s\:\-\,]*?)call for(.*?)$'i", "$1", $a); + foreach($a as $url => $title) { + if ($count++ >= 4) { + break; + } + echo '
    • ' . $title. '
    • ' . "\n"; + } + echo "
    \n
    \n
    \n\n
    \n"; +} + + +/* Where the h*ll did all the news go? + * See archives/2007.xml + */ +print_news($NEWS_ENTRIES, "frontpage"); +?> + +

    News Archive

    + + "/feed.atom") // Add a link to the feed at the bottom +); + Added: web/php/trunk/index-new.php =================================================================== --- web/php/trunk/index-new.php (rev 0) +++ web/php/trunk/index-new.php 2011-01-04 04:52:07 UTC (rev 307055) @@ -0,0 +1,8 @@ +What is PHP? +

    + PHP + is a widely-used general-purpose scripting language that is + especially suited for Web development and can be embedded into HTML. + If you are new to PHP and want to get some idea + of how it works, try the introductory tutorial. + After that, check out the online manual, + and the example archive sites and some of the other resources + available in the links section. +

    +

    + Ever wondered how popular PHP is? see the + Netcraft Survey. +

    + +

    Thanks To

    + +

    Related sites

    + +

    Community

    + + +

    Syndication

    +

    + You can grab our news as an Atom feed. +

    '; + +$MIRROR_IMAGE = ''; + +// Try to find a sponsor image in case this is an official mirror +if (is_official_mirror()) { + + // Iterate through possible mirror provider logo types in priority order + $types = array("gif", "jpg", "png"); + while (list(,$ext) = each($types)) { + + // Check if file exists for this type + if (file_exists("backend/mirror." . $ext)) { + + // Add text to rigth sidebar + $MIRROR_IMAGE = "

    This mirror sponsored by:

    \n"; + + // Create image HTML code + $img = make_image( + 'mirror.' . $ext, + htmlspecialchars(mirror_provider()), + FALSE, + FALSE, + 'backend', + 0 + ); + + // Add size information depending on mirror type + if (is_primary_site() || is_backup_primary()) { + $img = resize_image($img, 125, 125); + } else { + $img = resize_image($img, 120, 60); + } + + // End mirror specific part + $MIRROR_IMAGE .= '' . + $img . "


    \n"; + + // We have found an image + break; + } + } +} + +/* {{{ Generate latest release info */ +/* NOTE: You are editing the wrong file, you should be in include/version.inc + * For RC: See the $PHP_x_RC variable + * For STABLE: See the $PHP_x_VERSION/_DATE/_MD5 variables + */ +$PHP_5_STABLE = array(); +$PHP_5_RC = array(); +$rel = $rc = ""; + +$SHOW_COUNT = 2; +for ($i=1; $i<=$SHOW_COUNT; ++$i) { +list($PHP_5_STABLE, ) = each($RELEASES[5]); + +$minor = round($PHP_5_STABLE, 1); +$rel .= <<< EOT +
  • Current PHP $minor Stable: $PHP_5_STABLE
  • +EOT; +} + +/* Do we have any release candidates to brag about? */ +$RCS = array( + $PHP_5_2_RC => $PHP_5_2_RC_DATE, + $PHP_5_3_RC => $PHP_5_3_RC_DATE, +); +if (isset($RCS)) { + foreach ((array)$RCS as $r => $d) { + if ($r) { + $rc .= '
  • ' . "$r ($d)
  • \n"; + } + } +} + +$rel = <<< EOT +
    +

    Stable Releases

    +
      + $rel +
    +
    \n +EOT; + +if (!empty($rc)) { + $rel .= <<< EOT +
    +

    Release Candidates

    +
      +$rc +
    +
    \n +EOT; +} +/* }}} */ + +// Prepend mirror image & latest releases to sidebar text +$RSIDEBAR_DATA = $MIRROR_IMAGE . $rel . $RSIDEBAR_DATA; + +// Write out common header +site_header("Hypertext Preprocessor", + array( + 'onload' => 'boldEvents();', + 'headtags' => array( + '', + '' + ), + 'link' => array( + array( + "rel" => "search", + "type" => "application/opensearchdescription+xml", + "href" => $MYSITE . "phpnetimprovedsearch.src", + "title" => "Add PHP.net search" + ), + array( + "rel" => "alternate", + "type" => "application/atom+xml", + "href" => $MYSITE . "releases.atom", + "title" => "PHP Release feed" + ), + + ), + ) +); + +if (is_array($CONF_TEASER) && count($CONF_TEASER)) { + $categories = array("conference" => "Upcoming conferences", "cfp" => "Calling for papers"); + echo '
    ' . "\n"; + echo " \n"; + foreach($CONF_TEASER as $k => $a) { + if (is_array($a) && count($a)) { + echo " \n \n"; + echo " \n \n"; + } // if set + } + echo "
    ".$categories[$k].":\n"; + echo '
      ' . "\n"; + $count = 0; + $a = preg_replace("'([A-Za-z0-9])([\s\:\-\,]*?)call for(.*?)$'i", "$1", $a); + foreach($a as $url => $title) { + if ($count++ >= 4) { + break; + } + echo '
    • ' . $title. '
    • ' . "\n"; + } + echo "
    \n
    \n
    \n\n
    \n"; +} + + +/* Where the h*ll did all the news go? + * See archives/2007.xml + */ +print_news($NEWS_ENTRIES, "frontpage"); +?> + +

    News Archive

    + + "/feed.atom") // Add a link to the feed at the bottom +); + Modified: web/php/trunk/index.php =================================================================== --- web/php/trunk/index.php 2011-01-04 03:24:38 UTC (rev 307054) +++ web/php/trunk/index.php 2011-01-04 04:52:07 UTC (rev 307055) @@ -202,6 +202,7 @@ // Write out common header site_header("Hypertext Preprocessor", array( + 'current' => 'home', 'onload' => 'boldEvents();', 'headtags' => array( '', Modified: web/php/trunk/styles/structure.css =================================================================== --- web/php/trunk/styles/structure.css 2011-01-04 03:24:38 UTC (rev 307054) +++ web/php/trunk/styles/structure.css 2011-01-04 04:52:07 UTC (rev 307055) @@ -12,8 +12,9 @@ } #headmenu { - width: 920px; + width: 940px; margin: 0 auto; + padding-right: 20px; } #headnav h6, @@ -31,10 +32,9 @@ #headnav li#headhome a, #headnav li#headhome a:hover { - width: 150px; - height: 16px; + width: 170px; + height: 13px; text-indent: -2000em; - border: none; } #headnav li#headsearch { Modified: web/php/trunk/styles/theme.css =================================================================== --- web/php/trunk/styles/theme.css 2011-01-04 03:24:38 UTC (rev 307054) +++ web/php/trunk/styles/theme.css 2011-01-04 04:52:07 UTC (rev 307055) @@ -123,7 +123,8 @@ } #headnav li.current a.menu-link, -#headnav li a.menu-link:hover { +#headnav li a.menu-link:hover, +#headnav li#headhome.current { border-color: #604080; } @@ -279,7 +280,7 @@ * Mega drop-down menu */ #mega-drop-down { - background-color: #222; + background-color: #333; border-color: #c3add9; }