Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kintamojo aprašymas

Parašė Tomcis· 2009 Geg. 2 22:05:19
#7

<?php
$mysitename = get_bloginfo('name');
$mysitefeed = get_bloginfo('rss2_url');
$myfeedid = get_option('feedid');

 if (get_option('greeting') || get_option('welcomemessage')) {
  if (get_option('greeting')) {
    echo "<h2>" . get_option('greeting') . "</h2>";
    }
  if (get_option('welcomemessage')) {
    echo "<p>" . get_option('welcomemessage') . "</p>";
    }
  } else {
  echo "<h2>Labas! Sveikas atvyk&#281;s &#303; mrtko blog'&#261;!</h2><p>A&#269;i&#363;, kad u&#382;&#279;jai! Skaityk, kometuok, &#382;i&#363;r&#279;k video ir gauk mano post'us &#303; e-mail'&#261; naudodamas <a href='$mysitefeed'>RSS</a>. Iki pasimatymo! <a href='$mysitefeed'><img src='http://www.manoimone.lt/files/logos/157715.jpg'></a></p>";
}
 
 if (get_option('feedid')) {
  echo "<p>You can also subscribe by email by filling the field below:</p>
<form action='http://www.feedburner.com/fb/a/emailverify' method='post' target='popupwindow' onsubmit=\"window.open('http://www.feedburner.com/fb/a/emailverifySubmit?feedId=$myfeedid', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\"><p><input type='text' name='email' id='feedbox' /><input type='hidden' value='http://feeds.feedburner.com/~e?ffid=$myfeedid' name='url'/><input type='hidden' value='$mysitename' name='title'/><input type='hidden' name='loc' value='en_US'/><input type='submit' value='Subscribe' class='submitbutton' /></p></form>";
 }

 else {
  echo "";
 }
?>



Vuolia.

Redagavo Tomcis· 2009 Geg. 2 22:05:30