Hello! I want to add an Instagram tab to a wordpress widget. I do by analogy with a contact, there is an example of how it should look, but for the time being I don’t understand what fields / variables need to be replaced with the Code below:

<?php public function vk_output() { $show_vk_box=m ad_custom_get_option( 'show_vk_box'); $vk_title=h tmlspecialchars(mad_custom_get_option( 'vk_title')); $vk_widget_community=h tml_entity_decode(mad_custom_get_option( 'vk_widget_community')); if ($show_vk_box): ?> <li> <button class="panel-button instagram"></button> <div class="admin-panel-content"> <?php if (!empty($vk_title)): ?> <h3 class="panel-title"><?php echo esc_html($vk_title); ?></h3> <?php endif; ?> <?php ?> <?php if (strpos($vk_widget_community, 'vk.com/js/api/')) { echo $vk_widget_community; } ?> </div> <!--/ .admin-panel-content--> </li> <?php endif; } ?> /* Должен получиться такой вывод */ <li> <button class="panel-button instagram"></button> <div class="admin-panel-content"> <h3 class="panel-title">Instagram</h3> <iframe src="http://snapwidget.com/in/?h=YW1hemluZ3xpbnw1NXw0fDR8fG5vfDJ8bm9uZXxvblN0YXJ0fHllc3xubw==&amp;ve=300415" title="Instagram Widget" class="snapwidget-widget" style="border:none;overflow:hidden;width:228px;height:228px"></iframe> </div> <!--/ .admin-panel-content--> </li> 

    1 answer 1

    In general, I decided myself, maybe someone will use the thread:

     public function instagram_output() { ?> <li> <button class="panel-button instagram"></button> <div class="admin-panel-content"> <h3 class="panel-title">Instagram</h3> <iframe src="http://snapwidget.com/in/?h=YW1hemluZ3xpbnw1NXw0fDR8fG5vfDJ8bm9uZXxvblN0YXJ0fHllc3xubw==&amp;ve=300415" title="Instagram Widget" class="snapwidget-widget" style="border:none;overflow:hidden;width:228px;height:228px"></iframe> </div> <!--/ .admin-panel-content--> </li> <?php } <!--добавил в список--> <div class="aside-admin-panel"> <ul> <?php $this->vk_output(); ?> <?php $this->facebook_output(); ?> <?php $this->latest_tweets_output(); ?> <?php $this->contact_us_output(); ?> <?php $this->store_location_output(); ?> <?php $this->instagram_output(); ?> </ul>