The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION PHP How to add class to div
#3
(2017-06-14, 00:04:59)morvy Wrote: not sure if I understand correctly what you're asking, but where does the <div class="potato"> come from ? When is the potato class added to this div?

Might it be added to a page in the source editor part of the page editor?

It can be done with plugin GS Custom Settings. You edit a page in de source modus. You make a div and set the class to potato
Code:
<div class="potato">bla</div>
Then you add the in page code for GS Custom Settings. In the admin interface you set the setting to carrot. The code in the source view would become something like:
Code:
<div class="potato (% setting: test1/new_setting %)">bla</div>
Reply


Messages In This Thread
PHP How to add class to div - by Riianna - 2017-06-10, 07:56:55
RE: PHP How to add class to div - by morvy - 2017-06-14, 00:04:59
RE: PHP How to add class to div - by datiswous - 2017-06-14, 06:13:52



Users browsing this thread: 1 Guest(s)