Facebook Login in Header on PlayTube Script  

  RSS

Disquy
(@disquy)
Member Admin
Joined: 2 years  ago
Posts: 88
November 4, 2018 3:01 pm  

I figured I would go ahead an post this simple modification as well since I was already in the files for the Mobile Hamburger Menu in Default PlayTube Theme.

Note: Always backup your db and any files to be modified just to be safe. These types of modifications are not a simple plug and play kind of install. I am not responsible for any loss of data nor does this script come with any guarantee. This script is provided as is.

Find in \themes\default\layout\content.html

 

			<?php if ($pt->config->import_system == 'on' && PT_IsAdmin()) { ?> 
<li class="hide-from-mobile">
<a href="{{LINK import-video}}" class="btn import-button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-download-cloud"><polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path></svg>
<span class="hide-in-mobile">{{LANG import}}</span>
</a>
</li>
<?php } ?>

 

Below Add

                        <?php if ($pt->config->fb_login == 'on' && IS_LOGGED == false) { ?> 
<li class="hide-from-mobile">
<a href="{{LINK social-login.php?provider=Facebook}}" class="btn import-button facebook-button" style="background-color: #445796 !important;">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-facebook" color="#ffffff"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg>
<span class="hide-in-mobile">Facebook</span>
</a>
</li>
<?php } ?>

 

All Done 🙂


ReplyQuote
Share: