From: Ian Weller Date: Fri, 27 Jan 2017 19:20:55 +0000 (-0500) Subject: updating X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=38d6c7a7eebedb6b6bdd09b3502feb299c383738;p=WP-Themes%2Fglmthemes%2Fcountyfair-theme.git updating I added a php echo shortcode to show a slideshow that matches the same slideshow dimensions as the original for better demo --- diff --git a/functions.php b/functions.php index 7c0f23c..8beaaa1 100644 --- a/functions.php +++ b/functions.php @@ -25,71 +25,7 @@ if (!function_exists('glm_quicksite_widget_init')) { } -/** - * Mobile off-canvas - */ -if ( ! function_exists( 'glm_theme_mobile_off_canvas' ) ) { - function glm_theme_mobile_off_canvas() { - echo '
'; - echo '
'; - } -} -/** - * get_menu_options - * - * Grab the menu options from the theme.ini file - */ -function glm_get_menu_options() -{ - static $menu_options; - $themeConfig = get_template_directory() . '/theme.ini'; - if (!$menu_options && is_file($themeConfig)) { - $menu_options = parse_ini_file($themeConfig, true); - } - return $menu_options; -} - -/** - * glm_page_menu - * - * Grab the top level pages and their sub pages as the main navigation - */ -function glm_page_menu($parent = 0, $class = '') -{ - $menuConfig = glm_get_menu_options(); - $frontPageId = get_option('page_on_front'); - $parents = array(); - $args = array( - 'post_type' => 'page', - 'parent' => $parent, - 'number' => '', - 'exclude' => $frontPageId, - 'post_status' => 'publish', - 'sort_order' => 'asc', - 'sort_column' => 'menu_order' - ); - if ($parent == 0 && $menuConfig['menu_options']['main_level_pages']) { - $args['include'] = $menuConfig['menu_options']['main_level_pages']; - } - $pages = get_pages($args); - echo ''."\n"; - foreach ($pages as $page) { - $childs = get_pages('child_of=' . $page->ID); - if (count($childs) > 0) { - echo '
  • '."\n"; - echo ''.$page->post_title.''."\n"; - echo glm_page_menu($page->ID, 'sub-menu dropdown'); - echo '
  • '."\n"; - } else { - echo '
  • '.$page->post_title.'
  • '."\n"; - } - } - echo ''."\n"; -} function SearchFilter($query) { @@ -103,19 +39,6 @@ function SearchFilter($query) { } add_filter('pre_get_posts','SearchFilter'); -/** - * glm_offcanvas_menu - * - * Generate the list of pages as nested ul li list - */ -function glm_offcanvas_menu() -{ - wp_page_menu(array( - 'depth' => 0, - 'sort_column' => 'menu_order', - 'menu_class' => 'left-off-canvas-list' - )); -} add_action('after_setup_theme', 'glm_theme_setup'); function glm_theme_setup () { diff --git a/parts/slide-show.php b/parts/slide-show.php index fe64b6e..a0d4302 100644 --- a/parts/slide-show.php +++ b/parts/slide-show.php @@ -1,6 +1,10 @@ -'; - echo '

    Slideshow here

    '; - echo ''; -} -?> + +
    + + + + +
    + \ No newline at end of file