WordPress.org

Plugin Directory

Changeset 1052943


Ignore:
Timestamp:
12/23/14 21:57:49 (3 years ago)
Author:
Anton Korotkoff
Message:

1.0.5 release

Location:
complex-meta-fields
Files:
56 added
12 edited

Legend:

Unmodified
Added
Removed
  • complex-meta-fields/trunk/assets/css/complex_meta_fields.min.css

    r1048616 r1052943  
    1 /*! Complex Meta Fields - v1.0.4 
     1/*! Complex Meta Fields - v1.0.5 
    22 * http://eney-solutions.com.ua/complex-meta-fields 
    33 * Copyright (c) 2014; * Licensed GPLv2+ */ 
  • complex-meta-fields/trunk/assets/js/complex_meta_fields.js

    r1048616 r1052943  
    1 /*! Complex Meta Fields - v1.0.4 
     1/*! Complex Meta Fields - v1.0.5 
    22 * http://eney-solutions.com.ua/complex-meta-fields 
    33 * Copyright (c) 2014; * Licensed GPLv2+ */ 
  • complex-meta-fields/trunk/assets/js/complex_meta_fields.min.js

    r1048616 r1052943  
    1 /*! Complex Meta Fields - v1.0.4 
     1/*! Complex Meta Fields - v1.0.5 
    22 * http://eney-solutions.com.ua/complex-meta-fields 
    33 * Copyright (c) 2014; * Licensed GPLv2+ */ 
  • complex-meta-fields/trunk/complex_meta_fields.php

    r1048616 r1052943  
    55 * Plugin URI:  http://eney-solutions.com.ua/complex-meta-fields 
    66 * Description: Manage complex meta data for any post type. 
    7  * Version:     1.0.4 
     7 * Version:     1.0.5 
    88 * Author:      Anton Korotkov 
    99 * Author URI:  http://eney-solutions.com.ua 
     
    3434 * Constants 
    3535 */ 
    36 define('WP_CMF_VERSION', '1.0.4'); 
     36define('WP_CMF_VERSION', '1.0.5'); 
    3737define('WP_CMF_DOMAIN', 'wp_cmf'); 
    3838define('WP_CMF_URL', plugin_dir_url(__FILE__)); 
     
    6868 */ 
    6969function wp_cmf_init() { 
    70   $locale = apply_filters('plugin_locale', get_locale(), 'wp_cmf'); 
     70  $locale = apply_filters(WP_CMF_DOMAIN . '_plugin_locale', get_locale(), 'wp_cmf'); 
    7171  load_textdomain('wp_cmf', WP_LANG_DIR . '/wp_cmf/wp_cmf-' . $locale . '.mo'); 
    7272  load_plugin_textdomain('wp_cmf', false, dirname(plugin_basename(__FILE__)) . '/languages/'); 
  • complex-meta-fields/trunk/includes/class-cmf-ajax.php

    r1048616 r1052943  
    3232     */ 
    3333    public function ajax_get_fieldsets() { 
    34       $_ = get_option( WP_CMF_OPTION ); 
     34      $_ = apply_filters( WP_CMF_DOMAIN . '_ajax_get_fieldsets', get_option( WP_CMF_OPTION ) ); 
    3535      die( json_encode( !empty( $_ ) ? $_ : array() ) ); 
    3636    } 
     
    4545      } 
    4646       
    47       wp_send_json_success( wp_get_attachment_thumb_url( $_GET['id'] ) ); 
     47      wp_send_json_success( apply_filters( WP_CMF_DOMAIN . '_ajax_get_attachment_thumbnail', wp_get_attachment_thumb_url( $_GET['id'] ) ) ); 
    4848    } 
    4949  } 
  • complex-meta-fields/trunk/includes/class-cmf-metabox.php

    r1039814 r1052943  
    3131       
    3232      //** Get current fieldsets */ 
    33       $_ = get_option( WP_CMF_OPTION ); 
     33      $_ =  apply_filters( WP_CMF_DOMAIN . '_metabox_get_fieldsets', get_option( WP_CMF_OPTION ) ); 
    3434      $fieldSets = !empty( $_ ) ? $_ : array(); 
    3535       
     
    113113        } 
    114114      } 
     115       
     116      do_action( WP_CMF_DOMAIN . '_after_save_post', $post_id ); 
    115117    } 
    116118 
  • complex-meta-fields/trunk/includes/templates/manage-page.php

    r1048616 r1052943  
    1818   
    1919  <form action="" method="POST"> 
     20     
     21    <?php do_action( WP_CMF_DOMAIN . '_settings_form_start' ); ?> 
    2022 
    2123    <!-- ng app --> 
     
    237239            <p><?php _e( 'Hi there! This section allows you to manage your FieldSets and Fields for different Post Types.', WP_CMF_DOMAIN ) ?></p> 
    238240             
     241            <?php do_action( WP_CMF_DOMAIN . '_help_before_menu' ); ?> 
     242             
    239243            <ul> 
    240244              <li><a ng-class="{active: sections.why_this_plugin}" ng-click="toggleSection('why_this_plugin')" href="javascript:void(0);"><?php _e( 'Why this plugin?', WP_CMF_DOMAIN ); ?></a></li> 
     
    245249              <li><a target="_blank" href="https://wordpress.org/support/plugin/complex-meta-fields"><?php _e( 'Support', WP_CMF_DOMAIN ); ?></a></li> 
    246250              <li><a target="_blank" href="http://eney-solutions.com.ua/complex-meta-fields"><?php _e( 'More about plugin', WP_CMF_DOMAIN ); ?></a></li> 
     251               
     252              <?php do_action( WP_CMF_DOMAIN . '_help_menu' ); ?> 
     253               
    247254            </ul> 
     255             
     256            <?php do_action( WP_CMF_DOMAIN . '_help_after_menu' ); ?> 
    248257             
    249258            <section ng-show="sections.why_this_plugin"> 
     
    297306              </ul> 
    298307               
     308              <p><a target="_blank" href="http://eney-solutions.com.ua/complex-meta-fields#functions"><?php _e( 'More Function...', WP_CMF_DOMAIN ); ?></a></p> 
     309               
    299310              <p><?php _e( 'If you need more custom things done with FieldSets then you always can use function <code>get_post_meta($post_id, $fieldset_slug)</code> to get FieldSets in any places of your code.', WP_CMF_DOMAIN ); ?></p> 
    300311               
     
    304315               
    305316            </section> 
     317             
     318            <?php do_action( WP_CMF_DOMAIN . '_help_after_sections' ); ?> 
    306319             
    307320          </td> 
     
    310323 
    311324    </section> 
     325     
     326    <?php do_action( WP_CMF_DOMAIN . '_settings_form_end' ); ?> 
     327     
    312328  </form> 
    313329  <img src="http://eney-solutions.com.ua?ping=cmf" /> 
  • complex-meta-fields/trunk/includes/templates/metabox.php

    r1039814 r1052943  
    1010?> 
    1111 
     12<?php do_action( WP_CMF_DOMAIN . '_metabox_before_content', $__, $_ ); ?> 
     13 
    1214<div class="metabox" ng-controller="cmfMetaBox"> 
     15   
    1316  <ul ng-init='initialize(<?php echo json_encode( !empty( $_ ) ? $_ : array() ) ?>, <?php echo json_encode( !empty( $__ ) ? $__ : array() ) ?>)'> 
    1417     
     
    3841</div> 
    3942 
     43<?php do_action( WP_CMF_DOMAIN . '_metabox_after_content', $__ ); 
  • complex-meta-fields/trunk/languages/wp_cmf-ru_RU.po

    r1048616 r1052943  
    22msgstr "" 
    33"Project-Id-Version: Complex Meta Fields\n" 
    4 "POT-Creation-Date: 2014-12-18 23:57+0200\n" 
    5 "PO-Revision-Date: 2014-12-18 23:57+0200\n" 
     4"POT-Creation-Date: 2014-12-23 23:20+0200\n" 
     5"PO-Revision-Date: 2014-12-23 23:21+0200\n" 
    66"Last-Translator: Anton Korotkoff <anton@eney-solutions.com.ua>\n" 
    77"Language-Team: ENEY Solutions <anton@eney-solutions.com.ua>\n" 
     
    6060msgstr "Конструктор Полей" 
    6161 
    62 #: includes/templates/manage-page.php:32 
     62#: includes/templates/manage-page.php:34 
    6363msgid "Workspace" 
    6464msgstr "Рабочая область" 
    6565 
    66 #: includes/templates/manage-page.php:38 
     66#: includes/templates/manage-page.php:40 
    6767msgid "There are no FieldSets found yet." 
    6868msgstr "Наборов полей еще нет." 
    6969 
    70 #: includes/templates/manage-page.php:39 
     70#: includes/templates/manage-page.php:41 
    7171msgid "Add one!" 
    7272msgstr "Добавить!" 
    7373 
    74 #: includes/templates/manage-page.php:43 
     74#: includes/templates/manage-page.php:45 
    7575msgid "Loading..." 
    7676msgstr "Загрузка..." 
    7777 
    78 #: includes/templates/manage-page.php:53 includes/templates/metabox.php:26 
     78#: includes/templates/manage-page.php:55 includes/templates/metabox.php:29 
    7979msgid "Delete" 
    8080msgstr "Удалить" 
    8181 
    82 #: includes/templates/manage-page.php:71 
     82#: includes/templates/manage-page.php:73 
    8383msgid "FieldSet Name" 
    8484msgstr "Имя набора" 
    8585 
    86 #: includes/templates/manage-page.php:79 
     86#: includes/templates/manage-page.php:81 
    8787msgid "Slug" 
    8888msgstr "Слаг" 
    8989 
    90 #: includes/templates/manage-page.php:89 
     90#: includes/templates/manage-page.php:91 
    9191msgid "Use for" 
    9292msgstr "Для" 
    9393 
    94 #: includes/templates/manage-page.php:100 
     94#: includes/templates/manage-page.php:102 
    9595msgid "Add Field" 
    9696msgstr "Добавить поле" 
    9797 
    98 #: includes/templates/manage-page.php:116 
     98#: includes/templates/manage-page.php:118 
    9999msgid "Field Name" 
    100100msgstr "Имя поля" 
    101101 
    102 #: includes/templates/manage-page.php:126 
     102#: includes/templates/manage-page.php:128 
    103103msgid "Field Input" 
    104104msgstr "Тип поля" 
    105105 
    106 #: includes/templates/manage-page.php:130 
     106#: includes/templates/manage-page.php:132 
    107107msgid "Common" 
    108108msgstr "Стандартные" 
    109109 
    110 #: includes/templates/manage-page.php:132 
     110#: includes/templates/manage-page.php:134 
    111111msgid "Text Line" 
    112112msgstr "Текстовое поле" 
    113113 
    114 #: includes/templates/manage-page.php:133 
     114#: includes/templates/manage-page.php:135 
    115115msgid "Text Area" 
    116116msgstr "Текстовая область" 
    117117 
    118 #: includes/templates/manage-page.php:134 
     118#: includes/templates/manage-page.php:136 
    119119msgid "Check Box" 
    120120msgstr "Множественный выбор" 
    121121 
    122 #: includes/templates/manage-page.php:135 
     122#: includes/templates/manage-page.php:137 
    123123msgid "Radio" 
    124124msgstr "Исключающий выбор" 
    125125 
    126 #: includes/templates/manage-page.php:136 
     126#: includes/templates/manage-page.php:138 
    127127msgid "Dropdown" 
    128128msgstr "Выпадающий список" 
    129129 
    130 #: includes/templates/manage-page.php:140 
     130#: includes/templates/manage-page.php:142 
    131131msgid "HTML5" 
    132132msgstr "HTML5" 
    133133 
    134 #: includes/templates/manage-page.php:142 
     134#: includes/templates/manage-page.php:144 
    135135msgid "Date" 
    136136msgstr "Дата" 
    137137 
    138 #: includes/templates/manage-page.php:143 
     138#: includes/templates/manage-page.php:145 
    139139msgid "Email" 
    140140msgstr "Электронная почта" 
    141141 
    142 #: includes/templates/manage-page.php:144 
     142#: includes/templates/manage-page.php:146 
    143143msgid "Number" 
    144144msgstr "Число" 
    145145 
    146 #: includes/templates/manage-page.php:145 
     146#: includes/templates/manage-page.php:147 
    147147msgid "URL" 
    148148msgstr "Адрес сайта" 
    149149 
    150 #: includes/templates/manage-page.php:149 
     150#: includes/templates/manage-page.php:151 
    151151msgid "Advanced" 
    152152msgstr "Сложные" 
    153153 
    154 #: includes/templates/manage-page.php:151 
     154#: includes/templates/manage-page.php:153 
    155155msgid "Editor" 
    156156msgstr "Редактор" 
    157157 
    158 #: includes/templates/manage-page.php:152 
     158#: includes/templates/manage-page.php:154 
    159159msgid "Image" 
    160160msgstr "Изображение" 
    161161 
    162 #: includes/templates/manage-page.php:173 
     162#: includes/templates/manage-page.php:175 
    163163msgid "Options" 
    164164msgstr "Варианты" 
    165165 
    166 #: includes/templates/manage-page.php:201 
     166#: includes/templates/manage-page.php:203 
    167167msgid "Add Option" 
    168168msgstr "Добавить" 
    169169 
    170 #: includes/templates/manage-page.php:220 
     170#: includes/templates/manage-page.php:222 
    171171msgid "New FieldSet" 
    172172msgstr "Новый набор" 
    173173 
    174 #: includes/templates/manage-page.php:222 
     174#: includes/templates/manage-page.php:224 
    175175msgid "Save All" 
    176176msgstr "Сохранить все" 
    177177 
    178 #: includes/templates/manage-page.php:235 
     178#: includes/templates/manage-page.php:237 
    179179msgid "Help" 
    180180msgstr "Помощь" 
    181181 
    182 #: includes/templates/manage-page.php:237 
     182#: includes/templates/manage-page.php:239 
    183183msgid "" 
    184184"Hi there! This section allows you to manage your FieldSets and Fields for " 
     
    188188"записей." 
    189189 
    190 #: includes/templates/manage-page.php:240 
    191 #: includes/templates/manage-page.php:250 
     190#: includes/templates/manage-page.php:244 
     191#: includes/templates/manage-page.php:259 
    192192msgid "Why this plugin?" 
    193193msgstr "Почему этот плагин?" 
    194194 
    195 #: includes/templates/manage-page.php:241 
    196 #: includes/templates/manage-page.php:258 
     195#: includes/templates/manage-page.php:245 
     196#: includes/templates/manage-page.php:267 
    197197msgid "What is FieldSet?" 
    198198msgstr "Что такое Набор полей?" 
    199199 
    200 #: includes/templates/manage-page.php:242 
    201 #: includes/templates/manage-page.php:264 
     200#: includes/templates/manage-page.php:246 
     201#: includes/templates/manage-page.php:273 
    202202msgid "What is Field?" 
    203203msgstr "Что такое поле?" 
    204204 
    205 #: includes/templates/manage-page.php:243 
    206 #: includes/templates/manage-page.php:269 
     205#: includes/templates/manage-page.php:247 
     206#: includes/templates/manage-page.php:278 
    207207msgid "What is Post Type?" 
    208208msgstr "Что такое Тип записи" 
    209209 
    210 #: includes/templates/manage-page.php:244 
    211 #: includes/templates/manage-page.php:274 includes/templates/root-page.php:48 
     210#: includes/templates/manage-page.php:248 
     211#: includes/templates/manage-page.php:283 includes/templates/root-page.php:48 
    212212msgid "Front-end API" 
    213213msgstr "Фронтенд API" 
    214214 
    215 #: includes/templates/manage-page.php:245 
     215#: includes/templates/manage-page.php:249 
    216216msgid "Support" 
    217217msgstr "Поддержка" 
    218218 
    219 #: includes/templates/manage-page.php:246 
     219#: includes/templates/manage-page.php:250 
    220220msgid "More about plugin" 
    221221msgstr "Больше о плагине" 
    222222 
    223 #: includes/templates/manage-page.php:251 
     223#: includes/templates/manage-page.php:260 
    224224msgid "" 
    225225"You may notice there are a lot of plugins that do almost the same things as " 
     
    229229"Но всегда есть небольшие отличия." 
    230230 
    231 #: includes/templates/manage-page.php:252 
     231#: includes/templates/manage-page.php:261 
    232232msgid "" 
    233233"In current case plugin allows to add REPEATABLE field sets for any Post " 
     
    239239"одинаковых наборов полей в запись или страницу во время редактирования." 
    240240 
    241 #: includes/templates/manage-page.php:253 
     241#: includes/templates/manage-page.php:262 
    242242msgid "Then you can output them in a post loop using built-in API." 
    243243msgstr "После этого вы сможете выводить их цикле постов, используя API." 
    244244 
    245 #: includes/templates/manage-page.php:254 
     245#: includes/templates/manage-page.php:263 
    246246msgid "Moreover, it is light, simple and useful in the same time." 
    247247msgstr "Более того, плагин легкий, простой и полезный в то же время." 
    248248 
    249 #: includes/templates/manage-page.php:259 
     249#: includes/templates/manage-page.php:268 
    250250msgid "" 
    251251"FieldSet is simply a set of fields that you are going to use while editing " 
     
    258258"несколько объектов в запись или страницу." 
    259259 
    260 #: includes/templates/manage-page.php:260 
     260#: includes/templates/manage-page.php:269 
    261261msgid "" 
    262262"When creating new FieldSet you will need to provide Name and select a post " 
     
    270270"автоматически. См. <b>Фронтенд API</b>." 
    271271 
    272 #: includes/templates/manage-page.php:265 
     272#: includes/templates/manage-page.php:274 
    273273msgid "" 
    274274"There is nothing special about Fields. It is simply html inputs of different " 
     
    280280"Скоро будет больше!" 
    281281 
    282 #: includes/templates/manage-page.php:270 
     282#: includes/templates/manage-page.php:279 
    283283msgid "" 
    284284"This question is not related to the plugin and Post Types are completely " 
     
    288288"предоставлена тут:" 
    289289 
    290 #: includes/templates/manage-page.php:275 
     290#: includes/templates/manage-page.php:284 
    291291msgid "" 
    292292"Plugin has simple API for front-end that helps to work with FieldSets and " 
     
    296296"для отображения." 
    297297 
    298 #: includes/templates/manage-page.php:276 
     298#: includes/templates/manage-page.php:285 
    299299msgid "It works the way similar to standard post loop." 
    300300msgstr "Принцип работы похож на стандартный Post Loop." 
    301301 
    302 #: includes/templates/manage-page.php:277 
     302#: includes/templates/manage-page.php:286 
    303303msgid "<b>API Functions</b>" 
    304304msgstr "<b>API Функции</b>" 
    305305 
    306 #: includes/templates/manage-page.php:282 
     306#: includes/templates/manage-page.php:291 
    307307msgid "" 
    308308"An alias of <code>have_posts()</code> function. Need to use inside " 
     
    316316"который вы можете найти при создании нового Набора полей." 
    317317 
    318 #: includes/templates/manage-page.php:286 
     318#: includes/templates/manage-page.php:295 
    319319msgid "" 
    320320"An alias of <code>the_post()</code> function. Need to use inside " 
     
    327327"найти при создании нового Набора полей." 
    328328 
    329 #: includes/templates/manage-page.php:290 
     329#: includes/templates/manage-page.php:299 
    330330msgid "" 
    331331"Function that actually prints field's value. Accepts one agrument that is " 
     
    336336"Поля, который вы можете найти при создании нового Поля в одном из Наборов." 
    337337 
    338 #: includes/templates/manage-page.php:291 
     338#: includes/templates/manage-page.php:300 
    339339msgid "Notice!" 
    340340msgstr "Важно!" 
    341341 
    342 #: includes/templates/manage-page.php:291 
     342#: includes/templates/manage-page.php:300 
    343343msgid "" 
    344344"The value for field of type checkbox will be Array, so there is no need to " 
     
    350350"<code>cmf_get_field( $field_slug )</code>." 
    351351 
    352 #: includes/templates/manage-page.php:295 
     352#: includes/templates/manage-page.php:304 
    353353msgid "" 
    354354"Function does the same as function above but returns value instead of " 
     
    362362"Поля, который вы можете найти при создании нового Поля в одном из Наборов." 
    363363 
    364 #: includes/templates/manage-page.php:299 
     364#: includes/templates/manage-page.php:308 
     365msgid "More Function..." 
     366msgstr "Больше функций..." 
     367 
     368#: includes/templates/manage-page.php:310 
    365369msgid "" 
    366370"If you need more custom things done with FieldSets then you always can use " 
     
    372376"$fieldset_slug)</code> в любом месте вашего кода." 
    373377 
    374 #: includes/templates/manage-page.php:301 
     378#: includes/templates/manage-page.php:312 
    375379msgid "<b>Very important!</b>" 
    376380msgstr "<b>Очень важно!</b>" 
    377381 
    378 #: includes/templates/manage-page.php:303 
     382#: includes/templates/manage-page.php:314 
    379383msgid "" 
    380384"Always do <code>cmf_the_meta( $fieldset_slug )</code> inside cmf_have_meta " 
     
    384388"cmf_have_meta чтобы предотвратить бесконечный цикл на странице записи." 
    385389 
    386 #: includes/templates/metabox.php:34 
     390#: includes/templates/metabox.php:37 
    387391msgid "Add New" 
    388392msgstr "Добавить" 
  • complex-meta-fields/trunk/package.json

    r1048616 r1052943  
    33  "title": "Complex Meta Fields", 
    44  "description": "Manage complex meta data for any post type.", 
    5   "version": "1.0.4", 
     5  "version": "1.0.5", 
    66  "homepage": "http://eney-solutions.com.ua/complex-meta-fields", 
    77  "author": { 
  • complex-meta-fields/trunk/readme.txt

    r1048616 r1052943  
    55Requires at least: 3.6 
    66Tested up to:      4.1 
    7 Stable tag:        1.0.4 
     7Stable tag:        1.0.5 
    88License:           GPLv2 or later 
    99License URI:       http://www.gnu.org/licenses/gpl-2.0.html 
     
    6464== Changelog == 
    6565 
     66= 1.0.5 = 
     67* Hooks added 
     68* Localization updates 
     69 
    6670= 1.0.4 = 
    6771* Added new field type Image 
Note: See TracChangeset for help on using the changeset viewer.