Advertisement
Guest User

service-addon.php

a guest
Apr 29th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.48 KB | None | 0 0
  1. <?php
  2. vc_map(
  3.  array(
  4.     "name" => __( "Seo service box", "rrf-seo" ),
  5.     "base" => "seo_service_box",
  6.     "category" => __("SEO Shortcodes", "rrf-seo"),
  7.     "params" => array(
  8.            array(
  9.             "type" => "textfield",
  10.             "heading" => __("Title","rrf-seo"),
  11.             "param_name" => "title",
  12.             "description" => __( "", "rrf-seo"),
  13.            ),
  14.             array(
  15.             "type" => "textarea",
  16.             "heading" => __("Content","rrf-seo"),
  17.             "param_name" => "desc",
  18.             "description" => __( "", "rrf-seo"),
  19.             ),
  20.             array(
  21.             "type" => "dropdown",
  22.             "heading" => __("Link type","rrf-seo"),
  23.             "param_name" => "type",
  24.             "std" => __( "1", "rrf-seo" ),
  25.             "value" => array(
  26.             'Link to page' => 1,
  27.             'External link' => 2,
  28.             ),
  29.             "description" => __("", "rrf-seo"),
  30.             ),
  31.             array(
  32.             "type" => "dropdown",
  33.             "heading" => __("Link to page","rrf-seo"),
  34.             "param_name" => "link_to_page",
  35.             "value" => get_services_list(),
  36.             "description" => __("", "rrf-seo"),
  37.             "dependency" => array(
  38.             "element" => "type",
  39.             "value" => "1",
  40.             )
  41.             ),
  42.             array(
  43.             "type" => "textfield",
  44.             "heading" => __("External Link","rrf-seo"),
  45.             "param_name" => "external_link",
  46.             "description" => __("", "rrf-seo"),
  47.             "dependency" => array(
  48.             "element" => "type",
  49.             "value" => "2",
  50.             )
  51.             ),
  52.             array(
  53.             "type" => "textfield",
  54.             "heading" => __("Link text","rrf-seo"),
  55.             "param_name" => "link_text",
  56.             "std" => __( "See more", "rrf-seo" ),
  57.             "description" => __( "", "rrf-seo"),
  58.             ),
  59.             array(
  60.             "type" => "dropdown",
  61.             "heading" => __("Icon type","rrf-seo"),
  62.             "param_name" => "icon_type",
  63.             "std" => __( "1", "rrf-seo" ),
  64.             "value" => array(
  65.             'Upload' => 1,
  66.             'FontAwesome icon' => 2,
  67.             ),
  68.             "description" => __("", "rrf-seo"),
  69.             ),
  70.             array(
  71.             "type" => "attach_image",
  72.             "heading" => __("Upload icon","rrf-seo"),
  73.             "param_name" => "upload_icon",
  74.             "description" => __("", "rrf-seo"),
  75.             "dependency" => array(
  76.             "element" => "icon_type",
  77.             "value" => array("1"),
  78.             )
  79.             ),
  80.             array(
  81.             "type" => "iconpicker",
  82.             "heading" => __("Choose icon","rrf-seo"),
  83.             "param_name" => "choose_icon",
  84.             "description" => __("", "rrf-seo"),
  85.             "dependency" => array(
  86.             "element" => "icon_type",
  87.             "value" => "2",
  88.             )
  89.             ),
  90.             array(
  91.             "type" => "attach_image",
  92.             "heading" => __("Box background","rrf-seo"),
  93.             "param_name" => "box_background",
  94.             "description" => __("", "rrf-seo"),
  95.             ),
  96.         )
  97.      )
  98.   );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement