Example #1
0
   <br />
   <div id="datewagerinput">
      Pivot Date: <input type="text" name="pivotdate" />
      <?php 
    generatePivotCondition();
    ?>
      <br />
     </div>
<div id="socialnetworkinput">
   <h3>Customize Syndication or <a href="<?php 
    echo Config::getRootDomain();
    ?>
/goprofile.php">Go to Profile Settings</a></h3>
   Facebook: <?php 
    if ($userSettings->hasFacebook()) {
        echo '<input type="checkbox" name="network" value="facebook" ' . ($userSettings->isDefaultFacebook() ? "checked" : null) . '/>';
    } else {
        echo '<a href="goauthorizefacebook.php" >Authorize FaceBook</a>';
    }
    ?>
   
   <br />
   Twitter: <?php 
    if ($userSettings->hasTwitter()) {
        echo '<input type="checkbox" name="network" value="twitter"  ' . ($userSettings->isDefaultTwitter() ? "checked" : null) . '/>';
        $url = $userSettings->getTwitterProfileImageUrl();
        if (!empty($url)) {
            echo '<img src="' . $url . '" height="25px" width="25px"  />';
        }
    } else {
        echo '<a href="goauthorizetwitter.php" >Authorize Twitter</a>';