private static function _getUploadedLogos()
 {
     $logos = fn_filter_uploaded_data('tw_settings');
     $logo_names = array('logo', 'favicon');
     $options = array();
     foreach ($logo_names as $logo_name) {
         if ($logos and !empty($logos[$logo_name])) {
             $logo = $logos[$logo_name];
             $filename = fn_twg_get_images_path() . $logo['name'];
             // On some hosts files copy buggy
             touch($filename);
             if (!fn_copy($logo['path'], $filename)) {
                 $_text = __('text_cannot_create_file');
                 $text = str_replace('[file]', $filename, $_text);
                 fn_set_notification('E', __('error'), $text);
             } else {
                 $options[$logo_name . '_url'] = $filename;
             }
             @unlink($logo['path']);
         }
     }
     return $options;
 }
    function content_55dc759d52a450_29070267($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            $_smarty_tpl->tpl_vars["state"] = new Smarty_variable($_SESSION['twg_state'], null, 0);
            $_smarty_tpl->tpl_vars['addon_images_path'] = new Smarty_variable(fn_twg_get_images_path(), null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['state']->value['twg_can_be_used'] && !$_smarty_tpl->tpl_vars['state']->value['mobile_link_closed']) {
                ?>
<div class="mobile-avail-notice">
    <div class="buttons-container">
        <a href="<?php 
                echo htmlspecialchars(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "mobile", "auto", "desktop"), "mobile"), ENT_QUOTES, 'UTF-8');
                ?>
">
            <?php 
                echo $_smarty_tpl->__('twg_visit_our_mobile_store');
                ?>

        </a>

        <?php 
                if ($_smarty_tpl->tpl_vars['state']->value['device'] == "android" && $_smarty_tpl->tpl_vars['state']->value['url_on_googleplay']) {
                    ?>
            <a href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_googleplay'], ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->__('twg_app_for_android');
                    ?>
</a>
        <?php 
                } elseif (($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone" || $_smarty_tpl->tpl_vars['state']->value['device'] == "ipad") && $_smarty_tpl->tpl_vars['state']->value['url_on_appstore']) {
                    ?>
            <a href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_appstore'], ENT_QUOTES, 'UTF-8');
                    ?>
">
                <?php 
                    if ($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone") {
                        ?>
                    <?php 
                        echo $_smarty_tpl->__('twg_app_for_iphone');
                        ?>

                <?php 
                    } else {
                        ?>
                    <?php 
                        echo $_smarty_tpl->__('twg_app_for_ipad');
                        ?>

                <?php 
                    }
                    ?>
            </a>
        <?php 
                }
                ?>
        <span id="close_notification_mobile_avail_notice" class="cm-notification-close hand close" title="Close" />&times;</span>
    </div>
</div>
<?php 
            }
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/twigmo/hooks/index/content.pre.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/twigmo/hooks/index/content.pre.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            $_smarty_tpl->tpl_vars["state"] = new Smarty_variable($_SESSION['twg_state'], null, 0);
            $_smarty_tpl->tpl_vars['addon_images_path'] = new Smarty_variable(fn_twg_get_images_path(), null, 0);
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['state']->value['twg_can_be_used'] && !$_smarty_tpl->tpl_vars['state']->value['mobile_link_closed']) {
                ?>
<div class="mobile-avail-notice">
    <div class="buttons-container">
        <a href="<?php 
                echo htmlspecialchars(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "mobile", "auto", "desktop"), "mobile"), ENT_QUOTES, 'UTF-8');
                ?>
">
            <?php 
                echo $_smarty_tpl->__('twg_visit_our_mobile_store');
                ?>

        </a>

        <?php 
                if ($_smarty_tpl->tpl_vars['state']->value['device'] == "android" && $_smarty_tpl->tpl_vars['state']->value['url_on_googleplay']) {
                    ?>
            <a href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_googleplay'], ENT_QUOTES, 'UTF-8');
                    ?>
"><?php 
                    echo $_smarty_tpl->__('twg_app_for_android');
                    ?>
</a>
        <?php 
                } elseif (($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone" || $_smarty_tpl->tpl_vars['state']->value['device'] == "ipad") && $_smarty_tpl->tpl_vars['state']->value['url_on_appstore']) {
                    ?>
            <a href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_appstore'], ENT_QUOTES, 'UTF-8');
                    ?>
">
                <?php 
                    if ($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone") {
                        ?>
                    <?php 
                        echo $_smarty_tpl->__('twg_app_for_iphone');
                        ?>

                <?php 
                    } else {
                        ?>
                    <?php 
                        echo $_smarty_tpl->__('twg_app_for_ipad');
                        ?>

                <?php 
                    }
                    ?>
            </a>
        <?php 
                }
                ?>
        <span id="close_notification_mobile_avail_notice" class="cm-notification-close hand close" title="Close" />&times;</span>
    </div>
</div>
<?php 
            }
        }
    }