<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
<?php $url = 'http://www.vedomosti.ru/newspaper/out/rss.xml' ; $FBstat = 'http://api.facebook.com/restserver.php?method=links.getStats&urls=' ; $linkFB = '' ; // rss $rss = simplexml_load_file ( $url ) ; $i = 0 ; foreach ( $rss -> channel -> item as $item ) { $linkFB = $linkFB . $item -> link . ',' ; $FB [ $i ] [ 'title' ] = '<a href="' . $item -> link . '">' . $item -> title . '</a>' ; $FB [ $i ] [ 'description' ] = $item -> description ; $FB [ $i ] [ 'pubDate' ] = $item -> pubDate ; $i ++; } // $rssFB = simplexml_load_file ( $FBstat . $linkFB ) ; $i = 0 ; foreach ( $rssFB -> link_stat as $item ) { $FB [ $i ] [ 'shareFB' ] = $item -> share_count ; $FB [ $i ] [ 'likeFB' ] = $item -> like_count ; $i ++; } // share + like function cmp ( $a , $b ) { $x1 = $a [ "shareFB" ] + $a [ "likeFB" ] ; $x2 = $b [ "shareFB" ] + $b [ "likeFB" ] ; return $x2 - $x1 ; } usort ( $FB , "cmp" ) ; // echo '<h1>.RU</h1>' ; reset ( $FB ) ; foreach ( $FB as $abc ) { $stat = 'Shares: ' . $abc [ 'shareFB' ] . ' Likes: ' . $abc [ 'likeFB' ] ; if ( $abc [ 'shareFB' ] != 0 || $abc [ 'likeFB' ] != 0 ) { $stat = '<b>' . $stat . '</b>' ; } echo '<div style="width:400px; margin-top:10px; border:1px dashed #98bf21;">' ; echo '<span style="display:block; font-size:1.2em;">' . $abc [ 'title' ] . '</span>' ; echo '<span style="display:block;">' . $stat . ' ' . $abc [ 'pubDate' ] . '</span>' ; echo '<div style="display:inline-block;">' . $abc [ 'description' ] . '</div>' ; echo '</div>' ; } ?>
Source: https://habr.com/ru/post/116702/
All Articles