Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- For your info when editing in the membership builder (hidden in preview/live): -->
- <p>Kartra Membership Post Host: Joe User</p><!-- membership-post-specific-host+joe-user -->
- <script>
- // Replace Kartra membership post host information
- // Author: Brian Katzung
- (function (info) {
- var social = false;
- // Only run in preview or live, where we'll also hide the script
- if ('app.kartra.com' === location.hostname) return;
- document.currentScript.parentElement.parentElement.style.display = 'none';
- // $(function () { // Uncomment line for right sidebar support
- $('.js_instructor_box_image').attr('src', info.img);
- $('.js_instructor_box_name').text(info.name);
- if (info.bio) $('.js_instructor_box_description').text(info.bio).show();
- else $('.js_instructor_box_description').hide();
- for (var attr of 'email facebook instagram linkedin twitter youtube'.split(' ')) {
- if (info[attr]) {
- social = true;
- $(`[data-social_name="${attr}_url"]`).show().find('a').attr('href', info[attr]);
- } else $(`[data-social_name="${attr}_url"]`).hide();
- }
- if (social) $('ul.social_list').show();
- else $('ul.social_list').hide();
- $('.panel.panel-blank[data-type="host"]').css('visibility', 'visible');
- // }); // Uncomment line for right sidebar support
- })({
- // img and name are required, the others are optional
- img: "https://pixabay.com/images/download/user-33638_640.png",
- name: "Joe User",
- bio: "Kartra User", // null or "text"
- email: "mailto:user@example.com", // null or "mailto:user@example.com"
- facebook: "https://facebook.com/some.body", // null or "https://facebook.com/..."
- instagram: null,
- linkedin: null,
- twitter: null,
- youtube: null,
- });
- </script>
- <style>body > .container .panel.panel-blank[data-type="host"] { visibility: hidden; }</style>
Add Comment
Please, Sign In to add comment