Advertisement
Guest User

Untitled

a guest
Aug 15th, 2014
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 11.30 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <?/*/*
  3.  
  4. MBB NETWORK MENU
  5. VERSIONE 1.0   
  6.    
  7. */?>
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9.  
  10. <head>
  11.     <title>Menu Mondo Network</title>
  12.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  13.     <link href='http://fonts.googleapis.com/css?family=Maven+Pro:400,500,700,900' rel='stylesheet' type='text/css' />
  14.     <link rel="stylesheet" href="css/slider.css" />
  15.     <link href="css/hover-min.css" rel="stylesheet" media="all">
  16.     <style type="text/css">
  17.     </style>
  18. </head>
  19. <body>
  20.    
  21.             <? 
  22.                                 function extract_json($json_url)
  23.                                 {
  24.                                         $feed = preg_replace('/\x{EF}\x{BB}\x{BF}/','',file_get_contents($json_url));
  25.                                         return json_decode($feed, true);
  26.                                 }
  27.             ?>
  28.            
  29.            
  30.     <div class="wrapper">
  31.       <div class="centra">
  32.         <nav id="sliderMondo" class="sliderMondo">
  33.             <ul>
  34.             <!-- MONDOBLACKBERRY -->
  35.             <li class="navItem"> <a href="#" title="MondoBB"><img src="http://www.mondoblackberry.com/favicon.ico" alt="MondoBlackBerry" width="25">&nbsp;MondoBlackBerry</a>
  36.             <ul class="navContent">
  37.            
  38.             <div class=titolo_header>          
  39.                 <table>
  40.                     <tr>
  41.                         <th><a class="float-shadow" href="http://www.mondoblackberry.com" target="_blank"><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_portale_menu.png' width="300" alt="MBB"></a></th>
  42.                         <th><a class="float-shadow" href="http://forum.mondoblackberry.com" target="_blank"><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_forum_menu.png' width="300" alt="MBB Forum"></a></th>
  43.                         <th><a class="float-shadow" href="http://store.mondoblackberry.com" target="_blank"><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_store_menu.png' width="300" alt="MBB Store"></a></th>
  44.                     </tr>
  45.                 </table>               
  46.             </div>
  47.             <?  
  48.                 /* estrae contenuto array php e stampa a schermo il risultato voluto */
  49.                 $wp_array = extract_json("http://www.mondoblackberry.com/?json=get_posts&count=5");
  50.                 echo("<li><p class='titolone'>ULTIMI POST</p><ul>");
  51.                 foreach($wp_array['posts'] as $post) {
  52.                         echo "<li><p class='titolo'><a href='" . $post['url'] . "' target=_blank><img src='" . $post["attachments"][0]["url"] . "' alt= '" . $post["attachments"][0]["title"] . "' width='70' height='49'><b>" . $post['title'] . "</b></a></p></li>";
  53.                 }
  54.                 /*echo("<li><p class='titolone'></p></li><li class='border'><a href='http://www.mondoblackberry.com' target='_blank'><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_portale_menu.png' alt='MBB'></a></li>");*/
  55.                 echo("</ul></li>");
  56.             ?>
  57.             <?  
  58.                 echo("<li><p class='titolone'>ULTIME LEAKED</p><ul>");
  59.                 $wp_array = extract_json("http://www.mondoblackberry.com/?json=get_category_posts&slug=aggiornamenti-leaked&count=5");
  60.                 foreach($wp_array['posts'] as $category) {
  61.                         echo "<li><p class='titolo'><a href='" . $category['url'] . "' target=_blank><img src='" . $category["attachments"][0]["url"] . "' alt= '" . $category["attachments"][0]["title"] . "' width='70' height='49'><b>" . $category['title'] . "</b></a></p></li>";
  62.                 }
  63.                 /*echo("<li><p class='titolone'></p></li><li class='border'><a href='http://forum.mondoblackberry.com' target='_blank'><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_forum_menu.png' alt='MBB'></a></li>");*/
  64.                 echo("</ul></li>");
  65.             ?>
  66.             <?
  67.             echo("<li><p class='titolone'>STORE</p><ul>");
  68.                 $wp_array = extract_json("http://www.mondoblackberry.com/?json=get_category_posts&slug=accessori-blackberry-italia&count=5");
  69.                 foreach($wp_array['posts'] as $category) {
  70.                         echo "<li><p class='titolo'><a href='" . $category['url'] . "' target=_blank><img src='" . $category["attachments"][0]["url"] . "' alt= '" . $category["attachments"][0]["title"] . "' width='70' height='49'><b>" . $category['title'] . "</b></a></p></li>";
  71.                 }
  72.                 /*echo("<li><p class='titolone'></p></li><li class='border'><a href='http://store.mondoblackberry.com' target='_blank'><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_store_menu.png' alt='MBB'></a></li>");*/
  73.                 echo("</ul></li></ul></li>");
  74.             ?>
  75.             <!-- FINE MONDOBLACKBERRY -->
  76.            
  77.            
  78.             <!-- IMONDOAPPLE -->
  79.             <li class="navItem"> <a href="#" title="iMondoApple"><img src="http://www.imondoapple.com/favicon.ico"  alt="iMondoApple" width="25">&nbsp;iMondoApple</a>
  80.             <ul class="navContent">
  81.            
  82.             <div class=titolo_header>          
  83.                 <table>
  84.                     <tr>
  85.                         <th><a class="float-shadow" href="http://www.imondoapple.com" target="_blank"><img src='http://www.mondoblackberry.com/wp-content/uploads/logoAPP_portale_menu.png' width="300" alt="iMA"></a></th>
  86.                         <th><a class="float-shadow" href="http://www.imondoapple.com/store" target="_blank"><img src='http://www.mondoblackberry.com/wp-content/uploads/logoAPP_store_menu.png' width="300" alt="iMA Store"></a></th>
  87.                         <th><img src='http://www.mondoblackberry.com/wp-content/uploads/vuoto.png' width="300" alt="MBB Forum"></th>
  88.                     </tr>
  89.                 </table>               
  90.             </div>  
  91.                         <?  
  92.                 /* estrae contenuto array php e stampa a schermo il risultato voluto */
  93.                 $wp_array = extract_json("http://www.imondoapple.com/?json=get_posts&count=5");
  94.                 echo("<li><p class='titolone'>ULTIMI POST</p><ul>");
  95.                 foreach($wp_array['posts'] as $post) {
  96.                         echo "<li><p class='titolo'><a href='" . $post['url'] . "' target=_blank><img src='" . $post["attachments"][0]["url"] . "' alt= '" . $post["attachments"][0]["title"] . "' width='70' height='49'><b>" . $post['title'] . "</b></a></p></li>";
  97.                 }
  98.                 /*echo("<li><p class='titolone'></p></li><li class='border'><a href='http://www.mondoblackberry.com' target='_blank'><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_portale_menu.png' alt='MBB'></a></li>");*/
  99.                 echo("</ul></li>");
  100.             ?>
  101.             <?  
  102.                 echo("<li><p class='titolone'>JAILBREAKs</p><ul>");
  103.                 $wp_array = extract_json("http://www.imondoapple.com/?json=get_category_posts&slug=jailbreak&count=5");
  104.                 foreach($wp_array['posts'] as $category) {
  105.                         echo "<li><p class='titolo'><a href='" . $category['url'] . "' target=_blank><img src='" . $category["attachments"][0]["url"] . "' alt= '" . $category["attachments"][0]["title"] . "' width='70' height='49'><b>" . $category['title'] . "</b></a></p></li>";              }
  106.                 /*echo("<li><p class='titolone'></p></li><li class='border'><a href='http://forum.mondoblackberry.com' target='_blank'><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_forum_menu.png' alt='MBB'></a></li>");*/
  107.                 echo("</ul></li>");
  108.             ?>
  109.             <?  
  110.                 echo("<li><p class='titolone'>APPLICAZIONI</p><ul>");
  111.                 $wp_array = extract_json("http://www.imondoapple.com/?json=get_category_posts&slug=applicazioni&count=5");
  112.                 foreach($wp_array['posts'] as $category) {
  113.                         echo "<li><p class='titolo'><a href='" . $category['url'] . "' target=_blank><img src='" . $category["attachments"][0]["url"] . "' alt= '" . $category["attachments"][0]["title"] . "' width='70' height='49'><b>" . $category['title'] . "</b></a></p></li>";             
  114.                 }
  115.                 /*echo("<li><p class='titolone'></p></li><li class='border'><a href='http://store.mondoblackberry.com' target='_blank'><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_store_menu.png' alt='MBB'></a></li>");*/
  116.                 echo("</ul></li></ul></li>");
  117.             ?> 
  118.             <!-- FINE iMONDOAPPLE -->
  119.            
  120.            
  121.             <!-- MONDOWINDOWSPHONE -->
  122.             <li class="navItem"> <a href="#" title="MondoWP"><img src="http://www.mondowindowsphone.com/favicon.ico" alt="MondoWindowsPhone" width="25">&nbsp;MondoWindowsPhone</a>
  123.             <ul class="navContent">
  124.            
  125.             <div class=titolo_header>          
  126.                 <table>
  127.                     <tr>
  128.                         <th><a class="float-shadow" href="http://www.mondowindowsphone.com" target="_blank"><img src='http://www.mondoblackberry.com/wp-content/uploads/logoMWP_portale_menu.png' width="300" alt="MBB"></a></th>
  129.                         <th><a class="float-shadow" href="http://www.mondowindowsphone.com/store/" target="_blank"><img src='http://www.mondoblackberry.com/wp-content/uploads/logoMWP_store_menu.png' width="300" alt="MBB Store"></a></th>
  130.                         <th><img src='http://www.mondoblackberry.com/wp-content/uploads/vuoto.png' width="300" alt="MBB Forum"></th>
  131.                     </tr>
  132.                 </table>               
  133.             </div>
  134.             <?  
  135.                 /* estrae contenuto array php e stampa a schermo il risultato voluto */
  136.                 $wp_array = extract_json("http://www.mondowindowsphone.com/?json=get_posts&count=5");
  137.                 echo("<li><p class='titolone'>ULTIMI POST</p><ul>");
  138.                 foreach($wp_array['posts'] as $post) {
  139.                         echo "<li><p class='titolo'><a href='" . $post['url'] . "' target=_blank><img src='" . $post["attachments"][0]["url"] . "' alt= '" . $posts['title'] . "' width='70' height='49'><b>" . $post['title'] . "</b></a></p></li>";
  140.                 }
  141.                 /*echo("<li><p class='titolone'></p></li><li class='border'><a href='http://www.mondoblackberry.com' target='_blank'><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_portale_menu.png' alt='MBB'></a></li>");*/
  142.                 echo("</ul></li>");            
  143.             ?>
  144.             <?  
  145.                 echo("<li><p class='titolone'>RUBRICHE</p><ul>");
  146.                 $wp_array = extract_json("http://www.mondowindowsphone.com/?json=get_category_posts&slug=rubriche&count=5");
  147.                 foreach($wp_array['posts'] as $category) {
  148.                         echo "<li><p class='titolo'><a href='" . $category['url'] . "' target=_blank><img src='" . $category["attachments"][0]["url"] . "' alt= '" . $category["attachments"][0]["title"] . "' width='70' height='49'><b>" . $category['title'] . "</b></a></p></li>";             
  149.                 }
  150.                 /*echo("<li><p class='titolone'></p></li><li class='border'><a href='http://forum.mondoblackberry.com' target='_blank'><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_forum_menu.png' alt='MBB'></a></li>");*/
  151.                 echo("</ul></li>");
  152.             ?>
  153.             <?  
  154.                 echo("<li><p class='titolone'>RECENSIONI</p><ul>");
  155.                 $wp_array = extract_json("http://www.mondowindowsphone.com/?json=get_category_posts&slug=recensioni&count=5");
  156.                 foreach($wp_array['posts'] as $category) {
  157.                         echo "<li><p class='titolo'><a href='" . $category['url'] . "' target=_blank><img src='" . $category["attachments"][0]["url"] . "' alt= '" . $category["attachments"][0]["title"] . "' width='70' height='49'><b>" . $category['title'] . "</b></a></p></li>";             
  158.                 }
  159.                 /*echo("<li><p class='titolone'></p></li><li class='border'><a href='http://store.mondoblackberry.com' target='_blank'><img src='http://www.mondoblackberry.com/wp-content/uploads/logo_store_menu.png' alt='MBB'></a></li>");*/
  160.                 echo("</ul></li></ul></li></ul>");          ?>
  161.             <!-- FINE MONDOWINDOWSPHONE -->
  162.            
  163.         </nav>
  164.     </div>
  165.     </div>
  166.    
  167.     <iframe src="http://www.mondoblackberry.com" width="100%" height="1400"></iframe>  
  168.     <!-- Scripts for jQuery and the plugin -->
  169.     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  170.     <script src="js/sliderMondo.js"></script>
  171.     <script>
  172.             (function() {
  173.    
  174.                 /**
  175.                  * This is the call we have to do to execute
  176.                  * the plugin giving a custom params
  177.                  */
  178.                 $('#sliderMondo').booNavigation({
  179.                     slideSpeed: 500,
  180.                     fadeSpeed: 300,
  181.                     delay: 400
  182.                 });
  183.    
  184.             })();
  185.    
  186.             </script>
  187. </body>
  188. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement