Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified assets/edit_post.css
100644 → 100755
Empty file.
Empty file modified assets/jcf_i18n.js
100644 → 100755
Empty file.
Empty file modified assets/styles.css
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions components/checkbox/JustField_Checkbox.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ public function form()
$description = esc_html($instance['description']);
?>
<p>
<label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title:', \JustCustomFields::TEXTDOMAIN); ?></label>
<label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" />
</p>
<p>
<label for="<?php echo $this->getFieldId('settings'); ?>"><?php _e('Settings:', \JustCustomFields::TEXTDOMAIN); ?></label>
<label for="<?php echo $this->getFieldId('settings'); ?>"><?php _e('Settings', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<textarea class="widefat" id="<?php echo $this->getFieldId('settings'); ?>" name="<?php echo $this->getFieldName('settings'); ?>" ><?php echo $settings; ?></textarea>
<br/><small><?php _e('Parameters like (you can use just "label" if "id" is the same):<br>label1|id1<br>label2|id2<br>label3', \JustCustomFields::TEXTDOMAIN); ?></small>
</p>
<p>
<label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description:', \JustCustomFields::TEXTDOMAIN); ?></label>
<label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea>
</p>
<?php
Expand Down
2 changes: 1 addition & 1 deletion components/collection/JustField_Collection.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function form()
$description = esc_html($instance['description']);
$title = esc_attr($instance['title']);
?>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title:', \JustCustomFields::TEXTDOMAIN); ?></label> <input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title', \JustCustomFields::TEXTDOMAIN); ?>:</label> <input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<?php
}

Expand Down
6 changes: 3 additions & 3 deletions components/datepicker/JustField_DatePicker.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ public function form()
$show_monthes = !empty($instance['show_monthes']) ? ' checked="checked" ' : '';
$date_format = !empty($instance['date_format']) ? esc_attr($instance['date_format']) : 'yy-mm-dd';
?>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title:', \JustCustomFields::TEXTDOMAIN); ?></label> <input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title', \JustCustomFields::TEXTDOMAIN); ?>:</label> <input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p><label for="<?php echo $this->getFieldId('show_monthes'); ?>"><input class="checkbox" id="<?php echo $this->getFieldId('show_monthes'); ?>" name="<?php echo $this->getFieldName('show_monthes'); ?>" type="checkbox" value="1" <?php echo $show_monthes; ?> /> <?php _e('Show month/year select boxes', \JustCustomFields::TEXTDOMAIN); ?></label></p>
<p><label for="<?php echo $this->getFieldId('date_format'); ?>"><?php _e('Date format:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('date_format'); ?>"><?php _e('Date format', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<input class="widefat" id="<?php echo $this->getFieldId('date_format'); ?>"
name="<?php echo $this->getFieldName('date_format'); ?>" type="text"
value="<?php echo $date_format; ?>" /><br />
<small><?php _e('Example:', \JustCustomFields::TEXTDOMAIN); ?> yy-mm-dd <a href="http://api.jqueryui.com/datepicker/#option-dateFormat" target="_blank"><?php _e('look more about date formats', \JustCustomFields::TEXTDOMAIN); ?></a></small>
<small><?php _e('Example', \JustCustomFields::TEXTDOMAIN); ?>: yy-mm-dd <a href="http://api.jqueryui.com/datepicker/#option-dateFormat" target="_blank"><?php _e('look more about date formats', \JustCustomFields::TEXTDOMAIN); ?></a></small>
</p>
<?php
}
Expand Down
4 changes: 2 additions & 2 deletions components/inputtext/JustField_InputText.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public function form()
$description = esc_html($instance['description']);
$title = esc_attr($instance['title']);
?>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title:', \JustCustomFields::TEXTDOMAIN); ?></label> <input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description:', \JustCustomFields::TEXTDOMAIN); ?></label> <textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea></p>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title', \JustCustomFields::TEXTDOMAIN); ?>:</label> <input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description', \JustCustomFields::TEXTDOMAIN); ?>:</label> <textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea></p>
<?php
}

Expand Down
8 changes: 4 additions & 4 deletions components/relatedcontent/JustField_RelatedContent.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ public function form()

$post_types = jcf_get_post_types('object');
?>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>

<p><label for="<?php echo $this->getFieldId('post_type'); ?>"><?php _e('Post type:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('post_type'); ?>"><?php _e('Post type', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<select name="<?php echo $this->getFieldName('post_type'); ?>" id="<?php echo $this->getFieldId('post_type'); ?>">
<option value="any" <?php selected('any', $instance['post_type']); ?>><?php _e('All', \JustCustomFields::TEXTDOMAIN); ?></option>
<?php foreach ( $post_types as $pt_id => $pt ) : ?>
Expand All @@ -157,14 +157,14 @@ public function form()
</select>
</p>

<p><label for="<?php echo $this->getFieldId('input_type'); ?>"><?php _e('Input type:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('input_type'); ?>"><?php _e('Input type', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<select name="<?php echo $this->getFieldName('input_type'); ?>" id="<?php echo $this->getFieldId('input_type'); ?>">
<option value="autocomplete" <?php selected('autocomplete', $instance['input_type']); ?>><?php _e('Autocomplete', \JustCustomFields::TEXTDOMAIN); ?></option>
<option value="select" <?php selected('select', $instance['input_type']); ?>><?php _e('Dropdown list', \JustCustomFields::TEXTDOMAIN); ?></option>
</select>
</p>

<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="2" class="widefat"><?php echo $description; ?></textarea></p>
<?php
}
Expand Down
8 changes: 4 additions & 4 deletions components/select/JustField_Select.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ public function form()
$description = esc_html($instance['description']);
$empty_option = esc_attr($instance['empty_option']);
?>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title:', \JustCustomFields::TEXTDOMAIN); ?></label> <input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p><label for="<?php echo $this->getFieldId('options'); ?>"><?php _e('Options:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title', \JustCustomFields::TEXTDOMAIN); ?>:</label> <input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p><label for="<?php echo $this->getFieldId('options'); ?>"><?php _e('Options', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<textarea class="widefat" id="<?php echo $this->getFieldId('options'); ?>" name="<?php echo $this->getFieldName('options'); ?>" ><?php echo $options; ?></textarea>
<br/><small><?php _e('Parameters like (you can use just "label" if "id" is the same):<br>label1|id1<br>label2|id2<br>label3', \JustCustomFields::TEXTDOMAIN); ?></small></p>
<p><label for="<?php echo $this->getFieldId('empty_option'); ?>"><?php _e('Empty option:', \JustCustomFields::TEXTDOMAIN); ?></label><input class="widefat" id="<?php echo $this->getFieldId('empty_option'); ?>" name="<?php echo $this->getFieldName('empty_option'); ?>" placeholder="ex. Choose item from the list"" type="text" value="<?php echo $empty_option; ?>" />
<p><label for="<?php echo $this->getFieldId('empty_option'); ?>"><?php _e('Empty option', \JustCustomFields::TEXTDOMAIN); ?>:</label><input class="widefat" id="<?php echo $this->getFieldId('empty_option'); ?>" name="<?php echo $this->getFieldName('empty_option'); ?>" placeholder="ex. Choose item from the list"" type="text" value="<?php echo $empty_option; ?>" />
<br/><small><?php _e('Leave blank to disable empty option', \JustCustomFields::TEXTDOMAIN); ?></small></p>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description:', \JustCustomFields::TEXTDOMAIN); ?></label> <textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea></p>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description', \JustCustomFields::TEXTDOMAIN); ?>:</label> <textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea></p>
<?php
}

Expand Down
6 changes: 3 additions & 3 deletions components/selectmultiple/JustField_SelectMultiple.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ public function form()
$options = esc_attr($instance['options']);
$description = esc_html($instance['description']);
?>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title:', \JustCustomFields::TEXTDOMAIN); ?></label> <input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title', \JustCustomFields::TEXTDOMAIN); ?>:</label> <input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>

<p><label for="<?php echo $this->getFieldId('options'); ?>"><?php _e('Settings:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('options'); ?>"><?php _e('Settings', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<textarea class="widefat" id="<?php echo $this->getFieldId('options'); ?>" name="<?php echo $this->getFieldName('options'); ?>" ><?php echo $options; ?></textarea>
<br/><small><?php _e('Parameters like (you can use just "label" if "id" is the same):<br>label1|id1<br>label2|id2<br>label3', \JustCustomFields::TEXTDOMAIN); ?></small></p>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description:', \JustCustomFields::TEXTDOMAIN); ?></label> <textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea></p>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description', \JustCustomFields::TEXTDOMAIN); ?>:</label> <textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea></p>
<?php
}

Expand Down
6 changes: 3 additions & 3 deletions components/selectmultiple/views/form.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
$settings = esc_attr($instance['settings']);
$description = esc_html($instance['description']);
?>
<p><label for="<?php echo $field_obj->getFieldId('title'); ?>"><?php _e('Title:', \JustCustomFields::TEXTDOMAIN); ?></label> <input class="widefat" id="<?php echo $field_obj->getFieldId('title'); ?>" name="<?php echo $field_obj->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p><label for="<?php echo $field_obj->getFieldId('title'); ?>"><?php _e('Title', \JustCustomFields::TEXTDOMAIN); ?>:</label> <input class="widefat" id="<?php echo $field_obj->getFieldId('title'); ?>" name="<?php echo $field_obj->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>

<p><label for="<?php echo $field_obj->getFieldId('settings'); ?>"><?php _e('Settings:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $field_obj->getFieldId('settings'); ?>"><?php _e('Settings', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<textarea class="widefat" id="<?php echo $field_obj->getFieldId('settings'); ?>" name="<?php echo $field_obj->getFieldName('settings'); ?>" ><?php echo $settings; ?></textarea>
<br/><small><?php _e('Parameters like (you can use just "label" if "id" is the same):<br>label1|id1<br>label2|id2<br>label3', \JustCustomFields::TEXTDOMAIN); ?></small></p>
<p><label for="<?php echo $field_obj->getFieldId('description'); ?>"><?php _e('Description:', \JustCustomFields::TEXTDOMAIN); ?></label> <textarea name="<?php echo $field_obj->getFieldName('description'); ?>" id="<?php echo $field_obj->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea></p>
<p><label for="<?php echo $field_obj->getFieldId('description'); ?>"><?php _e('Description', \JustCustomFields::TEXTDOMAIN); ?>:</label> <textarea name="<?php echo $field_obj->getFieldName('description'); ?>" id="<?php echo $field_obj->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea></p>
6 changes: 3 additions & 3 deletions components/simplemedia/JustField_SimpleMedia.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ public function form()
$type = $instance['type'];
$description = esc_html($instance['description']);
?>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p>
<label for="<?php echo $this->getFieldId('type'); ?>"><?php _e('Type of files:', \JustCustomFields::TEXTDOMAIN); ?></label>
<label for="<?php echo $this->getFieldId('type'); ?>"><?php _e('Type of files', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<select class="widefat" id="<?php echo $this->getFieldId('type'); ?>" name="<?php echo $this->getFieldName('type'); ?>">
<option value="file" <?php selected('file', $type); ?>><?php _e('All', \JustCustomFields::TEXTDOMAIN); ?></option>
<option value="image" <?php selected('image', $type); ?>><?php _e('Only Images', \JustCustomFields::TEXTDOMAIN); ?></option>
</select>
</p>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description:', \JustCustomFields::TEXTDOMAIN); ?></label> <textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea></p>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description', \JustCustomFields::TEXTDOMAIN); ?>:</label> <textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="4" class="widefat"><?php echo $description; ?></textarea></p>
<?php
}

Expand Down
6 changes: 3 additions & 3 deletions components/table/JustField_Table.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ public function form()
$columns = esc_html($instance['columns']);
$description = esc_html($instance['description']);
?>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('title'); ?>"><?php _e('Title', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<input class="widefat" id="<?php echo $this->getFieldId('title'); ?>" name="<?php echo $this->getFieldName('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
<p><label for="<?php echo $this->getFieldId('fields'); ?>"><?php _e('Columns:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('fields'); ?>"><?php _e('Columns', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<textarea name="<?php echo $this->getFieldName('columns'); ?>" id="<?php echo $this->getFieldId('columns'); ?>" cols="20" rows="4" class="widefat"><?php echo $columns; ?></textarea>
<br/><small><?php _e('Format: %colname|%coltitle<br/><i>Example: username|User name', \JustCustomFields::TEXTDOMAIN); ?></i></small></p>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description:', \JustCustomFields::TEXTDOMAIN); ?></label>
<p><label for="<?php echo $this->getFieldId('description'); ?>"><?php _e('Description', \JustCustomFields::TEXTDOMAIN); ?>:</label>
<textarea name="<?php echo $this->getFieldName('description'); ?>" id="<?php echo $this->getFieldId('description'); ?>" cols="20" rows="2" class="widefat"><?php echo $description; ?></textarea></p>
<?php
}
Expand Down
Loading