Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

PowerCMS X

1.595 visualizaciones

Publicado el

2017年12月1日開催の PowerCMS Conference2017のSession4

Publicado en: Tecnología
  • Sé el primero en comentar

  • Sé el primero en recomendar esto

PowerCMS X

  1. 1. PowerCMS Project
  2. 2. NY1900.jpg public domain, https://www.archives.gov/exhibits/picturing_the_century/newcent/newcent_img1.html
  3. 3. (public domain, https://commons.wikimedia.org/wiki/File:Ave_5_NY_2_fl.bus.jpg
  4. 4. ✴ ✴ ✴ ✴ ✴ ✴
  5. 5. : http://outwithit.jp/blog/movabletype_advent_2014
  6. 6. ✴ ✴ ✴ ✴ ✴
  7. 7. ✴ ✴ ✴ ✴ ✴ ✴
  8. 8. $PADO->create_table(‘meta’, ‘mt_meta’, ‘meta_’, $json);
  9. 9. <?php $objects = $db->model( 'entry' )->load(); foreach ( $objects as $obj ) { echo $obj->title, '<br />'; } $entry = $db->model( 'entry' )->new(); $entry->title( 'PHP Alternative Database Object' ); $entry->date( date( 'YmdHis' ) ); $entry->save();
  10. 10. <?php $terms = ['title' => 'foo']; $args = ['sort' => 'id', 'direction' => 'ascend', 'limit' => 10]; $objects = $db->model( 'entry' )->load( $terms, $args, 'id,title' ); // SELECT entry_id,entry_title from mt_entry... $changed_objs = []; foreach ( $objects as $obj ) { $obj->title( 'bar' ); $changed_objs[] = $obj; } $db->begin_work(); if ( $db->model( 'entry' )->update_multi( $changed_objs ) ) { $db->commit(); } else { $db->rollback(); }
  11. 11. ✴ ✴ ✴ ✴ ✴ ✴
  12. 12. <pt:include file="includes/header.tpl"> <h1><pt:trans phrase="Welcome to %s!" params="PAML"></h1> <pt:if test="( $foo === 'foo' )"> <p>TEST OK!</p> </pt:if> <p><pt:date format="Y-m-d H:m:s T"></p> <p><pt:var name="foo">, <pt:var name="bar">, <pt:var name="baz p> <pt:foreach from="loop_vars1"> <pt:if name="__first__"> <ul> </pt:if> <li class="<pt:if name="__odd__">odd<pt:else>even</pt:if>" <pt:var name="__value__" escape="1"> </li> <pt:if name="__last__"> </ul> </pt:if> </pt:foreach>
  13. 13. <mt:include file="includes/header.tpl"> <h1><mt:trans phrase="Welcome to %s!" params="PAML"></h1> <mt:if test="($foo==='foo'&&$bar==='bar')"> <p>TEST OK!</p> </mt:if> <p><mt:date format="Y-m-d H:m:s T"></p> <p><mt:var name="foo">, <mt:var name="bar">, <mt:var name="baz p> <mt:loop name="loop_vars1"> <mt:if name="__first__"> <ul> </mt:if> <li class="<mt:if name="__odd__">odd<mt:else>even</mt:if>" <mt:var name="__value__" escape="1"> </li> <mt:if name="__last__"> </ul> </mt:if> </mt:loop>
  14. 14. {include file="includes/header.tpl"} <h1>{trans phrase="Welcome to %s!" params="PAML"}</h1> {if test="($foo==='foo'&&$bar==='bar')"} <p>TEST OK!</p> {/if} <p>{date format="Y-m-d H:m:s T"}</p> <p>{$foo}, {$bar}, {$baz}</p> {foreach from="$loop_vars1"} {if name="__first__"} <ul> {/if} <li class="{if name="__odd__"}odd{else}even{/if}"> {$__value__ escape="1"} </li> {if name="__last__"} </ul> {/if} {/foreach}
  15. 15. {% include file="includes/header.tpl" %} <h1>{{ trans phrase="Welcome to %s!" params="PAML" }}</h1> <p>{{ date format="Y-m-d H:m:s T" }}</p> {% if test="($foo==='foo'&&$bar==='bar')" %} <p>TEST OK!</p> {% endif %} <p>{{ foo }}, {{ bar }}, {{ baz }}</p> {% foreach from="$loop_vars1" %} {% if name="__first__" %} <ul> {% endif %} <li class="{% if name="__odd__" %}odd{% else %}even{% endi %}"> {{ __value__ escape="1" }} </li> {% if name="__last__" %} </ul> {% endif %} {% endforeach %}
  16. 16. PowerCMS X
  17. 17. ✴ ✴ ✴ ✴ ✴ ✴ ✴
  18. 18. ✴ ✴
  19. 19. ✴ ✴ ✴ ✴ ✴ ✴ ✴
  20. 20. ✴ ✴ ✴ ✴ ✴
  21. 21. ✴ ✴ ✴ ✴ ✴ ✴
  22. 22. ✴ ✴ ✴ ✴ ✴
  23. 23. if (! empty( $meta_objects ) ) { if (! $app->db->model( 'meta' )->update_multi( $meta_objects ) ) return $app->rollback( 'An error occurred while updating the related object(s).' ); } }
  24. 24. ✴ ✴ ✴ ✴
  25. 25. ✴ ✴ ✴ ✴ ✴ ✴
  26. 26. ✴ ✴ ✴ ✴ ✴ ✴
  27. 27. ✴ ✴ ✴
  28. 28. ✴ ✴ ✴ ✴ ✴ ✴
  29. 29. Essential visual identifiers of user interface components have a contrast ratio of at least 4.5:1 against the immediate surrounding color(s), except for the following situations: “ Web Contents Accessibility Guidelines2.1
  30. 30. 2017 2018 2019 20212020 2022 2Q. 4Q. PowerCMS Professional 90 2Q. PowerCMS 1Q. PowerCMS Enterprise 90 1Q.
  31. 31. ✴ ✴ ✴
  32. 32. ✴ ✴ ✴ ✴ ✴ ✴
  33. 33. ✴ ✴ ✴ ✴ ✴ ✴

×