Some facebook feed comments, and top nav code culling.
authorLaury GvR <laury@gaslightmedia.com>
Fri, 24 Apr 2015 20:12:54 +0000 (16:12 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 24 Apr 2015 20:12:54 +0000 (16:12 -0400)
front-page.php
functions.php

index 2d15a9a..9197348 100644 (file)
             <div class="small-12 text-center large-4 columns">
                 <a class="blocks" href="#"><?php do_shortcode("[custom-facebook-feed]") ?></a>
             </div>
+            <div class="fb-page" data-href="https://www.facebook.com/instagram" 
+            data-width="480" data-hide-cover="false" data-show-facepile="false"
+            data-show-posts="true">
+                
+            </div>
+<!--            GET /oauth/access_token?
+            client_id={app-id}
+           &client_secret={app-secret}
+           &grant_type=client_credentials-->
+<!--            GET graph.facebook.com
+          /v2.3/me/friends
+            access_token=...&
+            debug=all-->
+<!--            GET /v2.3/me/feed HTTP/1.1
+            Host: graph.facebook.com-->
+            <!--            /* PHP SDK v4.0.0 */
+            /* make the API call */
+            $request = new FacebookRequest(
+              $session,
+              'GET',
+              '/me/feed'
+            );
+            $response = $request->execute();
+            $graphObject = $response->getGraphObject();
+            /* handle the result */-->
+<!--            /{user-id}/links shows only the links that were published by this person.
+            /{user-id}/posts shows only the posts that were published by this person.
+            /{user-id}/statuses shows only the status update posts that were published by this person.
+            /{user-id}/tagged shows only the posts that this person was tagged in.-->
+
         </div>
     </main>
 <?php get_footer(); ?>
index 9223856..a0bda93 100644 (file)
@@ -59,9 +59,9 @@ function glm_page_menu($parent = 0, $class = '')
         'sort_order'  => 'asc',
         'sort_column' => 'menu_order'
     );
-    if ($parent == 0 && $menuConfig['menu_options']['main_level_pages']) {
-        $args['include'] = $menuConfig['menu_options']['main_level_pages'];
-    }
+//    if ($parent == 0 && $menuConfig['menu_options']['main_level_pages']) {
+//        $args['include'] = $menuConfig['menu_options']['main_level_pages'];
+//    }
     $pages = get_pages($args);
     echo '<ul'.(($class)?' class="'.$class.'"':'').'><!-- begin -->'."\n";
     foreach ($pages as $page) {
@@ -73,9 +73,9 @@ function glm_page_menu($parent = 0, $class = '')
             echo '</li>'."\n";
         } else {
             echo '<li';
-            if ($page->ID == $frontPageId) {
-                echo ' id="logo"';
-            }
+//            if ($page->ID == $frontPageId) {
+//                echo ' id="logo"';
+//            }
             echo '><a href="'.get_permalink($page->ID).'">';
             echo ($page->ID == $frontPageId) ? '<img src="'.get_bloginfo('template_url').'/assets/head-logo.png">': $page->post_title;
             echo '</a></li>'."\n";