Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image type #26

Merged
merged 7 commits into from Feb 24, 2016
Merged

Add image type #26

merged 7 commits into from Feb 24, 2016

Conversation

micgro42
Copy link
Contributor

ToDo:

  • Validation?
  • Tests with external Images
  • Gallery Plugin Integration / Lightbox Class
  • Width / Height? Currently automatically detected
  • Multieditor

This pull request is requires the changes of dokuwiki/dokuwiki#1479. It also makes use of the changes of dokuwiki/dokuwiki#1472.

When merged, this pull request closes #13.

@micgro42
Copy link
Contributor Author

Gallery / Lightbox:

  • Klasse,
  • Direct Link?
  • Data-attribut zum zusammenfassen

* @return bool true if $mode could be satisfied
*/
public function renderValue($value, \Doku_Renderer $R, $mode) {
if (!empty($value)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we do not render empty values? We should set up some rules on what types do not need to check themselves (like validate() is never called for blank fields).

if ($mode == 'xhtml') {
$renderer->doc .= '<div class="table structaggegation">';
$renderer->doc .= "<div class=\"table structaggregation hash:$hash\">";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this is a valid class name. Why not data-hash=$hash?

micgro42 and others added 4 commits February 23, 2016 17:12
* master:
  use different branch now that the event has been merged
  default to translated column labels in table aggregation
  Show struct differences in diff view. SPR-31 closes #4
  remove empty values withing multivals
  fix entry tests
  edit form styling SPR-320
  added JavaScript for adding new inputs to multi edit fields
* renamed from Img to Image
* added height and width configuration
* fixed the handling for multi edit fields
splitbrain added a commit that referenced this pull request Feb 24, 2016
@splitbrain splitbrain merged commit 7d02aed into master Feb 24, 2016
@splitbrain splitbrain deleted the imgType branch February 24, 2016 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement type img
2 participants