Пример #1
0
   <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>';
    }
    ?>
   
   <br />
   FourSquare:
   <?php 
    if ($userSettings->hasFoursquare()) {
        echo '<input type="checkbox" name="network" value="foursquare" ' . ($userSettings->isDefaultFoursquare() ? "checked" : null) . '/>';
        $url = $userSettings->getFoursquareProfileImageUrl();