• 1.
    gw_multi_file_merge_tag()->register_settings( array(
  • 2.
        'form_id' => 27,
  • 3.
        'markup' => array(
  • 4.
            array(
  • 5.
                'file_types' => array( 'jpg', 'jpeg', 'png', 'gif' ),
  • 6.
                'markup' => '<div class="gw-file gw-image gw-{ext}"><a href="{url}"><img src="{url}"></a><a href="{url}">{filename}</a></div>'
  • 7.
            ),
  • 8.
            array(
  • 9.
                'file_types' => array( 'pdf', 'txt' ),
  • 10.
                'markup' => '<div class="gw-file gw-text gw-{ext}"><a href="{url}"><span>{filename}</span></a><a href="{url}">{filename}</a></div>'
  • 11.
            ),
  • 12.
            array(
  • 13.
                'file_types' => array( 'mp4', 'ogg', 'webm' ),
  • 14.
                'markup' => '<div class="gw-file gw-video gw-{ext}"><video><source src="{url}" type="video/{ext}">Your browser does not support the video tag.</video><a href="{url}">{filename}</a></div>'
  • 15.
            ),
  • 16.
            array(
  • 17.
                'file_types' => array( 'ogv' ),
  • 18.
                'markup' => '<div class="gw-file gw-video gw-ogv"><video><source src="{url}" type="video/ogg">Your browser does not support the video tag.</video><a href="{url}">{filename}</a></div>'
  • 19.
            )
  • 20.
        )
  • 21.
    ) );
gw_multi_file_merge_tag()->register_settings( array( 'form_id' => 27, 'markup' => array( array( 'file_types' => array( 'jpg', 'jpeg', 'png', 'gif' ), 'markup' => '<div class="gw-file gw-image gw-{ext}"><a href="{url}"><img src="{url}"></a><a href="{url}">{filename}</a></div>' ), array( 'file_types' => array( 'pdf', 'txt' ), 'markup' => '<div class="gw-file gw-text gw-{ext}"><a href="{url}"><span>{filename}</span></a><a href="{url}">{filename}</a></div>' ), array( 'file_types' => array( 'mp4', 'ogg', 'webm' ), 'markup' => '<div class="gw-file gw-video gw-{ext}"><video><source src="{url}" type="video/{ext}">Your browser does not support the video tag.</video><a href="{url}">{filename}</a></div>' ), array( 'file_types' => array( 'ogv' ), 'markup' => '<div class="gw-file gw-video gw-ogv"><video><source src="{url}" type="video/ogg">Your browser does not support the video tag.</video><a href="{url}">{filename}</a></div>' ) ) ) );

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter