Facebook Iframe now in front page template
authorLaury GvR <laury@gaslightmedia.com>
Mon, 20 Oct 2014 20:30:30 +0000 (16:30 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 20 Oct 2014 20:30:30 +0000 (16:30 -0400)
index.php
sidebar.php
style.css

index 15cab4b..020c351 100644 (file)
--- a/index.php
+++ b/index.php
@@ -9,12 +9,17 @@
                                 echo "<div class=\"breadcrumbs\">";
                                     bcn_display();
                                 echo "</div>";
-                                
-                            }?>
+                            }
+                            ?>
                         <div id="toolbox">
-                            <?php if(have_posts()) : while(have_posts()): the_post();?>
-                            <?php the_content();?>
-                            <?php endwhile; else:?>
+                            <?php if(have_posts()) : while(have_posts()): the_post();
+                                the_content();
+                                
+                                if (is_front_page()) {
+                                    echo '<iframe style="border: currentColor; width: 292px; height: 427px; overflow: hidden;" src="https://www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FParrots-Landing%2F240290099335183&amp;width=292&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=true&amp;header=true&amp;height=427" width="300" height="150" frameborder="0" scrolling="no"></iframe>';
+                                    the_block( 'Homepage Images');
+                                } 
+                                endwhile; else:?>
                             <p><?php _e('Sorry, no posts yet');?></p>
                             <?php endif;?>
                         </div><!-- /#toolbox -->
index d5a6a0e..b3ce8cd 100755 (executable)
@@ -2,6 +2,7 @@
                     <div id="column" class="show-for-medium-up medium-2 columns sidebar">
                         <div id="nav">
                             <?php glm_wp_list_pages();?>
+                            <?php // wp_nav_menu( array( 'theme_location' => 'sidenav' ) ); ?>
                         </div>
                     </div><!-- /#column -->
                     
index 11b136c..9b98994 100755 (executable)
--- a/style.css
+++ b/style.css
@@ -121,32 +121,10 @@ img {
        top:0px;
        left: 0px;
        }
-        
+#wpadminbar {
+    display:none;
+}
 
-        #wpadminbar {
-            display:none;
-        }
-        
-@media (max-width:640px) {
-        html {
-            margin: 0 !important;
-        }
-        #top {
-            padding: 0;
-        }
-        #logo {
-            float: none;
-            max-height: 100%;
-            max-width: 100%;
-            position: relative;
-        }
-        
-    }
-    @media (min-width: 641px) {
-        .tab-bar{
-/*            display: none;*/
-        }
-    }
 /* Main Contant Area */
 #main {
        max-width: 780px;
@@ -451,8 +429,20 @@ ul, ol, dl {
 }
 
 /* Media Queries */
-
-@media (max-width: 640px) {
+        
+@media (max-width:640px) {
+    html {
+        margin: 0 !important;
+    }
+    #top {
+        padding: 0;
+    }
+    #logo {
+        float: none;
+        max-height: 100%;
+        max-width: 100%;
+        position: relative;
+    }
     #main {
         margin: 0px;
     }