Exemplo n.º 1
0
" checked="checked" /><label for="rsprivate">re-share with your connections only</label>
                      </form>
                    </div>
                    <?php 
                            }
                            ?>
                  <div style="margin: 0.5em 0 0 2em;">
                    <?php 
                            if ($update->{'is-likable'} == 'true') {
                                if ($update->{'is-liked'} == 'true') {
                                    echo '<a href="' . $_SERVER['PHP_SELF'] . '?' . LINKEDIN::_GET_TYPE . '=unlike&amp;nKey=' . $update->{'update-key'} . '">Unlike</a> (' . $update->{'num-likes'} . ')';
                                } else {
                                    echo '<a href="' . $_SERVER['PHP_SELF'] . '?' . LINKEDIN::_GET_TYPE . '=like&amp;nKey=' . $update->{'update-key'} . '">Like</a> (' . $update->{'num-likes'} . ')';
                                }
                                if ($update->{'num-likes'} > 0) {
                                    $likes = $OBJ_linkedin->likes((string) $update->{'update-key'});
                                    if ($likes['success'] === TRUE) {
                                        $likes['linkedin'] = new SimpleXMLElement($likes['linkedin']);
                                        echo "<pre>" . print_r($likes['linkedin'], TRUE) . "</pre>";
                                    } else {
                                        // likes retrieval failed
                                        echo "Error retrieving likes:<br /><br />RESPONSE:<br /><br /><pre>" . print_r($likes) . "</pre>";
                                    }
                                }
                            }
                            ?>
                  </div>
                  <div style="margin: 0.5em 0 0 2em;">
                    <?php 
                            if ($update->{'is-commentable'} == 'true') {
                                if ($update->{'update-comments'}) {