示例#1
0
 /**
  * Register the plugin with the TinyMCE plugins manager
  * @access public
  */
 function iz_add_tinymce_plugin($plugin_array)
 {
     $plugin_array['image_zoom_button'] = ImageZoooom()->plugins_url() . '/assets/js/tinyMCE-button.js';
     return $plugin_array;
 }
示例#2
0
    echo $lensShape['name'];
    ?>
" id="<?php 
    echo $_id;
    ?>
" value="<?php 
    echo $_id;
    ?>
" <?php 
    echo $lensShape['value'] == $_id ? 'checked' : '';
    ?>
 />
            <div class="icon-in-label ndd-spot-icon icon-style-1">
              <div class="ndd-icon-main-element">
              <img src="<?php 
    echo ImageZoooom()->plugins_url() . '/assets' . $_value[0];
    ?>
"<?php 
    if (!empty($_value[1])) {
        echo ' data-toggle="tooltip" data-placement="top" title="' . $_value[1] . '" data-original-title="' . $_value[1] . '"';
    }
    ?>
 />
              </div>
            </div>
            </label>
            <?php 
}
?>
          </div>
示例#3
0
                $general['force_lazyload'] = false;
            }
            return $general;
        }
    }
}
/**
 * Returns the main instance of ImageZoooom
 *
 * @return ImageZoooom
 */
function ImageZoooom()
{
    return ImageZoooom::instance();
}
ImageZoooom();
/**
 *  * Plugin action link to Settings page
 *  */
function wp_image_zoooom_plugin_action_links($links)
{
    $settings_link = '<a href="admin.php?page=zoooom_settings">' . esc_html(__('Settings')) . '</a>';
    return array_merge(array($settings_link), $links);
}
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'wp_image_zoooom_plugin_action_links');
if (!function_exists('x_disable_wp_image_srcset')) {
    function x_disable_wp_image_srcset()
    {
        return true;
    }
}
示例#4
0
 public function assets_url()
 {
     $assets_url = ImageZoooom()->plugins_url() . '/assets';
     return $assets_url;
 }
示例#5
0
<?php

require_once 'image-zoom-forms-helper.php';
$iz = ImageZoooom();
$iz_admin = new ImageZoooom_Admin();
$iz_forms_helper = new ImageZoooom_FormsHelper();
$assets_url = $iz->plugins_url() . '/assets';
$settings = $iz->get_option_general();
if ($settings == false) {
    $settings = $iz_admin->validate_general(null);
}
$messages = $iz_admin->show_messages();
include_once 'premium-tooltips.php';
?>
<style type="text/css">
    .form-group { display:flex; align-items: center; }
    .control-label{ height: auto; }
</style>

<script type="text/javascript">

    jQuery(document).ready(function($) {
        $('[data-toggle="tooltip"]').tooltip();
    });
</script>

<div class="wrap">

<h2>WP Image Zoom</h2>

<h2 class="nav-tab-wrapper woo-nav-tab-wrapper">