• Purchasing a license grants permission to use the software and to get Tech Support. A license purchase doesn't grant customization support.

Move social share icons to embed codes tab

varcusioanandrei

Core license
License owner
Hello,

Is there a way how to move social share icons from about tab to embed codes tab.

I've tried to look in route.image.php but coding for me is at a beginner stage.
 

varcusioanandrei

Core license
License owner
I finally found it. It was extremely easy.
PHP:
<?php if(CHV\getSetting('theme_show_embed_content')) { ?>
        <div id="tab-codes" class="tabbed-content<?php echo (get_current_tab() == 'codes' ? ' visible' : NULL); ?>">

            <div class="growl static text-align-center margin-bottom-30 clear-both<?php if(get_image()['album']['privacy'] == 'public' || get_image()['album']['privacy'] == NULL) echo " soft-hidden"; ?>" data-content="privacy-private"><?php echo get_image()['album']['privacy_notes']; ?></div>
change to ->

PHP:
<?php if(CHV\getSetting('theme_show_embed_content')) { ?>
        <div id="tab-codes" class="tabbed-content<?php echo (get_current_tab() == 'codes' ? ' visible' : NULL); ?>">

            <div class="growl static text-align-center margin-bottom-30 clear-both<?php if(get_image()['album']['privacy'] == 'public' || get_image()['album']['privacy'] == NULL) echo " soft-hidden"; ?>" data-content="privacy-private"><?php echo get_image()['album']['privacy_notes']; ?></div>

<?php if(CHV\getSetting('theme_show_social_share')) { ?>
            <div class="tablet-show laptop-show desktop-show hidden c15 phablet-c1 fluid-column grid-columns default-margin-bottom margin-left-10 panel-share-networks">
                <h4 class="title c4 grid-columns"><?php _se('Share image'); ?></h4>
                <ul>
                <?php echo join("\n", get_share_links_array()); ?>
                </ul>
            </div>
            <?php } ?>
 
Top