Skip to main content
Importing the code from the Gist with some indentation (although the code is a bit broken...).
Source Link

https://gist.github.com/anonymous/6da2a99891529940d152

<?php
function pointfinder_menucolumn_get(){
?>
    <div class="col-lg-9 col-md-9" id="pfmenucol1">
        <div class="pf-menu-container">


    if ( wp_is_mobile() ) {
            <nav id="pf-primary-nav" class="pf-nav-dropdown clearfix">
                <ul class="pf-nav-dropdown pfnavmenu pf-topnavmenu">
                    <?php pointfinder_navigation_menu ();?>
                    <?php 
                        if (PFPBSIssetControl('general_postitembutton_status','','1') == 1) {
                    ?>
                    <li id="pfpostitemlink" class="main-menu-item  menu-item-even menu-item-depth-0 menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children">
                      <a class="menu-link main-menu-link">
                          <div class="postanitem-inner">
                              <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
                          </div>
                      </a>
                    </li>
                    <?php 
                        }; 
                    ?>
                </ul>
            </nav>  
    <?php                                               
    }
    else {
 
        if ( function_exists( 'ubermenu' ) ): 
            if ( PFPBSIssetControl('general_postitembutton_status','','1') == 1) { ?>
                <div id="pfpostitemlink" >
                    <a class="menu-link main-menu-link">
                        <div class="postanitem-inner">
                            <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
                        </div>
                    </a>
                </div>
            <?php 
            };

            ubermenu( 'main' , array( 'theme_location' => 'pointfinder-main-menu' ) ); 

            else: 

            ?>
                <nav id="pf-primary-nav" class="pf-nav-dropdown clearfix">
                    <ul class="pf-nav-dropdown pfnavmenu pf-topnavmenu">
                        <?php 
                            pointfinder_navigation_menu ();
                            if (PFPBSIssetControl('general_postitembutton_status','','1') == 1) {
                        ?>
                        <li id="pfpostitemlink" class="main-menu-item  menu-item-even menu-item-depth-0 menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children">
                            <a class="menu-link main-menu-link">
                                <div class="postanitem-inner">
                                    <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
                                </div>
                            </a>
                        </li>
                        <?php 
                            };
                        ?>
                    </ul>
                </nav>   
<?php       
    endif; 
    }
?>
<?php
function pointfinder_menucolumn_get(){
?>
    <div class="col-lg-9 col-md-9" id="pfmenucol1">
        <div class="pf-menu-container">


    if ( wp_is_mobile() ) {
            <nav id="pf-primary-nav" class="pf-nav-dropdown clearfix">
                <ul class="pf-nav-dropdown pfnavmenu pf-topnavmenu">
                    <?php pointfinder_navigation_menu ();?>
                    <?php 
                        if (PFPBSIssetControl('general_postitembutton_status','','1') == 1) {
                    ?>
                    <li id="pfpostitemlink" class="main-menu-item  menu-item-even menu-item-depth-0 menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children">
                      <a class="menu-link main-menu-link">
                          <div class="postanitem-inner">
                              <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
                          </div>
                      </a>
                    </li>
                    <?php 
                        }; 
                    ?>
                </ul>
            </nav>  
    <?php                                               
    }
    else {
 
        if ( function_exists( 'ubermenu' ) ): 
            if ( PFPBSIssetControl('general_postitembutton_status','','1') == 1) { ?>
                <div id="pfpostitemlink" >
                    <a class="menu-link main-menu-link">
                        <div class="postanitem-inner">
                            <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
                        </div>
                    </a>
                </div>
            <?php 
            };

            ubermenu( 'main' , array( 'theme_location' => 'pointfinder-main-menu' ) ); 

            else: 

            ?>
                <nav id="pf-primary-nav" class="pf-nav-dropdown clearfix">
                    <ul class="pf-nav-dropdown pfnavmenu pf-topnavmenu">
                        <?php 
                            pointfinder_navigation_menu ();
                            if (PFPBSIssetControl('general_postitembutton_status','','1') == 1) {
                        ?>
                        <li id="pfpostitemlink" class="main-menu-item  menu-item-even menu-item-depth-0 menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children">
                            <a class="menu-link main-menu-link">
                                <div class="postanitem-inner">
                                    <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
                                </div>
                            </a>
                        </li>
                        <?php 
                            };
                        ?>
                    </ul>
                </nav>   
<?php       
    endif; 
    }
?>
deleted 2638 characters in body
Source Link

i use uber menu plugin for my theme. my theme (pointfinder) require manual integration code.It works perfectly, but I would turn it off completely on the mobile I used the following form (if else)to disable it and got an error. sorry I'm not a dev.

https://gist.github.com/anonymous/6da2a99891529940d152

for manual integration use this:

http://sevenspark.com/docs/ubermenu-3/theme-integration/pointfinder

thk a lot

i use uber menu plugin for my theme. my theme (pointfinder) require manual integration code.It works perfectly, but I would turn it off completely on the mobile I used the following form (if else)to disable it and got an error. sorry I'm not a dev.

i use uber menu plugin for my theme. my theme (pointfinder) require manual integration code.It works perfectly, but I would turn it off completely on the mobile I used the following form (if else)to disable it and got an error. sorry I'm not a dev.

https://gist.github.com/anonymous/6da2a99891529940d152

for manual integration use this:

http://sevenspark.com/docs/ubermenu-3/theme-integration/pointfinder

thk a lot

deleted 2638 characters in body
Source Link

                    <?php
                    function pointfinder_menucolumn_get(){
                    ?>
                    <div class="col-lg-9 col-md-9" id="pfmenucol1">
                        <div class="pf-menu-container">


if ( wp_is_mobile() ){
                            
                            
    <nav id="pf-primary-nav" class="pf-nav-dropdown clearfix">
                                <ul class="pf-nav-dropdown pfnavmenu pf-topnavmenu">
                                    <?php pointfinder_navigation_menu ();?>
                                    <?php if (PFPBSIssetControl('general_postitembutton_status','','1') == 1) {?>
                                    <li id="pfpostitemlink" class="main-menu-item  menu-item-even menu-item-depth-0 menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children">
                                    <a class="menu-link main-menu-link">
                                    <div class="postanitem-inner">
                                    <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
                                    </div>
                                    </a>
                                    </li>
                                    <?php };?>
                                </ul>
                            </nav>      
}

else{

<?php if (PFPBSIssetControl('general_postitembutton_status','','1') == 1) {?>
    <div id="pfpostitemlink" >
    <a class="menu-link main-menu-link">
    <div class="postanitem-inner">
    <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
    </div>
    </a>
    </div>
<?php };?>
<?php ubermenu( 'main' , array( 'theme_location' => 'pointfinder-main-menu' ) ); ?>
<nav id="pf-primary-nav" class="pf-nav-dropdown clearfix">
    <ul class="pf-nav-dropdown pfnavmenu pf-topnavmenu">
        <?php pointfinder_navigation_menu ();?>
        <?php if (PFPBSIssetControl('general_postitembutton_status','','1') == 1) {?>
        <li id="pfpostitemlink" class="main-menu-item  menu-item-even menu-item-depth-0 menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children">
        <a class="menu-link main-menu-link">
        <div class="postanitem-inner">
        <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
        </div>
        </a>
        </li>
        <?php };?>
    </ul>
</nav>   

}



                    <?php
                    function pointfinder_menucolumn_get(){
                    ?>
                    <div class="col-lg-9 col-md-9" id="pfmenucol1">
                        <div class="pf-menu-container">


if ( wp_is_mobile() ){
                            
                            
    <nav id="pf-primary-nav" class="pf-nav-dropdown clearfix">
                                <ul class="pf-nav-dropdown pfnavmenu pf-topnavmenu">
                                    <?php pointfinder_navigation_menu ();?>
                                    <?php if (PFPBSIssetControl('general_postitembutton_status','','1') == 1) {?>
                                    <li id="pfpostitemlink" class="main-menu-item  menu-item-even menu-item-depth-0 menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children">
                                    <a class="menu-link main-menu-link">
                                    <div class="postanitem-inner">
                                    <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
                                    </div>
                                    </a>
                                    </li>
                                    <?php };?>
                                </ul>
                            </nav>      
}

else{

<?php if (PFPBSIssetControl('general_postitembutton_status','','1') == 1) {?>
    <div id="pfpostitemlink" >
    <a class="menu-link main-menu-link">
    <div class="postanitem-inner">
    <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
    </div>
    </a>
    </div>
<?php };?>
<?php ubermenu( 'main' , array( 'theme_location' => 'pointfinder-main-menu' ) ); ?>
<nav id="pf-primary-nav" class="pf-nav-dropdown clearfix">
    <ul class="pf-nav-dropdown pfnavmenu pf-topnavmenu">
        <?php pointfinder_navigation_menu ();?>
        <?php if (PFPBSIssetControl('general_postitembutton_status','','1') == 1) {?>
        <li id="pfpostitemlink" class="main-menu-item  menu-item-even menu-item-depth-0 menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children">
        <a class="menu-link main-menu-link">
        <div class="postanitem-inner">
        <span class="pfadmicon-glyph-478"></span><?php echo PFPBSIssetControl('general_postitembutton_buttontext','','Post an Item');?>
        </div>
        </a>
        </li>
        <?php };?>
    </ul>
</nav>   

}


Post Undeleted by Die84albe
Post Deleted by Die84albe
Source Link
Loading