[wordpress插件] Camera slideshow相机幻灯片

wordpress 插件 文章 2020-03-16 04:30 507 0 全屏看文

AI助手支持GPT4.0

评分
86
描述

If you're looking for an advanced WordPress slideshow:

如果您正在寻找高级WordPress幻灯片:

rel="nofollow">Shortcodelic plugin bundle (it also includes many other features: tabs, accordions, Google maps, pricing table, a page composer…).

rel =“ nofollow”> Shortcodelic插件包 (它还包括许多其他功能:标签,手风琴,Google地图,定价表,页面编辑器…)。

A jQuery slideshow with an adaptiveesponsive layout, easy to use with an extended admin panel.

具有自适应/响应式布局的jQuery幻灯片,易于与扩展管理面板一起使用。

It already provides ColorBox, TimThumb, many effects.

它已经提供了ColorBox,TimThumb等许多效果。

You can include it into your theme by using the shortcode (through a useful TinyMCE custom button) or through a meta-box by adding some lines of code to your theme.

您可以通过使用简码(通过有用的TinyMCE自定义按钮)将其包含在主题中,或者通过在主题中添加一些代码行来通过meta-box。

Here is the demo page: Camera slideshow

这是演示页面:相机幻灯片

安装步骤

    1. Upload camera to the /wp-content/plugins/ directory
    2. 相机上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. You can include Camera slideshow into your projects by using the TinyMCE custom button, by using the shortcode [camera slideshow=’my-first-slideshow’] or by enabling the meta-box.

    6. 您可以通过使用TinyMCE自定义按钮,使用短代码[camera slideshow ='my-first-slideshow']或启用meta框,将Camera幻灯片放到项目中。

      In this case add these lines to your function.php file:

      在这种情况下,请将这些行添加到您的function.php文件中:

      if (function_exists(‘camera_main_ss_add’)) {

      如果(function_exists('camera_main_ss_add')){

      add_action(‘admin_init’,’camera_main_ss_add’);

      add_action('admin_init','camera_main_ss_add');

      }

      }

      A meta box will be available on your page/posts backend to select the slideshow you prefer.

      您的页面/帖子后端将提供一个meta框,用于选择您喜欢的幻灯片。

      Just put this code into your loop to display the slideshow:

      只需将以下代码放入循环中即可显示幻灯片:

      if (function_exists(‘camera_meta_slideshow’)) {

      如果(function_exists('camera_meta_slideshow')){

      $meta_camera = get_post_custom( $post->ID );

      $ meta_camera = get_post_custom($ post-> ID);

      if(isset($meta_camera[‘camera_meta_slideshow’])){
          

      if(isset($ meta_camera [‘camera_meta_slideshow’])){
          

      echo camera_meta_slideshow($meta_camera[‘camera_meta_slideshow’][0]);

      回声camera_meta_slideshow($ meta_camera [‘camera_meta_slideshow’] [0]);

      }

      }

      }

    7. }

下载地址
https://downloads.wordpress.org/plugin/camera-slideshow.zip
-EOF-

AI助手支持GPT4.0