• b2evo
  • Front Page
  • Contact
  • Login
  • reset page

Far Fields

  • Andromeda ¦ First Contact
  • Blush ¦ Private
  • Dad ¦ Private
  • Vyaj ¦ Immigration & Asylum Cases

Near Fields

  • My Bits
  • Behind the Sceanic
  • vOw ¦ Vegan Organic Wholefood

Old Fields

  • 1996 Site
  • Old Search Site

Blogs

  • b2Evo ¦ Blog techie stuff
  • eLf ¦ Updates on the land
  • blInk ¦ Some useless links
  • spAce ¦ Thoughts on being
  • j&j ¦ Prospectors of Kern
  • av0id ¦ How I Got Here

Add html figure tagUpdated: October 20th, 2024

Created: 27/09/24

20th Oct. 2024

Updated
* added class to figure tag to set width
* created variable prompt text for use as alt for image and figcaption

v 7.2.5
Have made a copy of the quicktags plugin >> _myhtmltags.plugin.php


<figure>
Duplicated, inserted and modified two sections of code that were for inserting an <img> tag


Insert code for [button]

PHP

<?php echo $params['js_prefix']; ?>b2evoButtons[<?php echo $params['js_prefix']; ?>b2evoButtons.length] = new <?php echo $params['js_prefix']; ?>b2evoButton(
                '<?php echo $params['js_prefix']; ?>b2evo_figure'
                ,'<?php echo ($simple ? 'figure' : 'figure') ?>', ''
                ,'',' '
                ,'f'
                ,'<?php echo TS_('FiGuRe [Alt-F]') ?>'
            ); // special case

Insert code to impliment

PHP

function <?php echo $params['js_prefix']; ?>b2evoInsertFigure(myField)
        {
            
            var myValue = prompt( '<?php echo TS_('URL') ?>:', '/media/blogs/' );
            var myText = prompt( '<?php echo TS_('ALT & Figcaption Text') ?>:');
            if (myValue) {
                myValue = '<figure class="nineTpercent"><img src="'
                        + myValue
                        + '" alt="' + myText
                        + '" /><figcaption>'
                        + myText
                        + '</figcaption>'
                        + '</figure>';
                textarea_wrap_selection( myField, myValue, '', 1 );
            }
        }

  roger
print   Print     
 
  •  Paged Index of 133 Posts

  • Last nineteen

    • Add html figure tag
    • Validation 7.2.5
    • elfgifs_plugin
    • Add sub text button
    • [autocorrect] validation
    • Versions & Database
    • Math Terms & Plugin
    • My Search Hack
    • figure tag
    • evobar toolbar
    • Front Page Collections #
    • Move to a new line using CSS not <br />
    • Version 6.10.6 & php 7
    • Stuck on Version 6.10.5
    • Limit Login Attempts
    • 6.10.5
    • Add Number to Comment
    • 6.10.4
    • v 6.10.*
  • Search


Valid HTML 5.0    ubuntu link    duckduckgo link    b2evolution link    firefox link    Creative Commons Licence    Valid CSS!