php - Tooltip not functioning when routed to a new url path -


i have template php files dates , sharing. 1 file this:

date-share.php:

<div class="date"><?php echo date('m d'); ?><span><?php echo date('y'); ?></span></div>                             <a href="javascript:void(0);" class="share-button"><span class="plus"></span>share</a>                             <!-- tooltip -->                             <div class="tooltip-social-network clearfix" style="margin-top: -10px">                                  <span class='st_facebook_large' displaytext='facebook'></span>                                 <span class='st_twitter_large' displaytext='tweet'></span>                                 <span class='st_googleplus_large' displaytext='google +'></span>                                 <span class='st_pinterest_large' displaytext='pinterest'></span>                                 <span class='st_instagram_large' displaytext='instagram badge' st_username='mews'></span>                                 <span class='st_email_large' displaytext='email'></span>                             </div> 

i php include 1 of views avoid clutter, instead of putting there.

<?php include('templates/date-share.php')?> 

this how in view when share button clicked.

enter image description here

the social media icons group tooltip.

however, rerouted view new url path. added php echo base_url links maintain root path. i'm not sure how apply php include, didn't add any. still appeared share button can't show tooltip anymore.

edit: added pic clicked share without tooltip - rerouted different url path

enter image description here

you can use view method inside view load other view/partials.

make sure date-share.php under following path `application/views/template/date-share.php'

now inside main view load date-share.php below.

$this->load->view('template/date-share.php');


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

Kivy: Swiping (Carousel & ScreenManager) -

jdbc - Not able to establish database connection in eclipse -