Skip to content
Permalink
Browse files

Merge pull request #21 from RadoslavGeorgiev/merging-pro

Merging pro
  • Loading branch information...
RadoslavGeorgiev committed Oct 21, 2018
2 parents e42aed9 + 0e346e4 commit 3154c6d51b528ca3e7f3d9cfd567259832a72e7b
Showing with 27,328 additions and 1,041 deletions.
  1. +95 −0 core/api.php
  2. +2,291 −0 core/assets/js/jquery-ui-timepicker-addon.js
  3. +79 −0 core/assets/json/dashicons.json
  4. +72 −0 core/assets/json/font-awesome.json
  5. +9 −0 core/assets/sass/field/_audio.scss
  6. +10 −0 core/assets/sass/field/_color.scss
  7. +87 −0 core/assets/sass/field/_date.scss
  8. +517 −0 core/assets/sass/field/_datepicker.scss
  9. +76 −0 core/assets/sass/field/_embed.scss
  10. +169 −0 core/assets/sass/field/_font.scss
  11. +122 −0 core/assets/sass/field/_gallery.scss
  12. +160 −0 core/assets/sass/field/_icon.scss
  13. +227 −0 core/assets/sass/field/_layout.scss
  14. +35 −0 core/assets/sass/field/_map.scss
  15. +70 −0 core/assets/sass/field/_sidebar.scss
  16. +64 −0 core/assets/sass/field/_video.scss
  17. +188 −0 core/assets/sass/location/_attachment.scss
  18. +167 −0 core/assets/sass/location/_front-end.scss
  19. +14 −0 core/assets/sass/location/_gutenberg.scss
  20. +45 −0 core/assets/sass/location/_menu-item.scss
  21. +68 −0 core/assets/sass/location/_shortcode.scss
  22. +36 −0 core/assets/sass/location/_taxonomy.scss
  23. +33 −0 core/assets/sass/location/_user.scss
  24. +20 −0 core/assets/sass/location/_widget.scss
  25. +19 −0 core/assets/sass/ultimate-fields.scss
  26. +3 −3 core/classes/Container.php
  27. +163 −0 core/classes/Container/Layout_Group.php
  28. +251 −0 core/classes/Controller/Attachment.php
  29. +264 −0 core/classes/Controller/Comment.php
  30. +566 −0 core/classes/Controller/Customizer.php
  31. +156 −0 core/classes/Controller/Gutenberg_Block.php
  32. +262 −0 core/classes/Controller/Menu_Item.php
  33. +175 −0 core/classes/Controller/Shortcode.php
  34. +412 −0 core/classes/Controller/Taxonomy.php
  35. +328 −0 core/classes/Controller/User.php
  36. +287 −0 core/classes/Controller/Widget.php
  37. +107 −32 core/classes/Core.php
  38. +32 −0 core/classes/Custom_Widget.php
  39. +2 −2 core/classes/Data_API.php
  40. +110 −0 core/classes/Datastore/Comment_Meta.php
  41. +86 −0 core/classes/Datastore/Gutenberg_Block.php
  42. +86 −0 core/classes/Datastore/Shortcode.php
  43. +175 −0 core/classes/Datastore/Term_Meta.php
  44. +161 −0 core/classes/Datastore/User_Meta.php
  45. +86 −0 core/classes/Datastore/Widget.php
  46. +150 −0 core/classes/Field/Audio.php
  47. +38 −0 core/classes/Field/Color.php
  48. +187 −0 core/classes/Field/Date.php
  49. +137 −0 core/classes/Field/DateTime.php
  50. +173 −0 core/classes/Field/Embed.php
  51. +334 −0 core/classes/Field/Font.php
  52. +98 −0 core/classes/Field/Gallery.php
  53. +301 −0 core/classes/Field/Icon.php
  54. +329 −0 core/classes/Field/Layout.php
  55. +298 −0 core/classes/Field/Map.php
  56. +194 −0 core/classes/Field/Sidebar.php
  57. +116 −0 core/classes/Field/Time.php
  58. +252 −0 core/classes/Field/Video.php
  59. +683 −0 core/classes/Form.php
  60. +214 −0 core/classes/Form_Object.php
  61. +197 −0 core/classes/Form_Object/Comment.php
  62. +74 −0 core/classes/Form_Object/Options.php
  63. +189 −0 core/classes/Form_Object/Post.php
  64. +168 −0 core/classes/Form_Object/Term.php
  65. +221 −0 core/classes/Form_Object/User.php
  66. +17 −0 core/classes/Helper/Customize_Control.php
  67. +7 −1 core/classes/Helper/Data_Source.php
  68. +8 −0 core/classes/Helper/Layout_Group_Values.php
  69. +167 −0 core/classes/Helper/Layout_Rows_Iterator.php
  70. +48 −0 core/classes/Helper/Layout_Rows_Iterator_Loop.php
  71. +32 −0 core/classes/Helper/Menu_Walker.php
  72. +496 −0 core/classes/Helper/Plugin_Updater.php
  73. +225 −0 core/classes/Helper/Sidebar_Manager.php
  74. +1 −1 core/classes/Location.php
  75. +198 −0 core/classes/Location/Attachment.php
  76. +259 −0 core/classes/Location/Comment.php
  77. +165 −0 core/classes/Location/Customizable.php
  78. +86 −0 core/classes/Location/Customizer.php
  79. +204 −0 core/classes/Location/Gutenberg_Block.php
  80. +317 −0 core/classes/Location/Menu_Item.php
  81. +11 −2 core/classes/Location/Options.php
  82. +11 −3 core/classes/Location/Post_Type.php
  83. +253 −0 core/classes/Location/Shortcode.php
  84. +454 −0 core/classes/Location/Taxonomy.php
  85. +346 −0 core/classes/Location/User.php
  86. +147 −0 core/classes/Location/Widget.php
  87. +473 −0 core/js/container/attachment.js
  88. +99 −0 core/js/container/block.js
  89. +177 −0 core/js/container/comment.js
  90. +324 −0 core/js/container/customizer.js
  91. +130 −0 core/js/container/front-end.js
  92. +111 −0 core/js/container/layout-group.js
  93. +576 −0 core/js/container/menu.js
  94. +296 −0 core/js/container/shortcode.js
  95. +256 −0 core/js/container/taxonomy.js
  96. +152 −0 core/js/container/user.js
  97. +228 −0 core/js/container/widget.js
  98. +58 −0 core/js/customizer-front-end.js
  99. +41 −0 core/js/field/audio.js
  100. +43 −0 core/js/field/color.js
  101. +77 −0 core/js/field/date.js
  102. +39 −0 core/js/field/datetime.js
  103. +201 −0 core/js/field/embed.js
  104. +598 −0 core/js/field/font.js
  105. +340 −0 core/js/field/gallery.js
  106. +421 −0 core/js/field/icon.js
  107. +340 −0 core/js/field/layout.js
  108. +197 −0 core/js/field/map.js
  109. +329 −0 core/js/field/sidebar.js
  110. +37 −0 core/js/field/time.js
  111. +403 −0 core/js/field/video.js
  112. +28 −0 core/js/front-end/map.js
  113. +1,105 −0 core/js/layout.js
  114. +100 −0 core/js/pagination.js
  115. +283 −0 core/js/shortcode.js
  116. +4 −0 core/templates/attachment-controller.php
  117. +2 −0 core/templates/attachment-expand.php
  118. +9 −0 core/templates/attachment-warning.php
  119. +7 −0 core/templates/container/attachment.php
  120. +10 −0 core/templates/container/comment.php
  121. +12 −0 core/templates/container/customizer.php
  122. +3 −0 core/templates/container/front-end.php
  123. +3 −0 core/templates/container/menu-error.php
  124. +9 −0 core/templates/container/menu.php
  125. +7 −0 core/templates/container/shortcode-editor.php
  126. +8 −0 core/templates/container/taxonomy-add.php
  127. +16 −0 core/templates/container/taxonomy-edit-boxed.php
  128. +8 −0 core/templates/container/taxonomy-edit.php
  129. +7 −0 core/templates/container/user-boxed.php
  130. +13 −0 core/templates/container/user.php
  131. +9 −0 core/templates/container/widget.php
  132. +9 −0 core/templates/field/date.php
  133. +15 −0 core/templates/field/embed.php
  134. +5 −0 core/templates/field/font-popup.php
  135. +1 −0 core/templates/field/font-preview.php
  136. +12 −0 core/templates/field/font-variants.php
  137. +14 −0 core/templates/field/font.php
  138. +22 −0 core/templates/field/gallery.php
  139. +33 −0 core/templates/field/icon-popup.php
  140. +3 −0 core/templates/field/icon-preview.php
  141. +2 −0 core/templates/field/layout/base.php
  142. +17 −0 core/templates/field/layout/element-prototype.php
  143. +27 −0 core/templates/field/layout/group.php
  144. +3 −0 core/templates/field/layout/placeholder.php
  145. +4 −0 core/templates/field/layout/row.php
  146. +10 −0 core/templates/field/map-base.php
  147. +6 −0 core/templates/field/map-error.php
  148. +29 −0 core/templates/field/sidebar-base.php
  149. +14 −0 core/templates/field/sidebar-row.php
  150. +9 −0 core/templates/field/time.php
  151. +6 −0 core/templates/field/video.php
  152. +23 −0 core/templates/form.php
  153. +16 −0 core/templates/pagination.php
  154. BIN languages/ultimate-fields-bg_BG.mo
  155. +1,232 −894 languages/ultimate-fields-bg_BG.po
  156. +0 −1 readme.md
  157. +56 −20 readme.txt
  158. +0 −13 ui/assets/sass/settings/_screen.scss
  159. +9 −1 ui/classes/Container_Settings.php
  160. +16 −1 ui/classes/Field_Editor.php
  161. +33 −0 ui/classes/Field_Helper/Audio.php
  162. +58 −0 ui/classes/Field_Helper/Color.php
  163. +58 −0 ui/classes/Field_Helper/Date.php
  164. +58 −0 ui/classes/Field_Helper/DateTime.php
  165. +33 −0 ui/classes/Field_Helper/Embed.php
  166. +71 −0 ui/classes/Field_Helper/Font.php
  167. +36 −0 ui/classes/Field_Helper/Gallery.php
  168. +82 −0 ui/classes/Field_Helper/Icon.php
  169. +238 −0 ui/classes/Field_Helper/Layout.php
  170. +55 −0 ui/classes/Field_Helper/Map.php
  171. +6 −14 ui/classes/Field_Helper/Repeater.php
  172. +2 −8 ui/classes/Field_Helper/Section.php
  173. +72 −0 ui/classes/Field_Helper/Sidebar.php
  174. +2 −8 ui/classes/Field_Helper/Tab.php
  175. +58 −0 ui/classes/Field_Helper/Time.php
  176. +41 −0 ui/classes/Field_Helper/Video.php
  177. +0 −8 ui/classes/Location.php
  178. +99 −0 ui/classes/Location/Attachment.php
  179. +116 −0 ui/classes/Location/Comment.php
  180. +97 −0 ui/classes/Location/Customizer.php
  181. +119 −0 ui/classes/Location/Menu_Item.php
  182. +122 −0 ui/classes/Location/Shortcode.php
  183. +244 −0 ui/classes/Location/Taxonomy.php
  184. +147 −0 ui/classes/Location/User.php
  185. +108 −0 ui/classes/Location/Widget.php
  186. +0 −7 ui/templates/settings/page.php
  187. +0 −21 ui/templates/settings/welcome.php
  188. +1 −1 ultimate-fields.php
@@ -235,3 +235,98 @@ function uf_shortcode( $atts, $content = null ) {
add_shortcode( 'uf', 'uf_shortcode' );
add_shortcode( 'value', 'uf_shortcode' );
/**
* Checks if there are any additional rows to iterate when using a layout field.
*
* Please use this function in conjunction with the_row(), have_groups(), the_group() and sub-value
* functions in order to have a proper loop. Example:
*
* <?php if( have_layout_rows( 'layout_blocks' ) ): ?>
* <div class="layout">
* <?php while( have_layout_rows( 'layout_blocks' ) ): the_row() ?>
* <div class="layout-row">
* <?php while( have_groups( 'layout_blocks' ) ): the_group() ?>
* <div class="layout-column layout-column-<?php the_group_width() ?>">
* <?php the_sub_value( 'title' ) ?>
* </div>
* <?php endwhile ?>
* </div>
* <?php endwhile ?>
* </div>
* <?php endif ?>
*
* @since 3.0
*
* @param string $name The name of the field whose value will be iterated.
* @param mixed $type The type of data the field is associated with.
* @return bool An indicator if there are any more rows to process.
*/
function have_layout_rows( $name, $type = null ) {
$api = Ultimate_Fields\Data_API::instance();
return $api->have_rows( $name, $type );
}
/**
* Proceeds to the next row when looping a layout field.
*
* @since 3.0
*/
function the_layout_row() {
$api = Ultimate_Fields\Data_API::instance();
return $api->the_row();
}
/**
* Returns the width of the current group when looping through layout fields.
*
* @since 3.0
*
* @return int The width of the group in columns.
*/
function get_group_width() {
$api = Ultimate_Fields\Data_API::instance();
return $api->get_group_width();
}
/**
* Displays the width of the current group when looping through layout fields.
*
* @since 3.0
*/
function the_group_width() {
$api = Ultimate_Fields\Data_API::instance();
return $api->the_group_width();
}
/**
* Initializes and prepares containers to be displayed in the front-end
* through the uf_form() function.
*
* It's paramount to use this function before calling get_header(), as
* this way the front-end forms may do any of the following:
*
* 1. Load all containers which are to be displayed.
* 2. Enqueues scripts and styles.
* 3. When a form is submitted, saves its data.
* 4. Redirects the user when submitted.
*
* ... and much more.
*
* @since 3.0
* @param mixed[] $args Arguments for displaying the containers/forms.
*/
function uf_head( $args = array() ) {
return Ultimate_Fields\Form::instance()->head( $args );
}
/**
* Displays forms in the front end when the moment is right.
*
* @see uf_head() - this function needs to be called before uf_form().
* @since 3.0
*/
function uf_form() {
return Ultimate_Fields\Form::instance()->form();
}

0 comments on commit 3154c6d

Please sign in to comment.
You can’t perform that action at this time.