shortcode-vc-flickr.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. return array(
  6. 'base' => 'vc_flickr',
  7. 'name' => esc_html__( 'Flickr Widget', 'js_composer' ),
  8. 'icon' => 'icon-wpb-flickr',
  9. 'category' => esc_html__( 'Content', 'js_composer' ),
  10. 'description' => esc_html__( 'Image feed from Flickr account', 'js_composer' ),
  11. 'params' => array(
  12. array(
  13. 'type' => 'textfield',
  14. 'heading' => esc_html__( 'Widget title', 'js_composer' ),
  15. 'param_name' => 'title',
  16. 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
  17. ),
  18. array(
  19. 'type' => 'textfield',
  20. 'heading' => esc_html__( 'Flickr ID', 'js_composer' ),
  21. 'param_name' => 'flickr_id',
  22. 'value' => '95572727@N00',
  23. 'admin_label' => true,
  24. 'description' => sprintf( esc_html__( 'To find your flickID visit %s.', 'js_composer' ), '<a href="https://www.webfx.com/tools/idgettr/" target="_blank">idGettr</a>' ),
  25. ),
  26. array(
  27. 'type' => 'dropdown',
  28. 'heading' => esc_html__( 'Number of photos', 'js_composer' ),
  29. 'param_name' => 'count',
  30. 'value' => array(
  31. 9,
  32. 8,
  33. 7,
  34. 6,
  35. 5,
  36. 4,
  37. 3,
  38. 2,
  39. 1,
  40. ),
  41. 'description' => esc_html__( 'Select number of photos to display.', 'js_composer' ),
  42. ),
  43. array(
  44. 'type' => 'dropdown',
  45. 'heading' => esc_html__( 'Type', 'js_composer' ),
  46. 'param_name' => 'type',
  47. 'value' => array(
  48. esc_html__( 'User', 'js_composer' ) => 'user',
  49. esc_html__( 'Group', 'js_composer' ) => 'group',
  50. ),
  51. 'description' => esc_html__( 'Select photo stream type.', 'js_composer' ),
  52. ),
  53. array(
  54. 'type' => 'dropdown',
  55. 'heading' => esc_html__( 'Display order', 'js_composer' ),
  56. 'param_name' => 'display',
  57. 'value' => array(
  58. esc_html__( 'Latest first', 'js_composer' ) => 'latest',
  59. esc_html__( 'Random', 'js_composer' ) => 'random',
  60. ),
  61. 'description' => esc_html__( 'Select photo display order.', 'js_composer' ),
  62. ),
  63. vc_map_add_css_animation(),
  64. array(
  65. 'type' => 'el_id',
  66. 'heading' => esc_html__( 'Element ID', 'js_composer' ),
  67. 'param_name' => 'el_id',
  68. 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
  69. ),
  70. array(
  71. 'type' => 'textfield',
  72. 'heading' => esc_html__( 'Extra class name', 'js_composer' ),
  73. 'param_name' => 'el_class',
  74. 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
  75. ),
  76. array(
  77. 'type' => 'css_editor',
  78. 'heading' => esc_html__( 'CSS box', 'js_composer' ),
  79. 'param_name' => 'css',
  80. 'group' => esc_html__( 'Design Options', 'js_composer' ),
  81. ),
  82. ),
  83. );