Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well I dont have experience in coding and html..</p> <p>1st function</p> <pre><code>&lt;?php function _bit_header_inside(){ /* HEADER WITH LOGO + BANNER */ global $wpdb,$PPT; return '&lt;div id="header" class="full"&gt;&lt;div class="w_960"&gt; &lt;div class="f_half left" id="logo"&gt; &lt;a href="'.$GLOBALS['bloginfo_url'].'/" title="'.get_bloginfo('name').'"&gt; &lt;img src="'.$PPT-&gt;Logo(true).'" alt="'.get_bloginfo('name').'" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;div class="left" id="banner"&gt; '.test_banner("top",true).' &lt;/div&gt; &lt;/div&gt; &lt;!-- end header w_960 --&gt; &lt;div class="clearfix"&gt;&lt;/div&gt; &lt;/div&gt; &lt;!-- end header --&gt;'; } ?&gt; &lt;?php echo test_header_inside(_bit_header_inside()); /* HOOK / FILTER */ ?&gt; </code></pre> <p>2nd function</p> <pre><code>&lt;?php function custom_login_logout(){ /* Custom LOGIN-LOGOUT BAR */ global $wpdb,$PPT, $userdata; get_currentuserinfo(); $string=''; $string .= '&lt;div id="submenubar"&gt;&lt;div class="w_960"&gt;'; if(isset($GLOBALS['ppt_layout_styles']['header']) &amp;&amp; isset($GLOBALS['ppt_layout_styles']['header']['loginlogout']) &amp;&amp; $GLOBALS['ppt_layout_styles']['header']['loginlogout'] == 1){ }else{ $string .= '&lt;ul class="submenu_account"&gt;'; if ( isset($userdata) &amp;&amp; $userdata-&gt;ID ){ $string .= '&lt;li id="submenu_li_logout"&gt;&lt;a href="'.wp_logout_url().'"&gt;'.$PPT-&gt;_e(array('head','4')).'&lt;/a&gt;&lt;/li&gt; &lt;li id="submenu_li_account"&gt;&lt;a href="'.$GLOBALS['test']['dashboard_url'].'"&gt;'.$PPT-&gt;_e(array('head','5')).'&lt;/a&gt;&lt;/li&gt; &lt;li id="submenu_li_username"&gt;&lt;b&gt;'.$userdata-&gt;display_name.'&lt;/b&gt;&lt;/li&gt;'; }else{ $string .= '&lt;li&gt;&lt;a href="'.$GLOBALS['bloginfo_url'].'/wp-login.php" rel="nofollow" id="submenu_li_login"&gt;'. $PPT-&gt;_e(array('head','6')).'&lt;/a&gt; &lt;a href="'.$GLOBALS['bloginfo_url'].'/wp-login.php?action=register" rel="nofollow" id="submenu_li_register"&gt;'.$PPT-&gt;_e(array('head','7')).'&lt;/a&gt;&lt;/li&gt;'; } $string .= '&lt;/ul&gt; '; } $string .= '&lt;/div&gt; &lt;!-- end w_960 --&gt; &lt;/div&gt;&lt;!-- end submenubar --&gt; '; return $string; } ?&gt; &lt;?php echo test_submenu_inside(custom_login_logout()); /* HOOK / FILTER */ ?&gt; </code></pre> <p>How to insert "custom_login_logout" inside "test_header_inside" below</p> <pre><code>&lt;div class="left" id="banner"&gt; '.test_banner("top",true).' &lt;/div&gt; </code></pre> <p>Can I combine them this way</p> <pre><code>&lt;?php return '&lt;div&gt; some html'; $string .= '&lt;div&gt;'; if else $string .= '&lt;/div&gt;'; return '&lt;/div&gt;'; ?&gt; &lt;?php echo test_header_inside(_bit_header_inside()); /* HOOK / FILTER */ ?&gt; </code></pre> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload